/[smeserver]/rpms/LPRng/sme7/LPRng.spec
ViewVC logotype

Diff of /rpms/LPRng/sme7/LPRng.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.1 by slords, Tue Jun 12 16:31:11 2007 UTC Revision 1.6 by slords, Wed Apr 9 13:51:41 2008 UTC
# Line 1  Line 1 
1  #$Id: LPRng.spec,v 1.3 2005/04/27 18:59:49 dominik Exp $  # $Id$
2    
3  Summary: The LPRng print spooler.  Summary: The LPRng print spooler.
4  Name: LPRng  Name: LPRng
5  Version: 3.8.29  Version: 3.8.32
6  Release: 3%{?dist}  Release: 2%{?dist}
 %define nokerberos 1  
7  License: GPL and Artistic  License: GPL and Artistic
8  Group: System Environment/Daemons  Group: System Environment/Daemons
9  Source0: ftp://ftp.lprng.com/pub/LPRng/LPRng/%{name}-%{version}-RC2.tar.gz  Source0: ftp://ftp.lprng.com/pub/LPRng/LPRng/%{name}-%{version}.tgz
10  Source1: lpd.init  Source1: lpd.init
11  Patch0: LPRng-3.8.4-nonblock.patch  Patch1: LPRng-3.8.32-makefile.patch
 Patch1: LPRng-3.7.4-lpd-perms.patch  
 Patch2: LPRng-3.8.15-krb5.patch  
12  URL: http://www.lprng.com  URL: http://www.lprng.com
13  Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root  Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
14  Obsoletes: lpr  Obsoletes: lpr
15  Provides: lpr  Provides: lpr
16  Provides: lpd  Prereq: /sbin/chkconfig, /etc/rc.d/init.d, mktemp, fileutils, textutils, gawk
 Prereq: /etc/rc.d/init.d, mktemp, fileutils, textutils, gawk  
17  Prereq: /usr/sbin/alternatives  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  
18  BuildPreReq: gettext ed autoconf  BuildPreReq: gettext ed autoconf
19  BuildPrereq: krb5-devel  BuildRequires: /usr/bin/g77 elfutils-libelf-devel ncurses-devel libtermcap-devel
20    BuildRequires: openssl-devel gettext-devel
21    %{!?nokerberos:BuildPrereq: krb5-devel}
22    %{!?nokerberos:Requires: krb5-libs}
23    
24  # We don't ship these files, but create symlinks to them.  Other  # We don't ship these files, but create symlinks to them.  Other
25  # packages aren't to know though.  # packages aren't to know though.
# Line 58  LPRng supports Kerberos V, MIT Kerberos Line 54  LPRng supports Kerberos V, MIT Kerberos
54  authentication. Additional authentication support is extremely simple  authentication. Additional authentication support is extremely simple
55  to add.  to add.
56    
 %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.  
   
57  %prep  %prep
58    
59  %setup -q  %setup -q
60  %patch0 -p1 -b .nonblock  %patch1 -p1
61  # Remove remote job submissions  
62  #%patch1 -p1 -b .lpd-perms  # pick up configure.in changes
 #%patch2 -p1 -b .krb5  
63    
64    # set up gettext
65    (
66    cd po
67    rm Makefile.in.in
68    ln -s /usr/share/gettext/po/Makefile.in.in .
69    )
70    
71    #sh CREATE_CONFIGURE
72        
73  %build  %build
74  test -f /usr/share/libtool/config.guess && cp /usr/share/libtool/config.guess .  test -f /usr/share/libtool/config.guess && cp /usr/share/libtool/config.guess .
75  test -f /usr/share/libtool/config.sub   && cp /usr/share/libtool/config.sub .  test -f /usr/share/libtool/config.sub   && cp /usr/share/libtool/config.sub .
76    #PSHOWALL="-ax" ; export PSHOWALL # So that we don't need /proc mounted
77  CFLAGS="$RPM_OPT_FLAGS" ; export CFLAGS  CFLAGS="$RPM_OPT_FLAGS" ; export CFLAGS
 PSHOWALL="-ax" ; export PSHOWALL # So that we don't need /proc mounted  
78  %configure --enable-nls \  %configure --enable-nls \
79          --with-userid=lp \          --with-userid=lp \
80          --with-groupid=lp \          --with-groupid=lp \
         --enable-shared \  
         --disable-gdbm \  
         --disable-strip \  
81          --disable-werror \          --disable-werror \
82  %{!?nokerberos:--enable-kerberos}  %{!?nokerberos:--enable-kerberos LDFLAGS="-L/usr/kerberos/lib" CPPFLAGS="-I/usr/kerberos/include" }
83  make MAKEPACKAGE=YES  make MAKEPACKAGE=YES
84    
85  %install  %install
86  rm -rf %{buildroot}  rm -rf %{buildroot}
87    
88    # Installation of locales is broken... Work around it!
89    
90  make SUID_ROOT_PERMS=" 04755" DESTDIR=${RPM_BUILD_ROOT} MAKEPACKAGE=YES mandir=%{_mandir} install  make SUID_ROOT_PERMS=" 04755" DESTDIR=${RPM_BUILD_ROOT} MAKEPACKAGE=YES mandir=%{_mandir} install
 %__cp src/monitor ${RPM_BUILD_ROOT}%{_prefix}/sbin/monitor  
91    
92  # Remove files we don't ship  # Remove files we don't ship
93    rm -f %{buildroot}/usr/share/LPRng/*.sample
94  rm -f %{buildroot}%{_sysconfdir}/*.sample  rm -f %{buildroot}%{_sysconfdir}/*.sample
95  rm -f %{buildroot}%{_sysconfdir}/lpd/*.sample  rm -f %{buildroot}%{_sysconfdir}/lpd/*.sample
96    rm -f %{buildroot}%{_sysconfdir}/rc.d/init.d/*.sample
97  rm -f %{buildroot}%{_sysconfdir}/lpd/lpd  rm -f %{buildroot}%{_sysconfdir}/lpd/lpd
98  rm -f %{buildroot}%{_sysconfdir}/printcap  rm -f %{buildroot}%{_sysconfdir}/printcap
99  #rm -f %{buildroot}%{_libdir}/liblpr.*a  rm -f %{buildroot}%{_libdir}/liblpr.*a
100  rm -f %{buildroot}%{_sbindir}/lprng_{index_,}certs  rm -f %{buildroot}%{_sbindir}/lprng_{index_,}certs
101    
102  # install init script  # install init script
103  mkdir -p %{buildroot}%{_sysconfdir}/rc.d/init.d  mkdir -p %{buildroot}%{_sysconfdir}/rc.d/init.d
104  install -m755 %{SOURCE1} %{buildroot}%{_sysconfdir}/rc.d/init.d/lpd  install -m755 %{SOURCE1} %{buildroot}%{_sysconfdir}/rc.d/init.d/lpd
105    
 # 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  
   
106  # Alternatives, to avoid conflicting with cups.  # Alternatives, to avoid conflicting with cups.
107  for f in %{_bindir}/{cancel,lp,lp{q,r,rm,stat}} %{_sbindir}/lpc  for f in %{_bindir}/{cancel,lp,lp{q,r,rm,stat}} %{_sbindir}/lpc
108  do  do
# Line 128  do Line 114  do
114  done  done
115  mv %{buildroot}%{_mandir}/man8/lpc.8 %{buildroot}%{_mandir}/man8/lpc-LPRng.8  mv %{buildroot}%{_mandir}/man8/lpc.8 %{buildroot}%{_mandir}/man8/lpc-LPRng.8
116    
 %find_lang %{name}  
   
117  %clean  %clean
118  rm -rf %{buildroot}  rm -rf %{buildroot}
119    
# Line 152  fi Line 136  fi
136    
137  # Alternatives  # Alternatives
138  /usr/sbin/alternatives --install %{_bindir}/lpr print %{_bindir}/lpr.LPRng 41 \  /usr/sbin/alternatives --install %{_bindir}/lpr print %{_bindir}/lpr.LPRng 41 \
139          --slave %{_bindir}/lp print-lp %{_bindir}/lp.LPRng \          --slave %{_bindir}/lp print-lp %{_bindir}/lp.LPRng \
140          --slave %{_bindir}/lpq print-lpq %{_bindir}/lpq.LPRng \          --slave %{_bindir}/lpq print-lpq %{_bindir}/lpq.LPRng \
141          --slave %{_bindir}/lprm print-lprm %{_bindir}/lprm.LPRng \          --slave %{_bindir}/lprm print-lprm %{_bindir}/lprm.LPRng \
142          --slave %{_bindir}/lpstat print-lpstat %{_bindir}/lpstat.LPRng \          --slave %{_bindir}/lpstat print-lpstat %{_bindir}/lpstat.LPRng \
143          --slave %{_bindir}/cancel print-cancel %{_bindir}/cancel.LPRng \          --slave %{_bindir}/cancel print-cancel %{_bindir}/cancel.LPRng \
144          --slave %{_sbindir}/lpc print-lpc %{_sbindir}/lpc.LPRng \          --slave %{_sbindir}/lpc print-lpc %{_sbindir}/lpc.LPRng \
145          --slave %{_mandir}/man1/cancel.1.gz print-cancelman %{_mandir}/man1/cancel-LPRng.1.gz \          --slave %{_mandir}/man1/cancel.1.gz print-cancelman %{_mandir}/man1/cancel-LPRng.1.gz \
146          --slave %{_mandir}/man1/lp.1.gz print-lpman %{_mandir}/man1/lp-LPRng.1.gz \          --slave %{_mandir}/man1/lp.1.gz print-lpman %{_mandir}/man1/lp-LPRng.1.gz \
147          --slave %{_mandir}/man8/lpc.8.gz print-lpcman %{_mandir}/man8/lpc-LPRng.8.gz \          --slave %{_mandir}/man8/lpc.8.gz print-lpcman %{_mandir}/man8/lpc-LPRng.8.gz \
148          --slave %{_mandir}/man1/lpq.1.gz print-lpqman %{_mandir}/man1/lpq-LPRng.1.gz \          --slave %{_mandir}/man1/lpq.1.gz print-lpqman %{_mandir}/man1/lpq-LPRng.1.gz \
149          --slave %{_mandir}/man1/lpr.1.gz print-lprman %{_mandir}/man1/lpr-LPRng.1.gz \          --slave %{_mandir}/man1/lpr.1.gz print-lprman %{_mandir}/man1/lpr-LPRng.1.gz \
150          --slave %{_mandir}/man1/lprm.1.gz print-lprmman %{_mandir}/man1/lprm-LPRng.1.gz \          --slave %{_mandir}/man1/lprm.1.gz print-lprmman %{_mandir}/man1/lprm-LPRng.1.gz \
151          --slave %{_mandir}/man1/lpstat.1.gz print-lpstatman %{_mandir}/man1/lpstat-LPRng.1.gz \          --slave %{_mandir}/man1/lpstat.1.gz print-lpstatman %{_mandir}/man1/lpstat-LPRng.1.gz \
152          --initscript lpd          --initscript lpd
153    
154  %preun  %preun
155  if [ "$1" = 0 ]; then  if [ "$1" = 0 ]; then
# Line 184  fi Line 168  fi
168  # Deal with pre-alternatives packages  # Deal with pre-alternatives packages
169  /usr/sbin/alternatives --auto print  /usr/sbin/alternatives --auto print
170    
171  %files -f %{name}.lang  %files
172  %defattr(644,root,root,755)  %defattr(-,root,root)
173  %doc CHANGES CONTRIBUTORS COPYRIGHT INSTALL LICENSE  %config %{_sysconfdir}/lpd/lpd.conf
174  %doc README*  %config %{_sysconfdir}/lpd/lpd.perms
175  #%doc DOCS/LPRng-Reference.html DOCS/*.jpg  %config %{_sysconfdir}/rc.d/init.d/lpd
 %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  
176  %attr(755,lp,lp) %{_bindir}/lpq.LPRng  %attr(755,lp,lp) %{_bindir}/lpq.LPRng
177  %attr(755,lp,lp) %{_bindir}/lprm.LPRng  %attr(755,lp,lp) %{_bindir}/lprm.LPRng
178  %attr(755,lp,lp) %{_bindir}/lpr.LPRng  %attr(755,lp,lp) %{_bindir}/lpr.LPRng
# Line 203  fi Line 180  fi
180  %{_bindir}/lp.LPRng  %{_bindir}/lp.LPRng
181  %{_bindir}/cancel.LPRng  %{_bindir}/cancel.LPRng
182  %attr(755,lp,lp) %{_sbindir}/lpc.LPRng  %attr(755,lp,lp) %{_sbindir}/lpc.LPRng
183  %attr(755,root,root) %{_sbindir}/lpd  %attr(755,root,root)  %{_sbindir}/lpd
184  %attr(755,root,root) %{_sbindir}/checkpc  %attr(755,root,root)  %{_sbindir}/checkpc
185  %attr(755,root,root) %{_sbindir}/monitor  %attr(755,root,root)  /usr/libexec/filters/*
 #%attr(755,root,root) %{_libdir}/*.so.*  
186  %dir /usr/libexec/filters  %dir /usr/libexec/filters
187  %attr(755,root,root) /usr/libexec/filters/*  %{_mandir}/*/*
188    %attr(755,root,root) %{_prefix}/share/locale/*
189  %files devel  %doc CHANGES CONTRIBUTORS COPYRIGHT INSTALL LICENSE
190  %defattr(644,root,root,755)  %doc README* VERSION Y2KCompliance
191  #%{_libdir}/*.so  %doc DOCS
 #%{_libdir}/liblpr.a  
 #%attr(755,root,root) %{_libdir}/liblpr.la  
192    
193  %changelog  %changelog
194  * Sun Apr 29 2007 Shad L. Lords <slords@mail.com>  * Fri Jan  11 2008 Shad L. Lords <slords@mail.com> 3.8.32-2.sme
195  - Clean up spec so package can be built by koji/plague  - Fix package to use alternatives
196    - Patch Makefile to work correctly
197  * Thu Apr 05 2007 Shad L. Lords <slords@mail.com> 3.8.29-3  
198  - Add missing lp and cancel to files section [SME: 2714]  * Thu Nov  13 2003 Patrick Powell <papowell@astart.com> 3.8.32-1
199    - updated everything to fit the new sysconfdir standards
200  * Thu Mar 22 2007 Shad L. Lords <slords@mail.com> 3.8.29-2  - the startup script is copied to sysconfdir/lpd/lpd.init as part of the
201  - Clean cb from relase numbering.  - normal install now
202    
203  * Thu Mar 22 2007 Charlie Brady <charlieb@e-smith.com> 3.8.29-1  * Tue Aug 21 2001 Patrick Powell <papowell@astart.com> 3.7.5-1
204  - Switch to new upstream source, and fix for build on CentOS5. [SME: 2509]  - new release for 3.7.5
205    - Note the aclocal, autoconf, etc. stuff added to make the various
206  * Thu Dec 07 2006 Shad L. Lords <slords@mail.com>  - versions of gettext and libtool compatible with the RedHat version.
 - Update to new release naming.  No functional changes.  
 - Make Packager generic  
   
 * Wed Apr 27 2005 Dominik Mierzejewski <dominik@rangers.eu.org> 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 <twaugh@redhat.com> 3.8.19-3.1  
 - Fix temporary file vulnerability in psbanner.  
   
 * Thu Jan 23 2003 Tim Waugh <twaugh@redhat.com> 3.8.19-3  
 - Fix localedir (bug #82492).  
   
 * Wed Jan 22 2003 Tim Powers <timp@redhat.com> 3.8.19-2  
 - rebuilt  
   
 * Thu Jan 16 2003 Tim Waugh <twaugh@redhat.com> 3.8.19-1  
 - 3.8.19 (bug #81970).  
 - No longer need werror patch.  
   
 * Tue Jan  7 2003 Nalin Dahyabhai <nalin@redhat.com> 3.8.15-4  
 - Rebuild  
   
 * Fri Dec 20 2002 Tim Waugh <twaugh@redhat.com> 3.8.15-3  
 - Make 'service lpd reload' update the configuration first (bug #79953).  
   
 * Fri Dec  6 2002 Tim Waugh <twaugh@redhat.com> 3.8.15-2  
 - Change build requirement from autoconf253 to autoconf.  
   
 * Thu Nov  7 2002 Tim Waugh <twaugh@redhat.com> 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 <timp@redhat.com>  
 - automated rebuild  
   
 * Mon Jun 17 2002 Tim Waugh <twaugh@redhat.com> 3.8.9-5  
 - Rebuild in new environment.  
   
 * Thu May 16 2002 Tim Waugh <twaugh@redhat.com> 3.8.9-4  
 - Reject remote job submissions by default.  
   
 * Tue Apr  2 2002 Tim Waugh <twaugh@redhat.com> 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 <twaugh@redhat.com> 3.8.9-2  
 - AC_C_VOLATILE comes from autoconf 2.52.  Use it.  
   
 * Mon Mar 11 2002 Tim Waugh <twaugh@redhat.com> 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 <notting@redhat.com> 3.8.7-3  
 - use alternatives --initscript support  
   
 * Thu Feb 28 2002 Bill Nottingham <notting@redhat.com> 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 <twaugh@redhat.com> 3.8.7-1  
 - 3.8.7.  
 - No longer need coredump patch.  
   
 * Thu Feb 21 2002 Tim Waugh <twaugh@redhat.com> 3.8.5-4  
 - Rebuild in new environment.  
   
 * Wed Feb 13 2002 Tim Waugh <twaugh@redhat.com> 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 <twaugh@redhat.com> 3.8.5-2  
 - Don't conflict with other print spoolers.  
   
 * Tue Jan 29 2002 Tim Waugh <twaugh@redhat.com> 3.8.5-1  
 - 3.8.5.  
 - Stop lpstat from dumping core.  
   
 * Mon Jan 21 2002 Tim Waugh <twaugh@redhat.com> 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 <timp@redhat.com> 3.7.4-30  
 - automated rebuild  
   
 * Wed Jan 02 2002 Florian La Roche <Florian.LaRoche@redhat.de> 3.7.4-29  
 - require krb5 instead of krb5-libs  
207    
208  * Fri Aug 10 2001 Crutcher Dunnavant <crutcher@redhat.com> 3.7.4-28  * Fri Aug 10 2001 Crutcher Dunnavant <crutcher@redhat.com> 3.7.4-28
209  - disabled gdbm support, changed CFLAGS; #41652  - disabled gdbm support, changed CFLAGS; #41652


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed