]> git.pld-linux.org Git - packages/LPRng.git/blobdiff - LPRng.spec
- added reasonable max_servers_active
[packages/LPRng.git] / LPRng.spec
index 727c8fda7b5bfc824f6a5752b58f980da672da2a..334a43ec396bf298a76a1531fb1f018b5896e7ab 100644 (file)
 Summary:       A next-generation printing system for UNIX
 Summary(pl):   System drukowania nowej generacji
 Name:          LPRng
-Version:       3.6.13
-Release:       3
+Version:       3.8.0
+Release:       1
 License:       GPL
-Group:         Utilities/System
-Group(pl):     Narzêdzia/System
+Group:         Applications/System
+Group(de):     Applikationen/System
+Group(pl):     Aplikacje/System
 Source0:       ftp://ftp.astart.com/pub/LPRng/LPRng/%{name}-%{version}.tgz
-Source1:       LPRng.init
-Patch0:                LPRng-autoconf.patch
-BuildRequires: ncurses-devel >= 5.0
-Requires:      /sbin/chkconfig
-Requires:      rc-scripts >= 0.2.0
+Source1:       %{name}.init
+Source2:       %{name}.conf
+Source3:       %{name}.printcap
+Patch0:                %{name}-jobfilescan.patch
+Patch1:                %{name}-ac_fixes.patch
+Patch2:                %{name}-manpage.patch
+Patch3:                %{name}-shutdown.patch
 URL:           http://www.astart.com/lprng/LPRng.html
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: gettext-devel
+BuildRequires: libtool
+BuildRequires: ncurses-devel >= 5.0
+Prereq:                /sbin/chkconfig
+Prereq:                rc-scripts >= 0.2.0
 Provides:      lpr
 Obsoletes:     lpr
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _libdir         %{_sbindir}
-%define                _sysconfdir     /etc
 
 %description
-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
+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.
+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.
+LPRng jest rozszerzon±, ulepszon± i portowaln± implementacj± 
+Berkeley'owskiego LPR print spooler'a. Dostarcza ten sam interfejs
+oraz jest zgodny z wymaganiami RFC1179. Jednocze¶nie wykonanie jest
+ca³kowicie nowe i dostarcza nastêpuj±ce rzeczy: 
+- programy - "lekki" lpr (nie s± potrzebne ¿adne bazy danych), 
+  lpc, oraz lprm;
+- dynamiczna redyrekcja do kolejek;
+- automatyczne wstrzymywanie zadañ;
+- "gadatliwa" diagnostyka;
+- obs³ugê wielu drukarek na jednej kolejce;
+- programy klienckie nie musz± byæ SUID root;
+- mocno rozszerzona kontrola bezpieczeñstwa;
+- mocno rozszerzone mechanizmy bezpieczeñstwa i kontroli uprawnieñ.
+
+Oprogramowanie to kompiluje siê i dzia³a na wielu systemach UNIX'owych
+i jest kompatybilne z innymi print spoolami oraz drukarkami sieciowymi, 
+które u¿ywaj± interfejsu LPR oraz spe³niaj± wymagania RFC1179. LPRng
+dostarcza pakiety emulacyjne dla programów SVR4 lp oraz lpstat, 
+eliminuj±c w ten sposób konieczno¶æ posiadania jeszcze jednego pakietu
+print spoola. Te pakiety mog± byæ modyfikowane zgodnie z lokalnymi 
+wymaganiami. 
+
+Dla u¿ytkowników, którzy potrzebuj± bezpiecznej i autentyfikowanej
+obs³ugi drukowania LPRng wspiera Kerberos V, MIT Kerberos IV Print 
+Support oraz PGP. 
+
+%package static
+Summary:       Static LPRng libraries
+Summary(pl):   Statyczne biblioteki dla LPRng
+Group:         X11/Development/Libraries
+Group(de):      X11/Entwicklung/Libraries
+Group(es):      X11/Desarrollo/Bibliotecas
+Group(fr):      X11/Development/Librairies
+Group(pl):      X11/Programowanie/Biblioteki
+Group(pt_BR):   X11/Desenvolvimento/Bibliotecas
+Group(ru):      X11/òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
+Group(uk):      X11/òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
+
+%description static
+Static LPRng libraries.
+
+%description -l pl static
+Biblioteki statyczne LPRng.
+
 
 %prep
 %setup  -q
 %patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
 
 %build
+rm -f missing acinclude.m4
 gettextize --copy --force
+libtoolize --copy --force
 aclocal
 autoconf
-LDFLAGS="-s"; export LDFLAGS
+(cd gdbm-1.8.0 ; aclocal ; autoconf )
 %configure \
-       --enable-nls \
        --disable-setuid \
-       --without-included-gettext
+       --with-userid=lp \
+       --with-groupid=lp \
+       --with-filterdir=%{_libdir}/lpfilters \
+       --with-lockfile=%{_var}/spool/lpd/lpd
 
-make
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d  $RPM_BUILD_ROOT/etc/rc.d/init.d
+install -d  $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_var}/spool/lpd}
 
-make install \
+%{__make} install \
        DESTDIR=$RPM_BUILD_ROOT \
-       LPD_CONF_PATH=$RPM_BUILD_ROOT%{_sysconfdir}/lpd.conf \
-       LPD_PERMS_PATH=$RPM_BUILD_ROOT%{_sysconfdir}/lpd.perms
+       POSTINSTALL="NO"
 
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/lpd
+# yes, overwrite distribution lpd.conf
+install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/lpd.conf
+echo "default_printer = lp" >>$RPM_BUILD_ROOT%{_sysconfdir}/lpd.conf
+install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/printcap
+install lpd.perms $RPM_BUILD_ROOT%{_sysconfdir}/
+# default spool
+install -d $RPM_BUILD_ROOT%{_var}/spool/lpd/lp
 
 rm -fr TESTSUPPORT/{Makefile*,LPD}
+mv -f lpd.conf TESTSUPPORT/lpd.conf.distrib
 
-gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \
-       ANNOUNCE CHANGES CONTRIBUTORS \
-       README* TESTSUPPORT/* HOWTO/LPRng-HOWTO.txt
+gzip -9nf CHANGES CONTRIBUTORS README* TESTSUPPORT/*
 
 %find_lang %{name}
 
+%clean
+rm -rf $RPM_BUILD_ROOT
+
 %post
 /sbin/chkconfig --add lpd
-if [ -f /var/lock/subsys/lpd]; then
+if [ -f /var/lock/subsys/lpd ]; then
        /etc/rc.d/init.d/lpd restart 1>&2
 else
        echo "Run \"/etc/rc.d/init.d/lpd start\" to start LPRng lpd daemon."
@@ -95,24 +162,28 @@ fi
 
 %preun
 if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/lpd]; then
+       if [ -f /var/lock/subsys/lpd ]; then
                /etc/rc.d/init.d/lpd stop 1>&2
        fi
        /sbin/chkconfig --del lpd
 fi
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %files -f %{name}.lang
 %defattr(644,root,root,755)
-%config(noreplace) %{_sysconfdir}/lpd.conf
-%config(noreplace) %{_sysconfdir}/lpd.perms
-%doc {ANNOUNCE,CHANGES,CONTRIBUTORS}.gz
-%doc {HOWTO/LPRng-HOWTO.txt,README*}.gz TESTSUPPORT
+%doc *.gz TESTSUPPORT HOWTO/LPRng-HOWTO.html HOWTO/CHANGES
+%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/lpd.conf
+%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/lpd.perms
+%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/printcap
 %attr(754,root,root) /etc/rc.d/init.d/lpd
 %attr(755,root,root) %{_bindir}/*
-%attr(755,root,root) %{_libdir}/*
-%dir %{_libexecdir}/filters
-%attr(755,root,root) %{_libexecdir}/filters/*
+%attr(755,root,root) %{_sbindir}/*
+%attr(755,root,root) %{_libdir}/*.so*
+%attr(755,root,root) %{_libdir}/*.la
+%dir %{_libdir}/lpfilters
+%attr(755,root,root) %{_libdir}/lpfilters/*
+%dir %attr(750,root,lp) %{_var}/spool/lpd
+%dir %attr(770,root,lp) %{_var}/spool/lpd/lp
 %{_mandir}/man[158]/*
+
+%files static
+%{_libdir}/*.a
This page took 0.061118 seconds and 4 git commands to generate.