]> git.pld-linux.org Git - packages/foomatic-db-engine.git/blobdiff - foomatic-db-engine.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/foomatic-db-engine.git] / foomatic-db-engine.spec
index 17e95341f604626aa0c9cf7a8ae027cbcffd7caa..bfe8b4c5d13260c68a8684f6255d1cf460772fc4 100644 (file)
@@ -1,24 +1,25 @@
-%include       /usr/lib/rpm/macros.perl
-%define                snap    20080317
 Summary:       System for using free software printer drivers
 Summary(pl.UTF-8):     System umożliwiający używanie darmowych sterowników drukarek
 Name:          foomatic-db-engine
-Version:       3.0.%{snap}
-Release:       3
-License:       GPL
+Version:       4.0.13
+Release:       1
+Epoch:         1
+License:       GPL v2+
 Group:         Applications/System
-Source0:       http://www.linuxprinting.org/download/foomatic/%{name}-3.0-%{snap}.tar.gz
-# Source0-md5: d6ac64aeaa1f6ecdf386df6b6ad380a7
-Patch0:                %{name}-destdir.patch
-Patch1:                %{name}-cups.patch
+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
-BuildRequires: autoconf
+BuildRequires: autoconf >= 2.52
 BuildRequires: automake
-BuildRequires: foomatic-filters >= 3.0.20080317
-BuildRequires: libxml2-devel
+BuildRequires: libxml2-devel >= 2
 BuildRequires: perl-devel
 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)
 
@@ -38,14 +39,17 @@ kolejkowania oraz dowolny wolnodostępny sterownik, dla którego
 parametry zostały wprowadzone do bazy danych.
 
 %prep
-%setup -q -n %{name}-3.0-%{snap}
+%setup -q
 %patch0 -p1
-%patch1 -p1
 
 %build
 %{__aclocal} -I .
 %{__autoconf}
-%configure
+%configure \
+       A2PS=/usr/bin/a2ps \
+       GS=/usr/bin/gs \
+       WGET=/usr/bin/wget \
+       --disable-gscheck
 %{__make} \
        PERL_INSTALLDIRS=vendor
 
@@ -54,6 +58,7 @@ rm -rf $RPM_BUILD_ROOT
 
 chmod +x mkinstalldirs
 
+%{__sed} -i 's,PREFIX =.*,PREFIX = %{_prefix},g' lib/Makefile
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
@@ -64,12 +69,40 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc ChangeLog TODO README USAGE
-%config(noreplace) %verify(not md5 mtime size) %{_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/*
-%{_mandir}/man8/*
+%{_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*
This page took 0.096208 seconds and 4 git commands to generate.