-%include /usr/lib/rpm/macros.perl
Summary: System for using free software printer drivers
-Summary(pl): System umo¿liwiaj±cy u¿ywanie darmowych sterowników drukarek
+Summary(pl.UTF-8): System umożliwiający używanie darmowych sterowników drukarek
Name: foomatic-db-engine
-Version: 3.0.0
-Release: 0.1
-License: GPL
+Version: 4.0.13
+Release: 1
+Epoch: 1
+License: GPL v2+
Group: Applications/System
+Source0: http://www.openprinting.org/download/foomatic/%{name}-%{version}.tar.gz
+# Source0-md5: f178947ca0437d85823a247f5725e6eb
+Patch0: %{name}-cups.patch
URL: http://www.linuxprinting.org/foomatic.html
-Source0: http://www.linuxprinting.org/download/foomatic/%{name}-%{version}.tar.gz
-BuildRequires: autoconf
+BuildRequires: autoconf >= 2.52
BuildRequires: automake
+BuildRequires: libxml2-devel >= 2
BuildRequires: perl-devel
-BuildRequires: libxml2-devel
-BuildRequires: foomatic-filters >= 3.0.0
+BuildRequires: rpm-perlprov
Provides: perl(Foomatic::GrovePath)
+Suggests: a2ps
+Suggests: foomatic-filters >= 4.0.7
+Suggests: ghostscript
+Suggests: wget
Obsoletes: foomatic
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+%define _ulibdir %{_prefix}/lib
+
%description
Foomatic is a system for using free software printer drivers with
-common spoolers on Unix. It supports LPD, PDQ, CUPS, the VA Linux
-LPD, LPRng, PPR, and direct spooler-less printing and any free
-software driver for which execution data has been entered in the
-database.
+common spoolers on Unix. It supports LPD, PDQ, CUPS, the VA Linux LPD,
+LPRng, PPR, and direct spooler-less printing and any free software
+driver for which execution data has been entered in the database.
-%description -l pl
-Foomatic to system pozwalaj±cy na u¿ywanie wolnodostêpnych
-sterowników drukarek z popularnymi uniksowymi serwerami wydruków.
-Obs³uguje LPD, PDQ, CUPS, VA Linux LPD, LPRng, PPR i bezpo¶rednie
-drukowanie bez kolejkowania oraz dowolny wolnodostêpny sterownik,
-dla którego parametry zosta³y wprowadzone do bazy danych.
+%description -l pl.UTF-8
+Foomatic to system pozwalający na używanie wolnodostępnych sterowników
+drukarek z popularnymi uniksowymi serwerami wydruków. Obsługuje LPD,
+PDQ, CUPS, VA Linux LPD, LPRng, PPR i bezpośrednie drukowanie bez
+kolejkowania oraz dowolny wolnodostępny sterownik, dla którego
+parametry zostały wprowadzone do bazy danych.
%prep
%setup -q
+%patch0 -p1
%build
-%{__aclocal}
+%{__aclocal} -I .
%{__autoconf}
-%configure
+%configure \
+ A2PS=/usr/bin/a2ps \
+ GS=/usr/bin/gs \
+ WGET=/usr/bin/wget \
+ --disable-gscheck
%{__make} \
PERL_INSTALLDIRS=vendor
%install
rm -rf $RPM_BUILD_ROOT
+
+chmod +x mkinstalldirs
+
+%{__sed} -i 's,PREFIX =.*,PREFIX = %{_prefix},g' lib/Makefile
%{__make} install \
- DESTDIR="$RPM_BUILD_ROOT"
+ DESTDIR=$RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_datadir}/foomatic/db/source/{driver,opt,printer}
%files
%defattr(644,root,root,755)
-
-%doc ChangeLog TODO README USAGE
-%{_mandir}/man1/*
-%{_mandir}/man8/*
-
-%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/foomatic
-
-%attr(755,root,root) %{_bindir}/foomatic-*
-%attr(755,root,root) %{_sbindir}/foomatic-*
-
+%doc ChangeLog README TODO USAGE
+# XXX: dir shared with foomatic-filters
+%dir %{_sysconfdir}/foomatic
+%attr(755,root,root) %{_bindir}/foomatic-combo-xml
+%attr(755,root,root) %{_bindir}/foomatic-compiledb
+%attr(755,root,root) %{_bindir}/foomatic-configure
+%attr(755,root,root) %{_bindir}/foomatic-datafile
+%attr(755,root,root) %{_bindir}/foomatic-perl-data
+%attr(755,root,root) %{_bindir}/foomatic-ppd-options
+%attr(755,root,root) %{_bindir}/foomatic-ppd-to-xml
+%attr(755,root,root) %{_bindir}/foomatic-ppdfile
+%attr(755,root,root) %{_bindir}/foomatic-printjob
+%attr(755,root,root) %{_bindir}/foomatic-searchprinter
+%attr(755,root,root) %{_sbindir}/foomatic-addpjloptions
+%attr(755,root,root) %{_sbindir}/foomatic-cleanupdrivers
+%attr(755,root,root) %{_sbindir}/foomatic-extract-text
+%attr(755,root,root) %{_sbindir}/foomatic-fix-xml
+%attr(755,root,root) %{_sbindir}/foomatic-getpjloptions
+%attr(755,root,root) %{_sbindir}/foomatic-kitload
+%attr(755,root,root) %{_sbindir}/foomatic-nonumericalids
+%attr(755,root,root) %{_sbindir}/foomatic-preferred-driver
+%attr(755,root,root) %{_sbindir}/foomatic-printermap-to-gutenprint-xml
+%attr(755,root,root) %{_sbindir}/foomatic-replaceoldprinterids
+%attr(755,root,root) %{_ulibdir}/cups/driver/foomatic
%{perl_vendorlib}/Foomatic
-
%{_datadir}/foomatic
+%{_mandir}/man1/foomatic-combo-xml.1*
+%{_mandir}/man1/foomatic-compiledb.1*
+%{_mandir}/man1/foomatic-configure.1*
+%{_mandir}/man1/foomatic-perl-data.1*
+%{_mandir}/man1/foomatic-ppd-options.1*
+%{_mandir}/man1/foomatic-ppdfile.1*
+%{_mandir}/man1/foomatic-printjob.1*
+%{_mandir}/man8/foomatic-addpjloptions.8*
+%{_mandir}/man8/foomatic-getpjloptions.8*
+%{_mandir}/man8/foomatic-kitload.8*
+%{_mandir}/man8/foomatic-preferred-driver.8*