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