/[smeserver]/rpms/LPRng/sme7/LPRng.spec
ViewVC logotype

Contents of /rpms/LPRng/sme7/LPRng.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Fri Jan 11 23:05:37 2008 UTC (16 years, 10 months ago) by slords
Branch: MAIN
Changes since 1.1: +68 -199 lines
Import on branch sme7 of package LPRng-3.8.32-2.el4.sme.src.rpm

1 Summary: The LPRng print spooler.
2 Name: LPRng
3 Version: 3.8.32
4 Release: 2%{?dist}
5 License: GPL and Artistic
6 Group: System Environment/Daemons
7 Source0: ftp://ftp.lprng.com/pub/LPRng/LPRng/%{name}-%{version}.tgz
8 Source1: lpd.init
9 Patch1: LPRng-3.8.32-makefile.patch
10 URL: http://www.lprng.com
11 Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
12 Obsoletes: lpr
13 Provides: lpr
14 Prereq: /sbin/chkconfig, /etc/rc.d/init.d, mktemp, fileutils, textutils, gawk
15 Prereq: /usr/sbin/alternatives
16 BuildPreReq: gettext ed autoconf
17 %{!?nokerberos:BuildPrereq: krb5-devel}
18 %{!?nokerberos:Requires: krb5-libs}
19
20 # We don't ship these files, but create symlinks to them. Other
21 # packages aren't to know though.
22 Provides: %{_bindir}/lp
23 Provides: %{_bindir}/lpq
24 Provides: %{_bindir}/lpr
25 Provides: %{_bindir}/lprm
26 Provides: %{_bindir}/lpstat
27 Provides: %{_bindir}/cancel
28 Provides: %{_sbindir}/lpc
29
30 %description
31 LPRng is an enhanced, extended, and portable implementation of the
32 Berkeley LPR print spooler functionality. LPRng provides the same
33 interface and meeting RFC1179 requirements, but the implementation is
34 completely new and provides support for the following features:
35 lightweight (no databases needed) lpr, lpc, and lprm programs; dynamic
36 redirection of print queues; automatic job holding; highly verbose
37 diagnostics; multiple printers serving a single queue; client programs
38 do not need to run SUID root; greatly enhanced security checks; and a
39 greatly improved permission and authorization mechanism.
40
41 LPRng is compatible with other print spoolers and network printers
42 that use the LPR interface and meet RFC1179 requirements. LPRng
43 provides emulation packages for the SVR4 lp and lpstat programs,
44 eliminating the need for another print spooler package. These
45 emulation packages can be modified according to local requirements, in
46 order to support vintage printing systems.
47
48 For users who require secure and/or authenticated printing support,
49 LPRng supports Kerberos V, MIT Kerberos IV Print Support, and PGP
50 authentication. Additional authentication support is extremely simple
51 to add.
52
53 %prep
54
55 %setup -q
56 %patch1 -p1
57
58 # pick up configure.in changes
59
60 # set up gettext
61 (
62 cd po
63 rm Makefile.in.in
64 ln -s /usr/share/gettext/po/Makefile.in.in .
65 )
66
67 #sh CREATE_CONFIGURE
68
69 %build
70 test -f /usr/share/libtool/config.guess && cp /usr/share/libtool/config.guess .
71 test -f /usr/share/libtool/config.sub && cp /usr/share/libtool/config.sub .
72 #PSHOWALL="-ax" ; export PSHOWALL # So that we don't need /proc mounted
73 CFLAGS="$RPM_OPT_FLAGS" ; export CFLAGS
74 %configure --enable-nls \
75 --with-userid=lp \
76 --with-groupid=lp \
77 --disable-werror \
78 %{!?nokerberos:--enable-kerberos LDFLAGS="-L/usr/kerberos/lib" CPPFLAGS="-I/usr/kerberos/include" }
79 make MAKEPACKAGE=YES
80
81 %install
82 rm -rf %{buildroot}
83
84 # Installation of locales is broken... Work around it!
85
86 make SUID_ROOT_PERMS=" 04755" DESTDIR=${RPM_BUILD_ROOT} MAKEPACKAGE=YES mandir=%{_mandir} install
87
88 # Remove files we don't ship
89 rm -f %{buildroot}/usr/share/LPRng/*.sample
90 rm -f %{buildroot}%{_sysconfdir}/*.sample
91 rm -f %{buildroot}%{_sysconfdir}/lpd/*.sample
92 rm -f %{buildroot}%{_sysconfdir}/rc.d/init.d/*.sample
93 rm -f %{buildroot}%{_sysconfdir}/lpd/lpd
94 rm -f %{buildroot}%{_sysconfdir}/printcap
95 rm -f %{buildroot}%{_libdir}/liblpr.*a
96 rm -f %{buildroot}%{_sbindir}/lprng_{index_,}certs
97
98 # install init script
99 mkdir -p %{buildroot}%{_sysconfdir}/rc.d/init.d
100 install -m755 %{SOURCE1} %{buildroot}%{_sysconfdir}/rc.d/init.d/lpd
101
102 # Alternatives, to avoid conflicting with cups.
103 for f in %{_bindir}/{cancel,lp,lp{q,r,rm,stat}} %{_sbindir}/lpc
104 do
105 mv %{buildroot}${f} %{buildroot}${f}.LPRng
106 done
107 for f in cancel lp lpq lpr lprm lpstat
108 do
109 mv %{buildroot}%{_mandir}/man1/${f}.1 %{buildroot}%{_mandir}/man1/${f}-LPRng.1
110 done
111 mv %{buildroot}%{_mandir}/man8/lpc.8 %{buildroot}%{_mandir}/man8/lpc-LPRng.8
112
113 %clean
114 rm -rf %{buildroot}
115
116 %post
117 /sbin/ldconfig
118 /sbin/chkconfig --add lpd
119 if [ -w /etc/printcap ] ; then
120 TMP1=`mktemp /etc/printcap.XXXXXX`
121 gawk '
122 BEGIN { first = 1; cont = 0; last = "" }
123 /^[:space:]*#/ { if(cont) sub("\\\\$", "", last)}
124 { if(first == 0) print last }
125 { first = 0 }
126 { last = $0 }
127 { cont = 0 }
128 /\\$/ { cont = 1 }
129 END {sub("\\\\$", "", last); print last}
130 ' /etc/printcap > ${TMP1} && cat ${TMP1} > /etc/printcap && rm -f ${TMP1}
131 fi
132
133 # Alternatives
134 /usr/sbin/alternatives --install %{_bindir}/lpr print %{_bindir}/lpr.LPRng 41 \
135 --slave %{_bindir}/lp print-lp %{_bindir}/lp.LPRng \
136 --slave %{_bindir}/lpq print-lpq %{_bindir}/lpq.LPRng \
137 --slave %{_bindir}/lprm print-lprm %{_bindir}/lprm.LPRng \
138 --slave %{_bindir}/lpstat print-lpstat %{_bindir}/lpstat.LPRng \
139 --slave %{_bindir}/cancel print-cancel %{_bindir}/cancel.LPRng \
140 --slave %{_sbindir}/lpc print-lpc %{_sbindir}/lpc.LPRng \
141 --slave %{_mandir}/man1/cancel.1.gz print-cancelman %{_mandir}/man1/cancel-LPRng.1.gz \
142 --slave %{_mandir}/man1/lp.1.gz print-lpman %{_mandir}/man1/lp-LPRng.1.gz \
143 --slave %{_mandir}/man8/lpc.8.gz print-lpcman %{_mandir}/man8/lpc-LPRng.8.gz \
144 --slave %{_mandir}/man1/lpq.1.gz print-lpqman %{_mandir}/man1/lpq-LPRng.1.gz \
145 --slave %{_mandir}/man1/lpr.1.gz print-lprman %{_mandir}/man1/lpr-LPRng.1.gz \
146 --slave %{_mandir}/man1/lprm.1.gz print-lprmman %{_mandir}/man1/lprm-LPRng.1.gz \
147 --slave %{_mandir}/man1/lpstat.1.gz print-lpstatman %{_mandir}/man1/lpstat-LPRng.1.gz \
148 --initscript lpd
149
150 %preun
151 if [ "$1" = 0 ]; then
152 /sbin/service lpd stop >/dev/null 2>&1
153 /sbin/chkconfig --del lpd
154 /usr/sbin/alternatives --remove print %{_bindir}/lpr.LPRng
155 fi
156
157 %postun
158 /sbin/ldconfig
159 if [ "$1" -ge "1" ]; then
160 /sbin/service lpd condrestart >/dev/null 2>&1
161 fi
162
163 %triggerpostun -- LPRng < 3.8.5-2
164 # Deal with pre-alternatives packages
165 /usr/sbin/alternatives --auto print
166
167 %files
168 %defattr(-,root,root)
169 %config %{_sysconfdir}/lpd/lpd.conf
170 %config %{_sysconfdir}/lpd/lpd.perms
171 %config %{_sysconfdir}/rc.d/init.d/lpd
172 %attr(755,lp,lp) %{_bindir}/lpq.LPRng
173 %attr(755,lp,lp) %{_bindir}/lprm.LPRng
174 %attr(755,lp,lp) %{_bindir}/lpr.LPRng
175 %attr(755,lp,lp) %{_bindir}/lpstat.LPRng
176 %{_bindir}/lp.LPRng
177 %{_bindir}/cancel.LPRng
178 %attr(755,lp,lp) %{_sbindir}/lpc.LPRng
179 %attr(755,root,root) %{_sbindir}/lpd
180 %attr(755,root,root) %{_sbindir}/checkpc
181 %attr(755,root,root) /usr/libexec/filters/*
182 %dir /usr/libexec/filters
183 %{_mandir}/*/*
184 %attr(755,root,root) %{_prefix}/share/locale/*
185 %doc CHANGES CONTRIBUTORS COPYRIGHT INSTALL LICENSE
186 %doc README* VERSION Y2KCompliance
187 %doc DOCS
188
189 %changelog
190 * Fri Jan 11 2008 Patrick Powell <papowell@astart.com> 3.8.23-2.sme
191 - Fix package to use alternatives
192 - Patch Makefile to work correctly
193
194 * Thu Nov 13 2003 Patrick Powell <papowell@astart.com> 3.8.23-1
195 - updated everything to fit the new sysconfdir standards
196 - the startup script is copied to sysconfdir/lpd/lpd.init as part of the
197 - normal install now
198
199 * Tue Aug 21 2001 Patrick Powell <papowell@astart.com> 3.7.5-1
200 - new release for 3.7.5
201 - Note the aclocal, autoconf, etc. stuff added to make the various
202 - versions of gettext and libtool compatible with the RedHat version.
203
204 * Fri Aug 10 2001 Crutcher Dunnavant <crutcher@redhat.com> 3.7.4-28
205 - disabled gdbm support, changed CFLAGS; #41652
206
207 * Thu Aug 9 2001 Crutcher Dunnavant <crutcher@redhat.com> 3.7.4-27
208 - ownz /usr/libexec/filters; #51158
209 - make checkpc nonblocking on its tests; #37995
210
211 * Thu Aug 2 2001 Crutcher Dunnavant <crutcher@redhat.com> 3.7.4-26
212 - added gdbm-devel dep; #44885
213
214 * Fri Jun 29 2001 Bernhard Rosenkraenzer <bero@redhat.com>
215 - Fix build on s390
216
217 * Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
218 - Bump release + rebuild.
219
220 * Thu Jun 07 2001 Crutcher Dunnavant <crutcher@redhat.com>
221 - setgroups droping patch
222
223 * Thu Mar 29 2001 Crutcher Dunnavant <crutcher@redhat.com>
224 - told checkpc to only Check_file() job files. (keeping it from zapping the master-filter)
225
226 * Fri Mar 9 2001 Crutcher Dunnavant <crutcher@redhat.com>
227 - applied elliot's patch (which i got idependently from the lprng list as well)
228 - that fixes a thinko that killed LPRng on 64 arches.
229
230 * Fri Mar 9 2001 Crutcher Dunnavant <crutcher@redhat.com>
231 - fixed the URLs for the LPRng project
232
233 * Thu Mar 8 2001 Crutcher Dunnavant <crutcher@redhat.com>
234 - reverted the shutdown call in Local_job to make device filters work.
235 - all your base are belong to us
236
237 * Wed Mar 07 2001 Philipp Knirsch <pknirsch@redhat.de>
238 - Removed the shutdown patch for common/linksupport:Link_close() as ii
239 generated a deadlock between lpr and lpd for none existing printers.
240
241 * Sun Feb 25 2001 Crutcher Dunnavant <crutcher@redhat.com>
242 - hacked out the shutdown(sock, 1) calls that killed stupid network printers.
243
244 * Wed Feb 15 2001 Crutcher Dunnavant <crutcher@redhat.com>
245 - tweak to ldp.init's display messages
246
247 * Fri Feb 9 2001 Crutcher Dunnavant <crutcher@redhat.com>
248 - man page tweak
249
250 * Thu Feb 8 2001 Crutcher Dunnavant <crutcher@redhat.com>
251 - (yet) further tweaks to lpd.init's display format.
252
253 * Tue Feb 6 2001 Crutcher Dunnavant <crutcher@redhat.com>
254 - further tweaks to lpd.init's display format.
255
256 * Tue Feb 6 2001 Crutcher Dunnavant <crutcher@redhat.com>
257 - cleaned up lpd.init to do translations correctly, and stop screwing up
258 - result values.
259
260 * Thu Feb 1 2001 Crutcher Dunnavant <crutcher@redhat.com>
261 - added lpd init back (ick!)
262
263 * Wed Jan 24 2001 Crutcher Dunnavant <crutcher@redhat.com>
264 - removed req for printconf (It should go the other way)
265
266 * Thu Jan 18 2001 Crutcher Dunnavant <crutcher@redhat.com>
267 - fixed file list
268
269 * Thu Jan 18 2001 Crutcher Dunnavant <crutcher@redhat.com>
270 - removed lpd.init, set requirement of printconf
271
272 * Thu Jan 11 2001 Crutcher Dunnavant <crutcher@redhat.com>
273 - upgraded to LPRng-3.7.4
274
275 * Tue Dec 12 2000 Crutcher Dunnavant <crutcher@redhat.com>
276 - rebuild for kerb
277
278 * Mon Oct 23 2000 Crutcher Dunnavant <crutcher@redhat.com>
279 - Upgraded to LPRng-3.6.26
280 - Removed syslog patch, as .24 fixes the problem
281
282 * Mon Sep 25 2000 Crutcher Dunnavant <crutcher@redhat.com>
283 - Patched use_syslog to avoid a format string exploit.
284 - Resolves bug #17756
285
286 * Mon Sep 18 2000 Crutcher Dunnavant <crutcher@redhat.com>
287 - Upgraded to LPRng-3.6.24
288
289 * Mon Sep 11 2000 Crutcher Dunnavant <crutcher@redhat.com>
290 - Added gettext to the BuildPreReq list
291
292 * Mon Sep 11 2000 Crutcher Dunnavant <crutcher@redhat.com>
293 - Fixed lpd.init to use /etc/rc.d/init.d/, instead of /etc/init.d
294
295 * Mon Sep 11 2000 Crutcher Dunnavant <crutcher@redhat.com>
296 - changed the prereq: /etc/init.d to: /etc/rc.d/init.d
297 - we are not changing that over (yet?)
298
299 * Mon Aug 14 2000 Crutcher Dunnavant <crutcher@redhat.com>
300 - removed the sticky bit from lpc
301
302 * Mon Aug 14 2000 Crutcher Dunnavant <crutcher@redhat.com>
303 - removed the sticky bit from the client programs (LPRng doesn't need them)
304
305 * Sat Aug 05 2000 Bill Nottingham <notting@redhat.com>
306 - condrestart fixes
307
308 * Fri Aug 4 2000 Bill Nottingham <notting@redhat.com>
309 - triggerpostun on lpr
310
311 * Sun Jul 30 2000 Bernhard Rosenkraenzer <bero@redhat.com>
312 - 3.6.22 (some fixes)
313
314 * Tue Jul 25 2000 Bill Nottingham <notting@redhat.com>
315 - fix prereq
316
317 * Sat Jul 22 2000 Nalin Dahyabhai <nalin@redhat.com>
318 - fix bogus checkpc error messages when the lockfile doesn't exist because
319 init scripts clear /var/run (#14472)
320
321 * Tue Jul 18 2000 Nalin Dahyabhai <nalin@redhat.com>
322 - fix chkconfig comments in the init script
323
324 * Mon Jul 17 2000 Nalin Dahyabhai <nalin@redhat.com>
325 - move the init script to /etc/rc.d/init.d
326 - fix perms on setuid binaries
327
328 * Fri Jul 14 2000 Nalin Dahyabhai <nalin@redhat.com>
329 - patch checkpc to not complain when filter is executable and in the
330 spool directory
331 - remove --disable-force_localhost from configure invocation for better
332 compatibility with BSD LPR and rhs-printfilters
333 - change group back to lp, which is what printtool expects
334
335 * Thu Jul 13 2000 Nalin Dahyabhai <nalin@redhat.com>
336 - change default group to 'daemon' to match 6.2
337 - enable NLS support
338 - remove Prefix: tag
339 - break init script out into a separate file
340 - fix up broken printcaps in post-install
341 - run checkpc -f at start-time
342
343 * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
344 - automatic rebuild
345
346 * Tue Jul 11 2000 Bernhard Rosenkraenzer <bero@redhat.com>
347 - 3.6.21
348 - get rid of the notypedef patch - gcc has been fixed at last.
349
350 * Mon Jun 26 2000 Preston Brown <pbrown@redhat.com>
351 - sample config files removed from /etc.
352 - initscript moved to /etc/init.d
353
354 * Wed Jun 21 2000 Bernhard Rosenkraenzer <bero@redhat.com>
355 - 3.6.18
356
357 * Sat Jun 17 2000 Bernhard Rosenkraenzer <bero@redhat.com>
358 - 3.6.16
359 - adapt Kerberos and fixmake patches
360 - get rid of CFLAGS="-O"; gcc has been fixed
361 - fix build with glibc 2.2
362
363 * Mon Jun 05 2000 Preston Brown <pbrown@redhat.com>
364 - ifdef 0 is illegal, changed to if 0.
365 - work around compiler typdef bug.
366
367 * Thu Jun 01 2000 Preston Brown <pbrown@redhat.com>
368 - start, stop, and restart are functions not switch statements now.
369 reduces overhead.
370 - patch to allow autoconf to choose which user/group to run as
371
372 * Wed May 31 2000 Preston Brown <pbrown@redhat.com>
373 - remove init.d symbolic links.
374 - remove txt/ps/info versions of the HOWTO from the pkg
375 - use new fhs paths
376
377 * Thu May 25 2000 Nalin Dahyabhai <nalin@redhat.com>
378 - change free() to krb5_free_data_contents() when patching for Kerberos 5
379 - detect libcrypto or libk5crypto when looking for Kerberos 5
380
381 * Tue May 16 2000 Nalin Dahyabhai <nalin@redhat.com>
382 - enable Kerberos support
383 - remove extra defattr in files list
384 - add --disable-force_localhost to configure invocation
385 - remove "-o root" at install-time
386
387 * Tue May 16 2000 Matt Wilson <msw@redhat.com>
388 - add Prereq of /sbin/chkconfig
389 - fix broken conflicting declaration on alpha
390
391 * Tue Apr 18 2000 Bernhard Rosenkraenzer <bero@redhat.com>
392 - initial Red Hat packaging, fix up the spec file
393
394 * Mon Sep 13 1999 Patrick Powell <papowell@astart.com>
395 - resolved problems with symbolic links to /etc/init.d
396 files - used the chkconfig facility
397
398 * Sat Sep 4 1999 Patrick Powell <papowell@astart.com>
399 - did ugly things to put the script in the spec file
400
401 * Sat Aug 28 1999 Giulio Orsero <giulioo@tiscalinet.it>
402 - 3.6.8
403
404 * Fri Aug 27 1999 Giulio Orsero <giulioo@tiscalinet.it>
405 - 3.6.7 First RPM build.

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed