--- rpms/LPRng/sme8/LPRng.spec 2007/06/12 19:58:57 1.1 +++ rpms/LPRng/sme8/LPRng.spec 2008/01/11 23:45:21 1.3 @@ -1,29 +1,23 @@ -#$Id: LPRng.spec,v 1.3 2005/04/27 18:59:49 dominik Exp $ - Summary: The LPRng print spooler. Name: LPRng -Version: 3.8.29 -Release: 3%{?dist} -%define nokerberos 1 +Version: 3.8.32 +Release: 2%{?dist} License: GPL and Artistic Group: System Environment/Daemons -Source0: ftp://ftp.lprng.com/pub/LPRng/LPRng/%{name}-%{version}-RC2.tar.gz +Source0: ftp://ftp.lprng.com/pub/LPRng/LPRng/%{name}-%{version}.tgz Source1: lpd.init -Patch0: LPRng-3.8.4-nonblock.patch -Patch1: LPRng-3.7.4-lpd-perms.patch -Patch2: LPRng-3.8.15-krb5.patch +Patch1: LPRng-3.8.32-makefile.patch URL: http://www.lprng.com Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root Obsoletes: lpr Provides: lpr -Provides: lpd -Prereq: /etc/rc.d/init.d, mktemp, fileutils, textutils, gawk +Prereq: /sbin/chkconfig, /etc/rc.d/init.d, mktemp, fileutils, textutils, gawk Prereq: /usr/sbin/alternatives -# Alternatives is provided by chkconfig at the moment. 1.3.4 is the -# minimum we need (see bug #62342). -PreReq: chkconfig >= 1.3.4-1 BuildPreReq: gettext ed autoconf -BuildPrereq: krb5-devel +BuildRequires: gcc-g77 elfutils-libelf-devel ncurses-devel libtermcap-devel +BuildRequires: openssl-devel gettext-devel +%{!?nokerberos:BuildPrereq: krb5-devel} +%{!?nokerberos:Requires: krb5-libs} # We don't ship these files, but create symlinks to them. Other # packages aren't to know though. @@ -58,65 +52,55 @@ LPRng supports Kerberos V, MIT Kerberos authentication. Additional authentication support is extremely simple to add. -%package devel -Summary: The LPRng print spooler - devel/static libs -Group: Development/Libraries -Requires: %{name} = %{epoch}:%{version} - -%description devel -This package contains the libtool files and the static version of LPRng's -liblpr. - %prep + %setup -q -%patch0 -p1 -b .nonblock -# Remove remote job submissions -#%patch1 -p1 -b .lpd-perms -#%patch2 -p1 -b .krb5 +%patch1 -p1 +# pick up configure.in changes + +# set up gettext +( +cd po +rm Makefile.in.in +ln -s /usr/share/gettext/po/Makefile.in.in . +) + +#sh CREATE_CONFIGURE + %build test -f /usr/share/libtool/config.guess && cp /usr/share/libtool/config.guess . test -f /usr/share/libtool/config.sub && cp /usr/share/libtool/config.sub . +#PSHOWALL="-ax" ; export PSHOWALL # So that we don't need /proc mounted CFLAGS="$RPM_OPT_FLAGS" ; export CFLAGS -PSHOWALL="-ax" ; export PSHOWALL # So that we don't need /proc mounted %configure --enable-nls \ --with-userid=lp \ --with-groupid=lp \ - --enable-shared \ - --disable-gdbm \ - --disable-strip \ --disable-werror \ -%{!?nokerberos:--enable-kerberos} +%{!?nokerberos:--enable-kerberos LDFLAGS="-L/usr/kerberos/lib" CPPFLAGS="-I/usr/kerberos/include" } make MAKEPACKAGE=YES %install rm -rf %{buildroot} + +# Installation of locales is broken... Work around it! + make SUID_ROOT_PERMS=" 04755" DESTDIR=${RPM_BUILD_ROOT} MAKEPACKAGE=YES mandir=%{_mandir} install -%__cp src/monitor ${RPM_BUILD_ROOT}%{_prefix}/sbin/monitor # Remove files we don't ship +rm -f %{buildroot}/usr/share/LPRng/*.sample rm -f %{buildroot}%{_sysconfdir}/*.sample rm -f %{buildroot}%{_sysconfdir}/lpd/*.sample +rm -f %{buildroot}%{_sysconfdir}/rc.d/init.d/*.sample rm -f %{buildroot}%{_sysconfdir}/lpd/lpd rm -f %{buildroot}%{_sysconfdir}/printcap -#rm -f %{buildroot}%{_libdir}/liblpr.*a +rm -f %{buildroot}%{_libdir}/liblpr.*a rm -f %{buildroot}%{_sbindir}/lprng_{index_,}certs # install init script mkdir -p %{buildroot}%{_sysconfdir}/rc.d/init.d install -m755 %{SOURCE1} %{buildroot}%{_sysconfdir}/rc.d/init.d/lpd -# Adjust defaults -mkdir -p %{buildroot}%{_sysconfdir}/lpd -install -m644 src/lpd.conf %{buildroot}%{_sysconfdir}/lpd -cat << EOF | ed %{buildroot}%{_sysconfdir}/lpd/lpd.conf -/default mc=/a -mc#128 -. -wq -EOF -install -m644 conf/lpd.perms %{buildroot}%{_sysconfdir}/lpd - # Alternatives, to avoid conflicting with cups. for f in %{_bindir}/{cancel,lp,lp{q,r,rm,stat}} %{_sbindir}/lpc do @@ -128,8 +112,6 @@ do done mv %{buildroot}%{_mandir}/man8/lpc.8 %{buildroot}%{_mandir}/man8/lpc-LPRng.8 -%find_lang %{name} - %clean rm -rf %{buildroot} @@ -152,20 +134,20 @@ fi # Alternatives /usr/sbin/alternatives --install %{_bindir}/lpr print %{_bindir}/lpr.LPRng 41 \ - --slave %{_bindir}/lp print-lp %{_bindir}/lp.LPRng \ - --slave %{_bindir}/lpq print-lpq %{_bindir}/lpq.LPRng \ - --slave %{_bindir}/lprm print-lprm %{_bindir}/lprm.LPRng \ - --slave %{_bindir}/lpstat print-lpstat %{_bindir}/lpstat.LPRng \ - --slave %{_bindir}/cancel print-cancel %{_bindir}/cancel.LPRng \ - --slave %{_sbindir}/lpc print-lpc %{_sbindir}/lpc.LPRng \ - --slave %{_mandir}/man1/cancel.1.gz print-cancelman %{_mandir}/man1/cancel-LPRng.1.gz \ - --slave %{_mandir}/man1/lp.1.gz print-lpman %{_mandir}/man1/lp-LPRng.1.gz \ - --slave %{_mandir}/man8/lpc.8.gz print-lpcman %{_mandir}/man8/lpc-LPRng.8.gz \ - --slave %{_mandir}/man1/lpq.1.gz print-lpqman %{_mandir}/man1/lpq-LPRng.1.gz \ - --slave %{_mandir}/man1/lpr.1.gz print-lprman %{_mandir}/man1/lpr-LPRng.1.gz \ - --slave %{_mandir}/man1/lprm.1.gz print-lprmman %{_mandir}/man1/lprm-LPRng.1.gz \ - --slave %{_mandir}/man1/lpstat.1.gz print-lpstatman %{_mandir}/man1/lpstat-LPRng.1.gz \ - --initscript lpd + --slave %{_bindir}/lp print-lp %{_bindir}/lp.LPRng \ + --slave %{_bindir}/lpq print-lpq %{_bindir}/lpq.LPRng \ + --slave %{_bindir}/lprm print-lprm %{_bindir}/lprm.LPRng \ + --slave %{_bindir}/lpstat print-lpstat %{_bindir}/lpstat.LPRng \ + --slave %{_bindir}/cancel print-cancel %{_bindir}/cancel.LPRng \ + --slave %{_sbindir}/lpc print-lpc %{_sbindir}/lpc.LPRng \ + --slave %{_mandir}/man1/cancel.1.gz print-cancelman %{_mandir}/man1/cancel-LPRng.1.gz \ + --slave %{_mandir}/man1/lp.1.gz print-lpman %{_mandir}/man1/lp-LPRng.1.gz \ + --slave %{_mandir}/man8/lpc.8.gz print-lpcman %{_mandir}/man8/lpc-LPRng.8.gz \ + --slave %{_mandir}/man1/lpq.1.gz print-lpqman %{_mandir}/man1/lpq-LPRng.1.gz \ + --slave %{_mandir}/man1/lpr.1.gz print-lprman %{_mandir}/man1/lpr-LPRng.1.gz \ + --slave %{_mandir}/man1/lprm.1.gz print-lprmman %{_mandir}/man1/lprm-LPRng.1.gz \ + --slave %{_mandir}/man1/lpstat.1.gz print-lpstatman %{_mandir}/man1/lpstat-LPRng.1.gz \ + --initscript lpd %preun if [ "$1" = 0 ]; then @@ -184,18 +166,11 @@ fi # Deal with pre-alternatives packages /usr/sbin/alternatives --auto print -%files -f %{name}.lang -%defattr(644,root,root,755) -%doc CHANGES CONTRIBUTORS COPYRIGHT INSTALL LICENSE -%doc README* -#%doc DOCS/LPRng-Reference.html DOCS/*.jpg -%dir %{_sysconfdir}/lpd -%config(noreplace) %{_sysconfdir}/lpd/lpd.conf -%config(noreplace) %{_sysconfdir}/lpd/lpd.perms -%attr(755,root,root) %config %{_sysconfdir}/rc.d/init.d/lpd -%{_mandir}/*/* -%attr(755,lp,lp) %{_bindir}/cancel.LPRng -%attr(755,lp,lp) %{_bindir}/lp.LPRng +%files +%defattr(-,root,root) +%config %{_sysconfdir}/lpd/lpd.conf +%config %{_sysconfdir}/lpd/lpd.perms +%config %{_sysconfdir}/rc.d/init.d/lpd %attr(755,lp,lp) %{_bindir}/lpq.LPRng %attr(755,lp,lp) %{_bindir}/lprm.LPRng %attr(755,lp,lp) %{_bindir}/lpr.LPRng @@ -203,134 +178,30 @@ fi %{_bindir}/lp.LPRng %{_bindir}/cancel.LPRng %attr(755,lp,lp) %{_sbindir}/lpc.LPRng -%attr(755,root,root) %{_sbindir}/lpd -%attr(755,root,root) %{_sbindir}/checkpc -%attr(755,root,root) %{_sbindir}/monitor -#%attr(755,root,root) %{_libdir}/*.so.* +%attr(755,root,root) %{_sbindir}/lpd +%attr(755,root,root) %{_sbindir}/checkpc +%attr(755,root,root) /usr/libexec/filters/* %dir /usr/libexec/filters -%attr(755,root,root) /usr/libexec/filters/* - -%files devel -%defattr(644,root,root,755) -#%{_libdir}/*.so -#%{_libdir}/liblpr.a -#%attr(755,root,root) %{_libdir}/liblpr.la +%{_mandir}/*/* +%attr(755,root,root) %{_prefix}/share/locale/* +%doc CHANGES CONTRIBUTORS COPYRIGHT INSTALL LICENSE +%doc README* VERSION Y2KCompliance +%doc DOCS %changelog -* Sun Apr 29 2007 Shad L. Lords -- Clean up spec so package can be built by koji/plague - -* Thu Apr 05 2007 Shad L. Lords 3.8.29-3 -- Add missing lp and cancel to files section [SME: 2714] - -* Thu Mar 22 2007 Shad L. Lords 3.8.29-2 -- Clean cb from relase numbering. - -* Thu Mar 22 2007 Charlie Brady 3.8.29-1 -- Switch to new upstream source, and fix for build on CentOS5. [SME: 2509] - -* Thu Dec 07 2006 Shad L. Lords -- Update to new release naming. No functional changes. -- Make Packager generic - -* Wed Apr 27 2005 Dominik Mierzejewski 3.8.28-2 -- 3.8.28 -- fix compilation (bad include path) -- new conf file dir (/etc/lpd/) -- cups thinks it's better, let's fix it - -* Wed Apr 9 2003 Tim Waugh 3.8.19-3.1 -- Fix temporary file vulnerability in psbanner. - -* Thu Jan 23 2003 Tim Waugh 3.8.19-3 -- Fix localedir (bug #82492). - -* Wed Jan 22 2003 Tim Powers 3.8.19-2 -- rebuilt - -* Thu Jan 16 2003 Tim Waugh 3.8.19-1 -- 3.8.19 (bug #81970). -- No longer need werror patch. - -* Tue Jan 7 2003 Nalin Dahyabhai 3.8.15-4 -- Rebuild - -* Fri Dec 20 2002 Tim Waugh 3.8.15-3 -- Make 'service lpd reload' update the configuration first (bug #79953). - -* Fri Dec 6 2002 Tim Waugh 3.8.15-2 -- Change build requirement from autoconf253 to autoconf. - -* Thu Nov 7 2002 Tim Waugh 3.8.15-1 -- Updated krb5 patch. -- 3.8.15. -- Removed manpage, jobfilescan, pr patches: no longer needed. -- Updated werror patch. -- Don't install files not shipped. -- Use %%find_lang. - -* Fri Jun 21 2002 Tim Powers -- automated rebuild - -* Mon Jun 17 2002 Tim Waugh 3.8.9-5 -- Rebuild in new environment. - -* Thu May 16 2002 Tim Waugh 3.8.9-4 -- Reject remote job submissions by default. - -* Tue Apr 2 2002 Tim Waugh 3.8.9-3 -- PreReq chkconfig 1.3.4-1 or later (bug #62342). -- Don't strip binaries by default during build/install. - -* Tue Mar 12 2002 Tim Waugh 3.8.9-2 -- AC_C_VOLATILE comes from autoconf 2.52. Use it. - -* Mon Mar 11 2002 Tim Waugh 3.8.9-1 -- 3.8.9. -- Patch to fix bug #55376 reverted (documentation now corrected). -- Remove AC_C_VOLATILE (doesn't seem to be defined). -- Conflict with chkconfig < 1.3.1 (alternatives --initscript). - -* Fri Mar 8 2002 Bill Nottingham 3.8.7-3 -- use alternatives --initscript support - -* Thu Feb 28 2002 Bill Nottingham 3.8.7-2 -- agree with cups about alternative name for lpr man page -- move alternatives removal to %preun - -* Mon Feb 25 2002 Tim Waugh 3.8.7-1 -- 3.8.7. -- No longer need coredump patch. - -* Thu Feb 21 2002 Tim Waugh 3.8.5-4 -- Rebuild in new environment. - -* Wed Feb 13 2002 Tim Waugh 3.8.5-3 -- Better default for maximum copies (bug #59433). -- Skip over non-existent entries, like the documentation says we - do (bug #55376). - -* Wed Jan 30 2002 Tim Waugh 3.8.5-2 -- Don't conflict with other print spoolers. - -* Tue Jan 29 2002 Tim Waugh 3.8.5-1 -- 3.8.5. -- Stop lpstat from dumping core. - -* Mon Jan 21 2002 Tim Waugh 3.8.4-1 -- 3.8.4 (bug #35636, bug #47865). -- Drop explicit 'Requires: krb5', since it is picked up automatically - (bug #57458). -- Patches no longer needed: lockfile, nointl, inet_ntop, shutdown, direct, - setgroup, s390, -- Fix path to pr (bug #39130). -- HOWTO GIFs now replaced by JPEGs. - -* Wed Jan 09 2002 Tim Powers 3.7.4-30 -- automated rebuild - -* Wed Jan 02 2002 Florian La Roche 3.7.4-29 -- require krb5 instead of krb5-libs +* Fri Jan 11 2008 Patrick Powell 3.8.23-2.sme +- Fix package to use alternatives +- Patch Makefile to work correctly + +* Thu Nov 13 2003 Patrick Powell 3.8.23-1 +- updated everything to fit the new sysconfdir standards +- the startup script is copied to sysconfdir/lpd/lpd.init as part of the +- normal install now + +* Tue Aug 21 2001 Patrick Powell 3.7.5-1 +- new release for 3.7.5 +- Note the aclocal, autoconf, etc. stuff added to make the various +- versions of gettext and libtool compatible with the RedHat version. * Fri Aug 10 2001 Crutcher Dunnavant 3.7.4-28 - disabled gdbm support, changed CFLAGS; #41652