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