Summary: A next-generation printing system for UNIX
Summary(pl): System drukowania nowej generacji
Name: LPRng
-Version: 3.5.3
-Release: 2
+Version: 3.6.12
+Release: 1
Copyright: GPL
Group: Utilities/System
Group(pl): Narzêdzia/System
Source0: ftp://ftp.astart.com/pub/LPRng/LPRng/%{name}-%{version}.tgz
-Source1: ftp://ftp.astart.com/pub/LPRng/LPRng/%{name}_DOC-%{version}.tgz
-Source2: lpd.init
+Source1: lpd.init
+Patch0: LPRng-autoconf.patch
Requires: /sbin/chkconfig
+Requires: rc-scripts
URL: http://www.astart.com/lprng/LPRng.html
+BuildRequires: ncurses-devel >= 5.0
Provides: lpr
Obsoletes: lpr
BuildRoot: /tmp/%{name}-%{version}-root
+%define _libdir %{_sbindir}
+
%description
-LPRng is the "next generation" printing system for UNIX, featuring
-enhanced reliability and security.
+The LPRng software is an enhanced, extended, and portable implementation of
+the Berkeley LPR print spooler functionality. While providing the same
+interface and meeting RFC1179 requirements, the implementation is completely
+new and provides support for the following features: lightweight (no
+databases needed) lpr, lpc, and lprm programs; dynamic redirection of print
+queues; automatic job holding; highly verbose diagnostics; multiple printers
+serving a single queue; client programs do not need to run SUID root;
+greatly enhanced security checks; and a greatly improved permission and
+authorization mechanism.
+
+The source software compiles and runs on a wide variety of UNIX systems, and
+is compatible with other print spoolers and network printers that use the
+LPR interface and meet RFC1179 requirements. LPRng provides emulation
+packages for the SVR4 lp and lpstat programs, eliminating the need for
+another print spooler package. These emulation packages can be modified
+according to local requirements, in order to support vintage printing
+systems.
+
+For users that require secure and/or authenticated printing support, LPRng
+supports Kerberos V, MIT Kerberos IV Print Support, and PGP authentication.
+LPRng is being adopted by MIT for use as their Campus Wide printing support
+system. Additional authentication support is extremely simple to add. LPRng
+is Open Source Software, and the current public distribution is available
+from the listed FTP and Web Sites.
%description -l pl
LPRng jest systemem drukowania nowej generacji zwiêkszaj±cym niezawodno¶æ
i bezpieczeñstwo.
%prep
-%setup -q
-# %setup -a1
+%setup -q
+%patch0 -p1
%build
-CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
-./configure \
- --prefix=/usr
-# --with-lpddir=/usr/sbin \
-# --with-admindir=/usr/sbin
+gettextize --copy --force
+aclocal
+autoconf
+LDFLAGS="-s"; export LDFLAGS
+%configure \
+ --enable-nls \
+ --disable-setuid \
+ --without-included-gettext
make
install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
make install \
- prefix=$RPM_BUILD_ROOT/usr \
- INSTALL_LIB=$RPM_BUILD_ROOT/usr/sbin \
- INSTALL_MAINT=$RPM_BUILD_ROOT/usr/sbin \
- SUID_ROOT_PERMS="755"
+ DESTDIR=$RPM_BUILD_ROOT \
+ LPD_CONF_PATH=$RPM_BUILD_ROOT/etc/lpd.conf \
+ LPD_PERMS_PATH=$RPM_BUILD_ROOT/etc/lpd.perms
-install $RPM_SOURCE_DIR/lpd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/lpd
-install lpd.conf lpd.perms $RPM_BUILD_ROOT/etc
-# /etc/printcap is in the setup package
-# touch $RPM_BUILD_ROOT/etc/printcap
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/lpd
-gzip -9nf $RPM_BUILD_ROOT/usr/man/man*/* \
- ANNOUNCE Artistic.license CHANGES CONTRIBUTORS \
- Commercial.license HOWTO README* TESTSUPPORT
+rm -fr TESTSUPPORT/{Makefile*,LPD}
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%pre
-if test -r /etc/rc.d/init.d/lpd
- then /etc/rc.d/init.d/lpd stop
-fi
+gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \
+ ANNOUNCE CHANGES CONTRIBUTORS \
+ README* TESTSUPPORT/* HOWTO/LPRng-HOWTO.txt
-if test -r /etc/rc.d/init.d/lpd.init
- then /etc/rc.d/init.d/lpd.init stop
-fi
+%find_lang %{name}
%post
-test "$1" = 1 && /sbin/chkconfig lpd on
+/sbin/chkconfig --add lpd
+if test -r /var/run/lpd.pid; then
+ /etc/rc.d/init.d/lpd restart 1>&2
+else
+ echo "Run \"/etc/rc.d/init.d/lpd start\" to start mcserv daemon."
+fi
%preun
-if test "$1" = 0
-then
- /etc/rc.d/init.d/lpd stop
- /sbin/chkconfig lpd off
+if [ "$1" = "0" ]; then
+ /sbin/chkconfig --del lpd
+ /etc/rc.d/init.d/lpd stop 1>&2
fi
-%files
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files -f %{name}.lang
%defattr(644,root,root,755)
-# /etc/printcap is in the setup package
-# %config /etc/printcap
-%config /etc/lpd.conf
-%config /etc/lpd.perms
-%doc {ANNOUNCE,Artistic.license,CHANGES,CONTRIBUTORS}.gz
-%doc {Commercial.license,HOWTO,README*,TESTSUPPORT}.gz
-%attr(755,root,root) /etc/rc.d/init.d/lpd
-%attr(755,root,root) /usr/bin/*
-%attr(755,root,root) /usr/sbin/*
-/usr/man/man[158]/*
-
-%changelog
-* Tue Feb 9 1999 Micha³ Kuratczyk <kurkens@polbox.com>
- [3.5.3-2]
-- added pl translations
-- added Group(pl)
-- added gzipping man pages and documentation
-
-* Tue Dec 1 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
- [3.5.3-1]
-- added -q %setup parameter,
-- added gzipping man pages,
-- changed Buildroot to /tmp/%%{name}-%%{version}-root,
-- removed INSTALL and COPYING from %doc,
-- added using %%{name} and %%{version} in Source,
-- added %attr and %defattr macros in %files (allow build package from
- non-root account).
-
-* Thu Jan 29 1998 Jan "Yenya" Kasprzak <kas@fi.muni.cz
-- Upgraded to 3.4.2
-- Merged LPRng and LPRng-lpd packages - if you don't need lpd, chkconfig it off.
-- Changed /etc/rc.d/init.d/lpd script to be chkconfig-compatible for RH5.0
-
-* Thu Jun 5 1997 Timo Karjalainen <timok@iki.fi>
-- Upgraded to version 3.2.6
-
-* Sat May 31 1997 Timo Karjalainen <timok@iki.fi>
-- Upgraded to version 3.2.5
-- Some minor changes to specfile
+%config(noreplace) /etc/lpd.conf
+%config(noreplace) /etc/lpd.perms
+%doc {ANNOUNCE,CHANGES,CONTRIBUTORS}.gz
+%doc {HOWTO/LPRng-HOWTO.txt,README*}.gz TESTSUPPORT
+%attr(754,root,root) /etc/rc.d/init.d/lpd
+%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_sbindir}/*
+%dir %{_libexecdir}/filters
+%attr(755,root,root) %{_libexecdir}/filters/*
+%{_mandir}/man[158]/*