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-install.patch
12 Patch1: LPRng-autoconf.patch
13 Requires: /sbin/chkconfig
14 URL: http://www.astart.com/lprng/LPRng.html
17 BuildRoot: /tmp/%{name}-%{version}-root
19 %define _libdir %{_sbindir}
22 LPRng is the "next generation" printing system for UNIX, featuring
23 enhanced reliability and security.
26 LPRng jest systemem drukowania nowej generacji zwiêkszaj±cym niezawodno¶æ
35 gettextize --copy --force
38 LDFLAGS="-s"; export LDFLAGS
41 --with-included-gettext
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
50 DESTDIR=$RPM_BUILD_ROOT \
51 LPD_CONF_PATH=$RPM_BUILD_ROOT/etc/lpd.conf \
52 LPD_PERMS_PATH=$RPM_BUILD_ROOT/etc/lpd.perms \
55 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/lpd
57 rm -fr TESTSUPPORT/{Makefile*,LPD}
59 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \
60 ANNOUNCE CHANGES CONTRIBUTORS \
61 README* TESTSUPPORT/* HOWTO/LPRng-HOWTO.txt
66 /sbin/chkconfig --add lpd
67 if test -r /var/run/lpd.pid; then
68 /etc/rc.d/init.d/lpd restart 1>&2
70 echo "Run \"/etc/rc.d/init.d/lpd start\" to start mcserv daemon."
74 if [ "$1" = "0" ]; then
75 /sbin/chkconfig --del lpd
76 /etc/rc.d/init.d/lpd stop 1>&2
80 rm -rf $RPM_BUILD_ROOT
82 %files -f %{name}.lang
83 %defattr(644,root,root,755)
84 %config(noreplace) /etc/lpd.conf
85 %config(noreplace) /etc/lpd.perms
86 %doc {ANNOUNCE,CHANGES,CONTRIBUTORS}.gz
87 %doc {HOWTO/LPRng-HOWTO.txt,README*}.gz TESTSUPPORT
88 %attr(754,root,root) /etc/rc.d/init.d/lpd
89 %attr(755,root,root) %{_bindir}/*
90 %attr(755,root,root) %{_sbindir}/*
94 * Sat Jul 10 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
96 - added more standard autoconf suit (LPRng-autoconf.patch),
97 - removed unused Source1 (LPRng-DOC*tgz),
98 - added including in pacckage .mo files (%%find_lang),
99 - added using %config macro in %build
100 - standarized %post, %preun.
102 * Tue Feb 9 1999 Micha³ Kuratczyk <kurkens@polbox.com>
104 - added pl translations
106 - added gzipping man pages and documentation
108 * Tue Dec 1 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
110 - added -q %setup parameter,
111 - added gzipping man pages,
112 - changed Buildroot to /tmp/%%{name}-%%{version}-root,
113 - removed INSTALL and COPYING from %doc,
114 - added using %%{name} and %%{version} in Source,
115 - added %attr and %defattr macros in %files (allow build package from
118 * Thu Jan 29 1998 Jan "Yenya" Kasprzak <kas@fi.muni.cz
120 - Merged LPRng and LPRng-lpd packages - if you don't need lpd, chkconfig it off.
121 - Changed /etc/rc.d/init.d/lpd script to be chkconfig-compatible for RH5.0
123 * Thu Jun 5 1997 Timo Karjalainen <timok@iki.fi>
124 - Upgraded to version 3.2.6
126 * Sat May 31 1997 Timo Karjalainen <timok@iki.fi>
127 - Upgraded to version 3.2.5
128 - Some minor changes to specfile