# SPEC file to build Fedora and EL packages. # Name: dktools Version: 4.14.0 Source: file:///home/krause/work/dktools-4.14.0.tar.gz Release: 1%{?dist} Summary: Dirk Krause's tools and libraries Vendor: Dirk Krause # Packager: Dirk Krause Group: Applications/System License: BSD URL: http://sourceforge.net/p/dktools/wiki/Home/ BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildRequires: mysql-devel zlib-devel bzip2-devel libpng-devel openssl-devel libjpeg-devel libtiff-devel net-snmp-devel libdb-devel wxGTK3 wxGTK3-devel Requires: bzip2 openssl net-snmp wxGTK3 Conflicts: dktools-rescue Prefix: %{_prefix} # ___PROVIDES___ # ----- RPMLINT (Fedora Core 27) ----- # In the lines below the spelling checker finds false positives: # wxWidgets htb dk fic bmm blks eradisk recoding sqlsplit mysqldump # uid pwgen recv dkdbt octpgfpl. %description A set of tools for graphics conversion, text conversion, software development, administration and printing and some general-purpose tools. bmpp / wxbmpp Convert PNG/JPEG/TIFF to PS/EPS/PDF fig2lat Convert FIG to PGF,EPS+TeX,PDF+TeX,EPS,SVG wximgsz Suggest good sizes to scale bitmap images htmlbook Publish HTML like a book dkct / wxdkct Preprocessor for C, C++, Objective-C and Java (debugging/tracing, state machines, wxWidgets GUIs) dkwxwiz Create project skeleton for wxWidgets+dktools based programs wxdkhtb Viewer for *.htb help files itadmin Use a MySQL database to manage your IT dk-ls ls clone, configurable column order dk-fic File integrity checker dk-bmm Backup media manager (10 tape rotation) dk-blks Correct data stream block size (for use with dd) dk-eradisk Create data stream to erase a disk dk-hex Show data in hexadecimal or octal notation dk-cat cat clone, recoding between ASCII/UTF-8/UTF-16 dk-lines Select lines by line start pattern or line numbers dk-sort sort clone, processes ASCII/UTF-8/UTF-16 dk-t2h Text to HTML converter dk-t2l Text to LaTeX converter dk-sqlsplit Split overlong SQL lines from mysqldump dk-uid Find user ID in given range dk-pwgen Create passwords, PINs and WiFi keys dk-send Send data stream to one or multiple recipients over TCP dk-recv Receive data stream from a dk-send process dkdbt Tool for simple databases printqd Print quota enforcement for LPRng print systems wxpqdic GUI client to check print quota addctrld Add CTRL-D to end of data stream if not yet present wxdkclock Simple clock, one alert plpdftex Output driver for octpgfpl %prep %setup -q # %setup %build %configure --enable-packaging make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT echo 'I: chmod 0755' %{buildroot}%{_libdir}/lib*.so.* chmod 0755 %{buildroot}%{_libdir}/lib*.so.* if [ ! -d "%{buildroot}%{_datadir}/licenses" ] then mkdir -p "%{buildroot}%{_datadir}/licenses" chmod 755 "%{buildroot}%{_datadir}/licenses" fi if [ ! -d "%{buildroot}%{_datadir}/licenses/dktools" ] then mkdir -p "%{buildroot}%{_datadir}/licenses/dktools" chmod 755 "%{buildroot}%{_datadir}/licenses/dktools" fi echo 'I: Copying bsdlic.txt to LICENSE' cp bsdlic.txt %{buildroot}%{_datadir}/licenses/dktools/LICENSE chmod 644 %{buildroot}%{_datadir}/licenses/dktools/LICENSE if [ ! -d "%{buildroot}%{_datadir}/doc" ] then mkdir -p "%{buildroot}%{_datadir}/doc" chmod 755 "%{buildroot}%{_datadir}/doc" fi if [ ! -d "%{buildroot}%{_datadir}/doc/dktools" ] then mkdir -p "%{buildroot}%{_datadir}/doc/dktools" chmod 755 "%{buildroot}%{_datadir}/doc/dktools" fi echo 'I: Copying bsdlic.txt to LICENSE' cp bsdlic.txt %{buildroot}%{_datadir}/doc/dktools/LICENSE echo 'I: Copying INSTALL' cp INSTALL %{buildroot}%{_datadir}/doc/dktools/INSTALL echo 'I: Copying README' cp README %{buildroot}%{_datadir}/doc/dktools/README chmod 644 %{buildroot}%{_datadir}/doc/dktools/LICENSE chmod 644 %{buildroot}%{_datadir}/doc/dktools/INSTALL chmod 644 %{buildroot}%{_datadir}/doc/dktools/README %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc README bsdlic.txt %{_bindir}/* %{_libdir}/libdk3*.so.* %{_libdir}/libdk4*.so.* %{_datadir}/applications/* %{_datadir}/dktools %{_datadir}/dk4app %{_datadir}/man/man1/* %{_datadir}/man/man5/* %{_datadir}/doc/dktools/* %{_datadir}/licenses/dktools/* %config(noreplace) %{_sysconfdir}/printqd/printqd.conf.sample %config(noreplace) %{_sysconfdir}/rshdown/rshdown.conf.sample %config(noreplace) %{_sysconfdir}/dk3app/dk3paper.conf %config(noreplace) %{_sysconfdir}/dk4app/dk4gra.conf %post ldconfig %postun ldconfig # # The rescue sub-package installs only those binaries useful on # a rescue live system. # %package rescue # # The devel sub-package installs developer support. # Summary: Only those DK tools binaries useful on a rescue live system Group: Applications/System Requires: bzip2 openssl Conflicts: dktools Prefix: %{_prefix} %description rescue On live systems for system rescue we only need the dknet and dkt program. %files rescue %defattr(-,root,root,-) %doc README bsdlic.txt %{_bindir}/dk-send %{_bindir}/dk-recv %{_bindir}/dk-blks %{_bindir}/dk-cat %{_bindir}/dk-eradisk %{_bindir}/dk-ls %{_libdir}/libdk4socka.so.* %{_libdir}/libdk4sock.so.* %{_libdir}/libdk4maiodh.so.* %{_libdir}/libdk4maio8h.so.* %{_libdir}/libdk4app.so.* %{_libdir}/libdk4c.so.* %{_libdir}/libdk4maiodd.so.* %{_libdir}/libdk4maiowd.so.* %{_libdir}/libdk4maio8d.so.* %{_libdir}/libdk4base.so.* %{_datadir}/dktools/en/dk-send.* %{_datadir}/dktools/en/dk-recv.* %{_datadir}/dktools/en/dk-cat.* %{_datadir}/dktools/en/dk-blks.* %{_datadir}/dktools/en/dk-ls.* %{_datadir}/dktools/de/dk-send.* %{_datadir}/dktools/de/dk-recv.* %{_datadir}/dktools/de/dk-cat.* %{_datadir}/dktools/de/dk-blks.* %{_datadir}/dktools/de/dk-ls.* %post rescue ldconfig %postun rescue ldconfig %package devel Summary: Development files for libraries from the DK tools project Group: Development/Libraries Requires: dktools = %{version}-%{release} mysql-devel zlib-devel bzip2-devel libpng-devel openssl-devel libjpeg-devel libtiff-devel net-snmp-devel gcc libdb-devel wxGTK3 wxGTK3-devel Prefix: %{_prefix} %description devel If you want to use modules from the DK tools project in your programs, you need the libraries from the dktools-lib package and the header files provided by this project. %files devel %defattr(-,root,root,-) %{_includedir}/* %{_libdir}/pkgconfig/dktools.pc %{_libdir}/libdk3*.so %{_libdir}/libdk4*.so %changelog * Thu Apr 19 2018 Dirk Krause 4.14.0-1 - The configure script now checks the presence of the search.h include file and the availability of the qsort() and bsearch() functions. - Modified dkrgra, dk4graa and dk4pppt. A flags set was added to text output functions, so we can order a white box and/or an oval box. - Modified dk4fpe.h file, it does no longer include compiler pragmas to enable access to the floating point environment. Users might want to apply the pragma to portions of code only and not necessarily to entire source files. * Sun Apr 15 2018 Dirk Krause 4.13.0-1 - Added dk4pppt module. - Added functions to configure font size and LaTeX preamble lines in dk4gra and dk4graa modules. - Added functions to write a char string LaTeX encoded to a stream in the dk4uc2l and dk4uc2la modules. - Corrected some error messages in the dk4graa module. - Added dk4rec27 module containing the dk4recode_c8_to_dk() function to convert char strings (plain, Win1252, UTF-8) to dkChar strings. * Thu Apr 12 2018 Dirk Krause 4.12.1-1 - Changed default for expected encoding when processing standard input or input from file to DK4_FILE_ENCODING_WIN1252 to allow processing of text containing the Euro currency symbol. - Renamed some encodings. - Release mechanism modified: Presence of the preview.txt file indicates to build not an official release. * Fri Apr 06 2018 Dirk Krause 4.12.0-1 - Rewrote bmpp and wxbmpp for library version 4. - Modified dk4align.h for separated enum types for text and image alignment. - Added dk4mao8dns module to write double values without scientific notation. - Packaging changed, packaging script do no longer deal with directories for printqd. Printqd can only be used with the LPRng print system which is not available as package. Users install that software manually deciding about UID and GID to run LPRng at build time. So our package postinstallation and preremoval scripts can not know which UID and GID is used for LPRng. * Sat Feb 10 2018 Dirk Krause 4.11.4-1 - The dkct program now checks state machine descriptions for duplicated numeric values for states, inputs and outputs. State, input and output names are checked whether or not they are valid identifiers in the C programming language. - State, input, and output definitions are now written as enums by default instead of defines. When using doxygen, this results in a more readable documentation. * Thu Feb 08 2018 Dirk Krause 4.11.3-1 - Added new value 7 for co_gu field in computers database of itadmin to indicate that a computer is retired. * Fri Feb 02 2018 Dirk Krause 4.11.2-1 - Bugfix, corrected configure.ac and configure to properly detect Debian and derivative systems. * Sat Jan 27 2018 Dirk Krause 4.11.1-1 - Bugfix, some XPM files contained named colors instead of hexadecimal values. - GUI applications now restoring window position and size. * Wed Jan 24 2018 Dirk Krause 4.11.0-1 - Splitted dk4uc2l module into two modules dk4uc2la and dk4uc2l. - Appropriate changes to dk-t2l program.