/[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.2 by slords, Fri Jan 11 23:05:37 2008 UTC
# Line 1  Line 1 
 #$Id: LPRng.spec,v 1.3 2005/04/27 18:59:49 dominik Exp $  
   
1  Summary: The LPRng print spooler.  Summary: The LPRng print spooler.
2  Name: LPRng  Name: LPRng
3  Version: 3.8.29  Version: 3.8.32
4  Release: 3%{?dist}  Release: 2%{?dist}
 %define nokerberos 1  
5  License: GPL and Artistic  License: GPL and Artistic
6  Group: System Environment/Daemons  Group: System Environment/Daemons
7  Source0: ftp://ftp.lprng.com/pub/LPRng/LPRng/%{name}-%{version}-RC2.tar.gz  Source0: ftp://ftp.lprng.com/pub/LPRng/LPRng/%{name}-%{version}.tgz
8  Source1: lpd.init  Source1: lpd.init
9  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  
10  URL: http://www.lprng.com  URL: http://www.lprng.com
11  Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root  Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
12  Obsoletes: lpr  Obsoletes: lpr
13  Provides: lpr  Provides: lpr
14  Provides: lpd  Prereq: /sbin/chkconfig, /etc/rc.d/init.d, mktemp, fileutils, textutils, gawk
 Prereq: /etc/rc.d/init.d, mktemp, fileutils, textutils, gawk  
15  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  
16  BuildPreReq: gettext ed autoconf  BuildPreReq: gettext ed autoconf
17  BuildPrereq: krb5-devel  %{!?nokerberos:BuildPrereq: krb5-devel}
18    %{!?nokerberos:Requires: krb5-libs}
19    
20  # We don't ship these files, but create symlinks to them.  Other  # We don't ship these files, but create symlinks to them.  Other
21  # packages aren't to know though.  # packages aren't to know though.
# Line 58  LPRng supports Kerberos V, MIT Kerberos Line 50  LPRng supports Kerberos V, MIT Kerberos
50  authentication. Additional authentication support is extremely simple  authentication. Additional authentication support is extremely simple
51  to add.  to add.
52    
 %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.  
   
53  %prep  %prep
54    
55  %setup -q  %setup -q
56  %patch0 -p1 -b .nonblock  %patch1 -p1
 # Remove remote job submissions  
 #%patch1 -p1 -b .lpd-perms  
 #%patch2 -p1 -b .krb5  
57    
58    # pick up configure.in changes
59    
60    # set up gettext
61    (
62    cd po
63    rm Makefile.in.in
64    ln -s /usr/share/gettext/po/Makefile.in.in .
65    )
66    
67    #sh CREATE_CONFIGURE
68        
69  %build  %build
70  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 .
71  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 .
72    #PSHOWALL="-ax" ; export PSHOWALL # So that we don't need /proc mounted
73  CFLAGS="$RPM_OPT_FLAGS" ; export CFLAGS  CFLAGS="$RPM_OPT_FLAGS" ; export CFLAGS
 PSHOWALL="-ax" ; export PSHOWALL # So that we don't need /proc mounted  
74  %configure --enable-nls \  %configure --enable-nls \
75          --with-userid=lp \          --with-userid=lp \
76          --with-groupid=lp \          --with-groupid=lp \
         --enable-shared \  
         --disable-gdbm \  
         --disable-strip \  
77          --disable-werror \          --disable-werror \
78  %{!?nokerberos:--enable-kerberos}  %{!?nokerberos:--enable-kerberos LDFLAGS="-L/usr/kerberos/lib" CPPFLAGS="-I/usr/kerberos/include" }
79  make MAKEPACKAGE=YES  make MAKEPACKAGE=YES
80    
81  %install  %install
82  rm -rf %{buildroot}  rm -rf %{buildroot}
83    
84    # Installation of locales is broken... Work around it!
85    
86  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  
87    
88  # Remove files we don't ship  # Remove files we don't ship
89    rm -f %{buildroot}/usr/share/LPRng/*.sample
90  rm -f %{buildroot}%{_sysconfdir}/*.sample  rm -f %{buildroot}%{_sysconfdir}/*.sample
91  rm -f %{buildroot}%{_sysconfdir}/lpd/*.sample  rm -f %{buildroot}%{_sysconfdir}/lpd/*.sample
92    rm -f %{buildroot}%{_sysconfdir}/rc.d/init.d/*.sample
93  rm -f %{buildroot}%{_sysconfdir}/lpd/lpd  rm -f %{buildroot}%{_sysconfdir}/lpd/lpd
94  rm -f %{buildroot}%{_sysconfdir}/printcap  rm -f %{buildroot}%{_sysconfdir}/printcap
95  #rm -f %{buildroot}%{_libdir}/liblpr.*a  rm -f %{buildroot}%{_libdir}/liblpr.*a
96  rm -f %{buildroot}%{_sbindir}/lprng_{index_,}certs  rm -f %{buildroot}%{_sbindir}/lprng_{index_,}certs
97    
98  # install init script  # install init script
99  mkdir -p %{buildroot}%{_sysconfdir}/rc.d/init.d  mkdir -p %{buildroot}%{_sysconfdir}/rc.d/init.d
100  install -m755 %{SOURCE1} %{buildroot}%{_sysconfdir}/rc.d/init.d/lpd  install -m755 %{SOURCE1} %{buildroot}%{_sysconfdir}/rc.d/init.d/lpd
101    
 # 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  
   
102  # Alternatives, to avoid conflicting with cups.  # Alternatives, to avoid conflicting with cups.
103  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
104  do  do
# Line 128  do Line 110  do
110  done  done
111  mv %{buildroot}%{_mandir}/man8/lpc.8 %{buildroot}%{_mandir}/man8/lpc-LPRng.8  mv %{buildroot}%{_mandir}/man8/lpc.8 %{buildroot}%{_mandir}/man8/lpc-LPRng.8
112    
 %find_lang %{name}  
   
113  %clean  %clean
114  rm -rf %{buildroot}  rm -rf %{buildroot}
115    
# Line 152  fi Line 132  fi
132    
133  # Alternatives  # Alternatives
134  /usr/sbin/alternatives --install %{_bindir}/lpr print %{_bindir}/lpr.LPRng 41 \  /usr/sbin/alternatives --install %{_bindir}/lpr print %{_bindir}/lpr.LPRng 41 \
135          --slave %{_bindir}/lp print-lp %{_bindir}/lp.LPRng \          --slave %{_bindir}/lp print-lp %{_bindir}/lp.LPRng \
136          --slave %{_bindir}/lpq print-lpq %{_bindir}/lpq.LPRng \          --slave %{_bindir}/lpq print-lpq %{_bindir}/lpq.LPRng \
137          --slave %{_bindir}/lprm print-lprm %{_bindir}/lprm.LPRng \          --slave %{_bindir}/lprm print-lprm %{_bindir}/lprm.LPRng \
138          --slave %{_bindir}/lpstat print-lpstat %{_bindir}/lpstat.LPRng \          --slave %{_bindir}/lpstat print-lpstat %{_bindir}/lpstat.LPRng \
139          --slave %{_bindir}/cancel print-cancel %{_bindir}/cancel.LPRng \          --slave %{_bindir}/cancel print-cancel %{_bindir}/cancel.LPRng \
140          --slave %{_sbindir}/lpc print-lpc %{_sbindir}/lpc.LPRng \          --slave %{_sbindir}/lpc print-lpc %{_sbindir}/lpc.LPRng \
141          --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 \
142          --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 \
143          --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 \
144          --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 \
145          --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 \
146          --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 \
147          --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 \
148          --initscript lpd          --initscript lpd
149    
150  %preun  %preun
151  if [ "$1" = 0 ]; then  if [ "$1" = 0 ]; then
# Line 184  fi Line 164  fi
164  # Deal with pre-alternatives packages  # Deal with pre-alternatives packages
165  /usr/sbin/alternatives --auto print  /usr/sbin/alternatives --auto print
166    
167  %files -f %{name}.lang  %files
168  %defattr(644,root,root,755)  %defattr(-,root,root)
169  %doc CHANGES CONTRIBUTORS COPYRIGHT INSTALL LICENSE  %config %{_sysconfdir}/lpd/lpd.conf
170  %doc README*  %config %{_sysconfdir}/lpd/lpd.perms
171  #%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  
172  %attr(755,lp,lp) %{_bindir}/lpq.LPRng  %attr(755,lp,lp) %{_bindir}/lpq.LPRng
173  %attr(755,lp,lp) %{_bindir}/lprm.LPRng  %attr(755,lp,lp) %{_bindir}/lprm.LPRng
174  %attr(755,lp,lp) %{_bindir}/lpr.LPRng  %attr(755,lp,lp) %{_bindir}/lpr.LPRng
# Line 203  fi Line 176  fi
176  %{_bindir}/lp.LPRng  %{_bindir}/lp.LPRng
177  %{_bindir}/cancel.LPRng  %{_bindir}/cancel.LPRng
178  %attr(755,lp,lp) %{_sbindir}/lpc.LPRng  %attr(755,lp,lp) %{_sbindir}/lpc.LPRng
179  %attr(755,root,root) %{_sbindir}/lpd  %attr(755,root,root)  %{_sbindir}/lpd
180  %attr(755,root,root) %{_sbindir}/checkpc  %attr(755,root,root)  %{_sbindir}/checkpc
181  %attr(755,root,root) %{_sbindir}/monitor  %attr(755,root,root)  /usr/libexec/filters/*
 #%attr(755,root,root) %{_libdir}/*.so.*  
182  %dir /usr/libexec/filters  %dir /usr/libexec/filters
183  %attr(755,root,root) /usr/libexec/filters/*  %{_mandir}/*/*
184    %attr(755,root,root) %{_prefix}/share/locale/*
185  %files devel  %doc CHANGES CONTRIBUTORS COPYRIGHT INSTALL LICENSE
186  %defattr(644,root,root,755)  %doc README* VERSION Y2KCompliance
187  #%{_libdir}/*.so  %doc DOCS
 #%{_libdir}/liblpr.a  
 #%attr(755,root,root) %{_libdir}/liblpr.la  
188    
189  %changelog  %changelog
190  * Sun Apr 29 2007 Shad L. Lords <slords@mail.com>  * Fri Jan  11 2008 Patrick Powell <papowell@astart.com> 3.8.23-2.sme
191  - Clean up spec so package can be built by koji/plague  - Fix package to use alternatives
192    - Patch Makefile to work correctly
193  * Thu Apr 05 2007 Shad L. Lords <slords@mail.com> 3.8.29-3  
194  - Add missing lp and cancel to files section [SME: 2714]  * Thu Nov  13 2003 Patrick Powell <papowell@astart.com> 3.8.23-1
195    - updated everything to fit the new sysconfdir standards
196  * 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
197  - Clean cb from relase numbering.  - normal install now
198    
199  * 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
200  - Switch to new upstream source, and fix for build on CentOS5. [SME: 2509]  - new release for 3.7.5
201    - Note the aclocal, autoconf, etc. stuff added to make the various
202  * 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  
203    
204  * 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
205  - 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