1 Summary: A next-generation printing system for UNIX
2 Summary(pl): System drukowania nowej generacji
7 Group: Utilities/System
8 Group(pl): Narzêdzia/System
9 Source0: ftp://ftp.astart.com/pub/LPRng/LPRng/%{name}-%{version}.tgz
11 Patch0: LPRng-autoconf.patch
12 Requires: /sbin/chkconfig
14 URL: http://www.astart.com/lprng/LPRng.html
17 BuildRoot: /tmp/%{name}-%{version}-root
19 %define _libdir %{_sbindir}
22 The LPRng software is an enhanced, extended, and portable implementation of
23 the Berkeley LPR print spooler functionality. While providing the same
24 interface and meeting RFC1179 requirements, the implementation is completely
25 new and provides support for the following features: lightweight (no
26 databases needed) lpr, lpc, and lprm programs; dynamic redirection of print
27 queues; automatic job holding; highly verbose diagnostics; multiple printers
28 serving a single queue; client programs do not need to run SUID root;
29 greatly enhanced security checks; and a greatly improved permission and
30 authorization mechanism.
32 The source software compiles and runs on a wide variety of UNIX systems, and
33 is compatible with other print spoolers and network printers that use the
34 LPR interface and meet RFC1179 requirements. LPRng provides emulation
35 packages for the SVR4 lp and lpstat programs, eliminating the need for
36 another print spooler package. These emulation packages can be modified
37 according to local requirements, in order to support vintage printing
40 For users that require secure and/or authenticated printing support, LPRng
41 supports Kerberos V, MIT Kerberos IV Print Support, and PGP authentication.
42 LPRng is being adopted by MIT for use as their Campus Wide printing support
43 system. Additional authentication support is extremely simple to add. LPRng
44 is Open Source Software, and the current public distribution is available
45 from the listed FTP and Web Sites.
48 LPRng jest systemem drukowania nowej generacji zwiêkszaj±cym niezawodno¶æ
56 gettextize --copy --force
59 LDFLAGS="-s"; export LDFLAGS
63 --without-included-gettext
68 rm -rf $RPM_BUILD_ROOT
69 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
72 DESTDIR=$RPM_BUILD_ROOT \
73 LPD_CONF_PATH=$RPM_BUILD_ROOT/etc/lpd.conf \
74 LPD_PERMS_PATH=$RPM_BUILD_ROOT/etc/lpd.perms
76 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/lpd
78 rm -fr TESTSUPPORT/{Makefile*,LPD}
80 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \
81 ANNOUNCE CHANGES CONTRIBUTORS \
82 README* TESTSUPPORT/* HOWTO/LPRng-HOWTO.txt
87 /sbin/chkconfig --add lpd
88 if test -r /var/run/lpd.pid; then
89 /etc/rc.d/init.d/lpd restart 1>&2
91 echo "Run \"/etc/rc.d/init.d/lpd start\" to start mcserv daemon."
95 if [ "$1" = "0" ]; then
96 /sbin/chkconfig --del lpd
97 /etc/rc.d/init.d/lpd stop 1>&2
101 rm -rf $RPM_BUILD_ROOT
103 %files -f %{name}.lang
104 %defattr(644,root,root,755)
105 %config(noreplace) /etc/lpd.conf
106 %config(noreplace) /etc/lpd.perms
107 %doc {ANNOUNCE,CHANGES,CONTRIBUTORS}.gz
108 %doc {HOWTO/LPRng-HOWTO.txt,README*}.gz TESTSUPPORT
109 %attr(754,root,root) /etc/rc.d/init.d/lpd
110 %attr(755,root,root) %{_bindir}/*
111 %attr(755,root,root) %{_sbindir}/*
112 %dir %{_libexecdir}/filters
113 %attr(755,root,root) %{_libexecdir}/filters/*
114 %{_mandir}/man[158]/*