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 BuildRequires: ncurses-devel >= 5.0
13 Requires: /sbin/chkconfig
14 Requires: rc-scripts >= 0.2.0
15 URL: http://www.astart.com/lprng/LPRng.html
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 %define _libdir %{_sbindir}
21 %define _sysconfdir /etc
24 The LPRng software is an enhanced, extended, and portable implementation of
25 the Berkeley LPR print spooler functionality. While providing the same
26 interface and meeting RFC1179 requirements, the implementation is completely
27 new and provides support for the following features: lightweight (no
28 databases needed) lpr, lpc, and lprm programs; dynamic redirection of print
29 queues; automatic job holding; highly verbose diagnostics; multiple printers
30 serving a single queue; client programs do not need to run SUID root;
31 greatly enhanced security checks; and a greatly improved permission and
32 authorization mechanism.
34 The source software compiles and runs on a wide variety of UNIX systems, and
35 is compatible with other print spoolers and network printers that use the
36 LPR interface and meet RFC1179 requirements. LPRng provides emulation
37 packages for the SVR4 lp and lpstat programs, eliminating the need for
38 another print spooler package. These emulation packages can be modified
39 according to local requirements, in order to support vintage printing
42 For users that require secure and/or authenticated printing support, LPRng
43 supports Kerberos V, MIT Kerberos IV Print Support, and PGP authentication.
44 LPRng is being adopted by MIT for use as their Campus Wide printing support
45 system. Additional authentication support is extremely simple to add. LPRng
46 is Open Source Software, and the current public distribution is available
47 from the listed FTP and Web Sites.
50 LPRng jest systemem drukowania nowej generacji zwiêkszaj±cym niezawodno¶æ
58 gettextize --copy --force
61 LDFLAGS="-s"; export LDFLAGS
65 --without-included-gettext
70 rm -rf $RPM_BUILD_ROOT
71 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
74 DESTDIR=$RPM_BUILD_ROOT \
75 LPD_CONF_PATH=$RPM_BUILD_ROOT%{_sysconfdir}/lpd.conf \
76 LPD_PERMS_PATH=$RPM_BUILD_ROOT%{_sysconfdir}/lpd.perms
78 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/lpd
80 rm -fr TESTSUPPORT/{Makefile*,LPD}
82 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \
83 ANNOUNCE CHANGES CONTRIBUTORS \
84 README* TESTSUPPORT/* HOWTO/LPRng-HOWTO.txt
89 /sbin/chkconfig --add lpd
90 if [ -f /var/lock/subsys/lpd]; then
91 /etc/rc.d/init.d/lpd restart 1>&2
93 echo "Run \"/etc/rc.d/init.d/lpd start\" to start LPRng lpd daemon."
97 if [ "$1" = "0" ]; then
98 if [ -f /var/lock/subsys/lpd]; then
99 /etc/rc.d/init.d/lpd stop 1>&2
101 /sbin/chkconfig --del lpd
105 rm -rf $RPM_BUILD_ROOT
107 %files -f %{name}.lang
108 %defattr(644,root,root,755)
109 %config(noreplace) %{_sysconfdir}/lpd.conf
110 %config(noreplace) %{_sysconfdir}/lpd.perms
111 %doc {ANNOUNCE,CHANGES,CONTRIBUTORS}.gz
112 %doc {HOWTO/LPRng-HOWTO.txt,README*}.gz TESTSUPPORT
113 %attr(754,root,root) /etc/rc.d/init.d/lpd
114 %attr(755,root,root) %{_bindir}/*
115 %attr(755,root,root) %{_libdir}/*
116 %dir %{_libexecdir}/filters
117 %attr(755,root,root) %{_libexecdir}/filters/*
118 %{_mandir}/man[158]/*