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 BuildRequires: ncurses-devel >= 5.0
12 Requires: /sbin/chkconfig
13 Requires: rc-scripts >= 0.2.0
14 URL: http://www.astart.com/lprng/LPRng.html
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 %define _libdir %{_sbindir}
20 %define _sysconfdir /etc
23 The LPRng software is an enhanced, extended, and portable
24 implementation of the Berkeley LPR print spooler functionality. While
25 providing the same interface and meeting RFC1179 requirements, the
26 implementation is completely new and provides support for the
27 following features: lightweight (no databases needed) lpr, lpc, and
28 lprm programs; dynamic redirection of print queues; automatic job
29 holding; highly verbose diagnostics; multiple printers serving a
30 single queue; client programs do not need to run SUID root; greatly
31 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
35 systems, and is compatible with other print spoolers and network
36 printers that use the LPR interface and meet RFC1179 requirements.
37 LPRng provides emulation packages for the SVR4 lp and lpstat programs,
38 eliminating the need for another print spooler package. These
39 emulation packages can be modified according to local requirements, in
40 order to support vintage printing systems.
42 For users that require secure and/or authenticated printing support,
43 LPRng supports Kerberos V, MIT Kerberos IV Print Support, and PGP
44 authentication. LPRng is being adopted by MIT for use as their Campus
45 Wide printing support system. Additional authentication support is
46 extremely simple to add. LPRng is Open Source Software, and the
47 current public distribution is available from the listed FTP and Web
51 LPRng jest systemem drukowania nowej generacji zwiêkszaj±cym
52 niezawodno¶æ i bezpieczeñstwo.
58 mv -f aclocal.m4 acinclude.m4
60 gettextize --copy --force
62 LDFLAGS="-s"; export LDFLAGS
69 rm -rf $RPM_BUILD_ROOT
70 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
73 INSTALL_PREFIX=$RPM_BUILD_ROOT \
74 LPD_CONF_PATH=$RPM_BUILD_ROOT%{_sysconfdir}/lpd.conf \
75 LPD_PERMS_PATH=$RPM_BUILD_ROOT%{_sysconfdir}/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 CHANGES CONTRIBUTORS \
83 README* TESTSUPPORT/* HOWTO/LPRng-HOWTO.html
86 /sbin/chkconfig --add lpd
87 if [ -f /var/lock/subsys/lpd ]; then
88 /etc/rc.d/init.d/lpd restart 1>&2
90 echo "Run \"/etc/rc.d/init.d/lpd start\" to start LPRng lpd daemon."
94 if [ "$1" = "0" ]; then
95 if [ -f /var/lock/subsys/lpd ]; then
96 /etc/rc.d/init.d/lpd stop 1>&2
98 /sbin/chkconfig --del lpd
102 rm -rf $RPM_BUILD_ROOT
105 %defattr(644,root,root,755)
106 %config(noreplace) %{_sysconfdir}/lpd.conf
107 %config(noreplace) %{_sysconfdir}/lpd.perms
108 %doc {CHANGES,CONTRIBUTORS}.gz
109 %doc {HOWTO/LPRng-HOWTO.html,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) %{_libdir}/*
113 %dir %{_libexecdir}/filters
114 %attr(755,root,root) %{_libexecdir}/filters/*
115 %{_mandir}/man[158]/*