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