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
12 Patch0: %{name}-autoconf.patch
13 Patch1: %{name}-filter.patch
14 Patch2: %{name}-syslog.patch
15 BuildRequires: ncurses-devel >= 5.0
16 Requires: /sbin/chkconfig
17 Requires: rc-scripts >= 0.2.0
18 URL: http://www.astart.com/lprng/LPRng.html
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 The LPRng software is an enhanced, extended, and portable
26 implementation of the Berkeley LPR print spooler functionality. While
27 providing the same interface and meeting RFC1179 requirements, the
28 implementation is completely new and provides support for the
29 following features: lightweight (no databases needed) lpr, lpc, and
30 lprm programs; dynamic redirection of print queues; automatic job
31 holding; highly verbose diagnostics; multiple printers serving a
32 single queue; client programs do not need to run SUID root; greatly
33 enhanced security checks; and a greatly improved permission and
34 authorization mechanism.
36 The source software compiles and runs on a wide variety of UNIX
37 systems, and is compatible with other print spoolers and network
38 printers that use the LPR interface and meet RFC1179 requirements.
39 LPRng provides emulation packages for the SVR4 lp and lpstat programs,
40 eliminating the need for another print spooler package. These
41 emulation packages can be modified according to local requirements, in
42 order to support vintage printing systems.
44 For users that require secure and/or authenticated printing support,
45 LPRng supports Kerberos V, MIT Kerberos IV Print Support, and PGP
46 authentication. LPRng is being adopted by MIT for use as their Campus
47 Wide printing support system. Additional authentication support is
48 extremely simple to add. LPRng is Open Source Software, and the
49 current public distribution is available from the listed FTP and Web
53 LPRng jest systemem drukowania nowej generacji zwiêkszaj±cym
54 niezawodno¶æ i bezpieczeñstwo.
63 gettextize --copy --force
66 LDFLAGS="-s"; export LDFLAGS
72 --with-filterdir=%{_libdir}/lpfilters \
73 --with-lockfile=%{_var}/spool/lpd/lpd
78 rm -rf $RPM_BUILD_ROOT
79 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_var}/spool/lpd}
82 INSTALL_PREFIX=$RPM_BUILD_ROOT \
83 LPD_CONF_PATH=$RPM_BUILD_ROOT%{_sysconfdir}/lpd.conf \
84 LPD_PERMS_PATH=$RPM_BUILD_ROOT%{_sysconfdir}/lpd.perms
86 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/lpd
87 # yes, overwrite distribution lpd.conf
88 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/lpd.conf
89 install printcap $RPM_BUILD_ROOT%{_sysconfdir}/
91 rm -fr TESTSUPPORT/{Makefile*,LPD}
92 mv -f lpd.conf TESTSUPPORT/lpd.conf.distrib
94 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \
95 CHANGES CONTRIBUTORS README* TESTSUPPORT/*
100 /sbin/chkconfig --add lpd
101 if [ -f /var/lock/subsys/lpd ]; then
102 /etc/rc.d/init.d/lpd restart 1>&2
104 echo "Run \"/etc/rc.d/init.d/lpd start\" to start LPRng lpd daemon."
108 if [ "$1" = "0" ]; then
109 if [ -f /var/lock/subsys/lpd ]; then
110 /etc/rc.d/init.d/lpd stop 1>&2
112 /sbin/chkconfig --del lpd
116 rm -rf $RPM_BUILD_ROOT
119 %defattr(644,root,root,755)
120 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/lpd.conf
121 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/lpd.perms
122 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/printcap
123 %doc {CHANGES,CONTRIBUTORS,README*}.gz TESTSUPPORT HOWTO/LPRng-HOWTO.html
124 %attr(754,root,root) /etc/rc.d/init.d/lpd
125 %attr(755,root,root) %{_bindir}/*
126 %attr(755,root,root) %{_sbindir}/*
127 %dir %{_libdir}/lpfilters
128 %attr(755,root,root) %{_libdir}/lpfilters/*
129 %dir %attr(750,root,lp) %{_var}/spool/lpd
130 %{_mandir}/man[158]/*