cvsdist 2cae50
Summary: Foomatic printer database.
cvsdist 2cae50
Name:		foomatic
cvsdist 2cae50
Version:	1.1
cvsdist 7f30dd
%define release_date 20011218
cvsdist d6cf04
%define sub_release 3.5
cvsdist 7f30dd
Release:	0.%{release_date}.%{sub_release}
cvsdist 2cae50
License:	GPL
cvsdist 2cae50
Group: System Environment/Libraries
cvsdist 2cae50
cvsdist 7f30dd
# Generated by:
cvsdist 7f30dd
# NOW=`date '+%Y%m%d'`
cvsdist 7f30dd
# cvs -z6 -d :pserver:anonymous@cvs.linuxprinting.org:/usr/local/cvs export -D now foomatic
cvsdist 7f30dd
# tar cjf foomatic-1.1-$NOW.tar.bz2 foomatic
cvsdist 7f30dd
Source:		foomatic-1.1-%{release_date}.tar.bz2
cvsdist 317096
Source1:	Omni-printers.tar.bz2
cvsdist 7f30dd
cvsdist 7f30dd
Patch0:	foomatic-1.1-20011218-prepend.patch
cvsdist 7f30dd
Patch1:	foomatic-1.1-20011218-utf8.patch
cvsdist 7f30dd
Patch2: foomatic-1.1-20011218-lpdomatic.patch
cvsdist 7f30dd
Patch3: foomatic-1.1-20011218-fd3.patch
cvsdist 7f30dd
Patch4: foomatic-1.1-20020131-sys.patch
cvsdist 2cae50
cvsdist 2cae50
Url:		http://www.linuxprinting.org
cvsdist 2cae50
BuildRequires:	perl
cvsdist 3d5dfd
Requires:	perl
cvsdist 2cae50
BuildRoot:	%_tmppath/%name-%version-%release-root
cvsdist 2cae50
Requires:	perl-Storable >= 0.6.11, perl-DateManip >= 5.39, perl-libxml-enno >= 1.02
cvsdist 2cae50
Requires:	perl-libxml-perl >= 0.07, perl-Parse-Yapp >= 1.04, perl-XML-Dumper >= 0.4
cvsdist 2cae50
Requires:	perl-XML-Encoding >= 1.01, perl-XML-Parser >= 2.29, perl-XML-Twig >= 2.02
cvsdist 2cae50
Requires:	perl-XML-Grove, perl-libwww-perl
cvsdist 7f30dd
# For 'rm' and '/sbin/service' in post
cvsdist 7f30dd
PreReq: fileutils initscripts
cvsdist 2cae50
BuildRequires:	perl-Storable >= 0.6.11, perl-DateManip >= 5.39, perl-libxml-enno >= 1.02
cvsdist 2cae50
BuildRequires:	perl-libxml-perl >= 0.07, perl-Parse-Yapp >= 1.04, perl-XML-Dumper >= 0.4
cvsdist 2cae50
BuildRequires:	perl-XML-Encoding >= 1.01, perl-XML-Parser >= 2.29, perl-XML-Twig >= 2.02
cvsdist 2cae50
BuildRequires:	perl-XML-Grove, perl-libwww-perl
cvsdist 3b0234
cvsdist 2cae50
%description
cvsdist 2cae50
Foomatic is a comprehensive, spooler-independent database of printers,
cvsdist 2cae50
printer drivers, and driver descriptions. It contains utilities to
cvsdist 2cae50
generate driver description files and printer queues for CUPS, LPD,
cvsdist 2cae50
LPRng, and PDQ using the database. There is also the possibility to
cvsdist 2cae50
read the PJL options out of PJL-capable laser printers and take them
cvsdist 2cae50
into account at the driver description file generation.
cvsdist 2cae50
cvsdist 2cae50
There are spooler-independent command line interfaces to manipulate
cvsdist 2cae50
queues (foomatic-configure) and to print files/manipulate jobs
cvsdist 2cae50
(foomatic printjob).
cvsdist 2cae50
cvsdist 2cae50
The site http://www.linuxprinting.org/ is based in this database.
cvsdist 2cae50
cvsdist 2cae50
%prep
cvsdist 2cae50
%setup -q -n foomatic
cvsdist 7f30dd
# Fix prepends in lpdomatic (bug #57371)
cvsdist 7f30dd
%patch0 -p1 -b .prepend
cvsdist 7f30dd
# Fix PCL fixup code (bug #55909, others)
cvsdist 7f30dd
%patch1 -p1
cvsdist 7f30dd
# Put lpdomatic in /usr/sbin again.
cvsdist 7f30dd
%patch2 -p1 -b .lpdomatic
cvsdist 7f30dd
# Fix foomatic-gswrapper's file descriptor manipulations (bug #43619).
cvsdist 7f30dd
%patch3 -p1 -b .fd3
cvsdist 7f30dd
# Fix a thinko in DB.pl.
cvsdist 7f30dd
%patch4 -p1
cvsdist 317096
cvsdist 317096
tar xjf %{SOURCE1}
cvsdist 2cae50
cvsdist 2cae50
%build
cvsdist 7fc3f6
make PREFIX=%{_prefix} INSTALLPREFIX=%buildroot
cvsdist 2cae50
cvsdist 2cae50
%install
cvsdist 2cae50
rm -rf $RPM_BUILD_ROOT
cvsdist 7fc3f6
cvsdist 2cae50
eval `perl '-V:installsitelib'`
cvsdist 2cae50
mkdir -p $RPM_BUILD_ROOT/$installsitelib
cvsdist 2cae50
export INSTALLSITELIB=$RPM_BUILD_ROOT/$installsitelib
cvsdist 2cae50
make	PREFIX=%{_prefix} \
cvsdist 2cae50
	INSTALLPREFIX=%buildroot \
cvsdist 2cae50
	INSTALLSITELIB=$RPM_BUILD_ROOT/$installsitelib \
cvsdist 2cae50
	install
cvsdist 2cae50
cvsdist 7f30dd
# Remove drivers with no command line.
cvsdist 7f30dd
./foomatic-cleanupdrivers $RPM_BUILD_ROOT/usr/share/foomatic
cvsdist 7f30dd
cvsdist 317096
# Install printers from the Omni project, if there isn't already an entry
cvsdist 317096
cd Omni-printers;
cvsdist 317096
P_DIR=$RPM_BUILD_ROOT/usr/share/foomatic/db/source/printer
cvsdist 317096
for P in *.xml; do
cvsdist 317096
	if [ ! -f $P_DIR/$P ]; then
cvsdist 317096
		cp $P $P_DIR;
cvsdist 317096
	fi;
cvsdist 317096
done;
cvsdist 317096
cd ..
cvsdist 317096
cvsdist 317096
mkdir -p $RPM_BUILD_ROOT/var/cache/foomatic/{pcache,compiled}
cvsdist 317096
cvsdist 317096
%post
cvsdist 317096
# zap the cache
cvsdist 341cbc
rm -rf /var/cache/foomatic/pcache/* /var/cache/foomatic/compiled/*
cvsdist 317096
cvsdist 317096
# Try to rebuild the printconf data
cvsdist 317096
if [ -x /usr/sbin/printconf-backend ] ; then
cvsdist 317096
   /usr/sbin/printconf-backend --force-rebuild > /dev/null 2> /dev/null
cvsdist 317096
fi
cvsdist 317096
cvsdist 317096
# restart the print server if it is running now
cvsdist 317096
if /sbin/service lpd status 2>&1 > /dev/null ; then
cvsdist 317096
   /sbin/service lpd restart 2>&1 > /dev/null
cvsdist 317096
fi
cvsdist 317096
cvsdist 317096
exit 0
cvsdist 317096
cvsdist 2cae50
%clean
cvsdist 2cae50
rm -fr %buildroot
cvsdist 2cae50
cvsdist 2cae50
%files
cvsdist 2cae50
%defattr(-,root,root)
cvsdist 2cae50
%doc README USAGE ChangeLog
cvsdist 2cae50
%_bindir/*
cvsdist 2cae50
%_sbindir/*
cvsdist 2cae50
%_libdir/perl5/site_perl/*/Foomatic
cvsdist 2cae50
%dir %_libdir/cups
cvsdist 2cae50
%_libdir/cups/*
cvsdist 2cae50
%dir /var/cache/foomatic
cvsdist 2cae50
%_datadir/*
cvsdist 2cae50
cvsdist 2cae50
%changelog
cvsdist d6cf04
* Fri May 03 2002 Philip Copeland <bryce@redhat.com> 1.1-0.20011218.3.5
cvsdist d6cf04
- rebuild for alpha
cvsdist d6cf04
cvsdist 7f30dd
* Tue Feb  5 2002 Tim Waugh <twaugh@redhat.com> 1.1-0.20011218.3
cvsdist 7f30dd
- Fix a thinko in DB.pl.
cvsdist 7f30dd
cvsdist 7f30dd
* Fri Jan 18 2002 Tim Waugh <twaugh@redhat.com> 1.1-0.20011218.2
cvsdist 7f30dd
- REALLY fix PCL fixup code (bug #55909, others).
cvsdist 7f30dd
- PreReq fileutils, initscripts (bug #56984).
cvsdist 7f30dd
- Fix prepends in lpdomatic (bug #57371).
cvsdist 7f30dd
- Run foomatic-cleanupdrivers during install, to remove driver entries
cvsdist 7f30dd
  with no command line.
cvsdist 7f30dd
- Put lpdomatic in /usr/sbin again.
cvsdist 7f30dd
- Fix foomatic-gswrapper's file descriptor manipulations (bug #56871).
cvsdist 7f30dd
cvsdist 7f30dd
* Mon Dec 17 2001 Crutcher Dunnavant <crutcher@redhat.com> 1.1-0.20011218.1
cvsdist 7f30dd
- re-imported from upstream to fix some perl fixup code on pcl printers.
cvsdist 7f30dd
cvsdist 7f30dd
* Mon Dec 17 2001 Crutcher Dunnavant <crutcher@redhat.com> 1.1-0.20011217.2
cvsdist 7f30dd
- fix the rest of the quoting issues with foomatic-combo-xml with the patch
cvsdist 7f30dd
- foomatic-1.1-20011217-quotes.patch. This has been sent upstream.
cvsdist 7f30dd
cvsdist 7f30dd
* Mon Dec 17 2001 Crutcher Dunnavant <crutcher@redhat.com> 1.1-0.20011217.1
cvsdist 7f30dd
- respin to pull in latest foomatic database, fixes:
cvsdist 7f30dd
-	properly use the cache in relation to foomatic-combo-xml's output
cvsdist 7f30dd
-	fix _some_ of the quoting issues with calling foomatic-combo-xml
cvsdist 7f30dd
cvsdist 7f30dd
* Thu Dec  5 2001 Crutcher Dunnavant <crutcher@redhat.com> 1.1-0.20011205.1
cvsdist 7f30dd
- respin to pull in latest foomatic database, fixes:
cvsdist 7f30dd
-	droping half of a large job
cvsdist 7f30dd
-	-Mutf8 added to the upstream filters
cvsdist 7f30dd
-	miscelaneous printer db updates
cvsdist 7f30dd
cvsdist dfaa1f
* Mon Nov 29 2001 Crutcher Dunnavant <crutcher@redhat.com> 1.1-0.20011018.8
cvsdist dfaa1f
- added Requires: fileutils for the 'rm' in post
cvsdist dfaa1f
cvsdist 341cbc
* Mon Nov 26 2001 Crutcher Dunnavant <crutcher@redhat.com> 1.1-0.20011018.7
cvsdist 341cbc
- /var/chache => /var/cache, doh!
cvsdist 341cbc
cvsdist 317096
* Fri Nov 16 2001 Nalin Dahyabhai <nalin@redhat.com> 1.1-0.20011018.6
cvsdist 317096
- fix %%post scriptlet
cvsdist 317096
cvsdist 317096
* Tue Nov 13 2001 Crutcher Dunnavant <crutcher@redhat.com> 1.1-0.20011018.5
cvsdist 317096
- changed the patch to use the -Mutf8 command line option,
cvsdist 317096
- and to restart the printserver, after rebuilding the settings.
cvsdist 317096
cvsdist 317096
* Fri Nov  9 2001 Crutcher Dunnavant <crutcher@redhat.com> 1.1-0.20011018.4
cvsdist 317096
- grumble. Some drivers use inline perl scripts, and need the 'use utf8;'
cvsdist 317096
- pragma. Without it, they break on _some_ of their options.
cvsdist 317096
cvsdist 317096
* Wed Oct 31 2001 Crutcher Dunnavant <crutcher@redhat.com> 1.1-0.20011018.3
cvsdist 317096
- patched lpdomatic to prepend PostScript options in the _right_ place.
cvsdist 317096
cvsdist 317096
* Thu Oct 25 2001 Crutcher Dunnavant <crutcher@redhat.com> 1.1-0.20011018.2
cvsdist 317096
- zap the foomatic cache on install
cvsdist 317096
cvsdist 317096
* Thu Oct 18 2001 Crutcher Dunnavant <crutcher@redhat.com> 1.1-0.20011018.1
cvsdist 317096
- rolled to pull in latest information.
cvsdist 317096
- added Omni printers to the printer list.
cvsdist 317096
cvsdist 317096
* Fri Oct 05 2001 Crutcher Dunnavant <crutcher@redhat.com> 1.1-0.20011005.1
cvsdist 317096
- rolled to pull in an ia64 fix to foomatic-combo-xml.c
cvsdist 317096
cvsdist 317096
* Mon Oct 01 2001 Crutcher Dunnavant <crutcher@redhat.com> 1.1-0.20011001.1
cvsdist 317096
- rolled to pull in foomatic fixes to foomatic-combo-xml.c
cvsdist 317096
cvsdist 7fc3f6
* Wed Sep 05 2001 Crutcher Dunnavant <crutcher@redhat.com> 1.1-0.20010905.1
cvsdist 7fc3f6
- upgraded to latest foomatic, we now have fast overview generation!
cvsdist 7fc3f6
- this means that there is no prebuilt overview file.
cvsdist 7fc3f6
cvsdist 3d5dfd
* Tue Aug 28 2001 Crutcher Dunnavant <crutcher@redhat.com> 1.1-0.20010828.1
cvsdist 3d5dfd
- WOW! The latest foomatic uses Till Kamppeter's C based combo compiler.
cvsdist 3d5dfd
- It is now fast enough that there is no real benifit to precompiling.
cvsdist 3d5dfd
- NOTE: this forces the package to stop being noarched.
cvsdist 3d5dfd
cvsdist 3d5dfd
* Mon Aug 27 2001 Crutcher Dunnavant <crutcher@redhat.com> 1.1-0.20010827.1
cvsdist 3d5dfd
- fresh pull, maybe it fixes the build errors.
cvsdist 3d5dfd
cvsdist 3d5dfd
* Sat Aug 25 2001 Crutcher Dunnavant <crutcher@redhat.com> 1.1-0.20010825.1
cvsdist 3d5dfd
- did a fresh database pull, which contains the old japanese printers as well.
cvsdist 3d5dfd
- removed japanese hack.
cvsdist 3d5dfd
cvsdist 3b0234
* Tue Aug 14 2001 Akira TAGOH <tagoh@redhat.com> 1.1-0.20010717.5
cvsdist 3b0234
- Add Japanese printer entry.
cvsdist 3b0234
cvsdist 2cae50
* Mon Aug  6 2001 Crutcher Dunnavant <crutcher@redhat.com> 1.1-0.20010717.4
cvsdist 2cae50
- move the cache back to /var, sigh.
cvsdist 2cae50
cvsdist 2cae50
* Mon Jul 23 2001 Crutcher Dunnavant <crutcher@redhat.com> 1.1-0.20010717.2
cvsdist 2cae50
- made foomatic pre-compute its db
cvsdist 2cae50
cvsdist 2cae50
* Thu Jul 18 2001 Crutcher Dunnavant <crutcher@redhat.com> 1.1-0.20010717.1
cvsdist 2cae50
- imported from mandrake.
cvsdist 2cae50
cvsdist 2cae50
* Tue Jul 17 2001 Till Kamppeter <till@mandrakesoft.com> 1.1-0.20010717mdk
cvsdist 2cae50
- Added job listing/removal/manipulation and queue control to
cvsdist 2cae50
  foomatic-printjob
cvsdist 2cae50
- Support for printing multiple copies with PDQ
cvsdist 2cae50
cvsdist 2cae50
* Fri Jul 14 2001 Till Kamppeter <till@mandrakesoft.com> 1.1-0.20010714mdk
cvsdist 2cae50
- Included the cupsomatic filter script
cvsdist 2cae50
- When a queue is set up, default options can be set now
cvsdist 2cae50
- Help messages of foomatic-configure and foomatic-printjob cleaned up.
cvsdist 2cae50
cvsdist 2cae50
* Fri Jul 13 2001 Till Kamppeter <till@mandrakesoft.com> 1.1-0.20010713mdk
cvsdist 2cae50
- Many bugfixes in "foomatic-printjob".
cvsdist 2cae50
- "foomatic-configure" adds the Foomatic config file directory automatically
cvsdist 2cae50
  to the search paths of PDQ.
cvsdist 2cae50
- Printing a help page under PDQ was broken.
cvsdist 2cae50
cvsdist 2cae50
* Thu Jul 12 2001 Stefan van der Eijk <stefan@eijk.nu> 1.1-0.20010712mdk
cvsdist 2cae50
- BuildRequires:	perl-devel
cvsdist 2cae50
cvsdist 2cae50
* Wed Jul 11 2001 Till Kamppeter <till@mandrakesoft.com> 1.1-0.20010711mdk
cvsdist 2cae50
- initial release.
cvsdist 2cae50
- Deleted the obsolete drivers "stp", "cZ11", and "hpdj".
cvsdist 2cae50
- Patch applied which flushes the memory cache regularly, otherwise
cvsdist 2cae50
  foomatic-configure would hang when the Foomatic data of GIMP-Print is
cvsdist 2cae50
  installed.