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

Annotation of /rpms/LPRng/sme8/LPRng.spec

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


Revision 1.3 - (hide annotations) (download)
Fri Jan 11 23:45:21 2008 UTC (16 years, 10 months ago) by slords
Branch: MAIN
Changes since 1.2: +2 -0 lines
Updates

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

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