1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
|
# 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 <krause.dirk@web.de> 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 <krause.dirk@web.de> 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 <krause.dirk@web.de> 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 <krause.dirk@web.de> 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 <krause.dirk@web.de> 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 <krause.dirk@web.de> 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 <krause.dirk@web.de> 4.11.2-1
- Bugfix, corrected configure.ac and configure to properly detect
Debian and derivative systems.
* Sat Jan 27 2018 Dirk Krause <krause.dirk@web.de> 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 <krause.dirk@web.de> 4.11.0-1
- Splitted dk4uc2l module into two modules dk4uc2la and dk4uc2l.
- Appropriate changes to dk-t2l program.
|