]> git.pld-linux.org Git - packages/foomatic-filters.git/blobdiff - foomatic-filters.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/foomatic-filters.git] / foomatic-filters.spec
index 2cd11b5561177395bab75398d674b79212591217..ce4bc579d74e3ddbb72d48fb3e2828cf4e8c6ca9 100644 (file)
@@ -1,86 +1,63 @@
-%include       /usr/lib/rpm/macros.perl
+#
+# Conditional build:
+%bcond_with    ppr     # ppr support disabled until we have ppr.spec in working shape
+#
 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-filters
-Version:       2.9.1
+Version:       4.0.17
 Release:       1
 Epoch:         1
-License:       GPL
+License:       GPL v2+
 Group:         Applications/System
-URL:           http://www.linuxprinting.org/foomatic.html
-Source0:       http://www.linuxprinting.org/download/foomatic/%{name}-%{version}.tar.gz
-BuildRequires: autoconf
+Source0:       http://www.openprinting.org/download/foomatic/%{name}-%{version}.tar.gz
+# Source0-md5: b05f5dcbfe359f198eef3df5b283d896
+URL:           http://www.linuxfoundation.org/en/OpenPrinting/Database/Foomatic
+BuildRequires: autoconf >= 2.61
 BuildRequires: automake
-Requires:      perl
+BuildRequires: dbus-devel
+BuildRequires: rpm-perlprov
 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.
-
-%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.
-
-%package gswrapper
-Summary:       foomatic wrapper for ghostscript
-Summary(pl):   wrapper dla ghostscripta do u¿ycia z foomatic
-Group:         Applications/System
-Requires:      ghostscript
-Requires:      a2ps
-Obsoletes:     foomatic-gswrapper
-
-%description gswrapper
-A little Ghostscript regularization script. It massages arguments to
-make Ghostscript execute properly as a filter, with output on stdout
-and errors etc on stderr.
-
-NOTE: This script is needed in a few situations only and may not work
-with some Ghostscript versions. Moreover in some situations his
-presence in the system may have effect that Your printer will
-not print. So - Do not install this package if You don't know
-what You're doing. 
-
-%description gswrapper -l pl
-Ma³y skrypt uzdatniaj±cy Ghostscripta. Obrabia parametry tak, ¿eby
-Ghostscript dzia³a³ w³a¶ciwie jako filtr, generuj±c dane wyj¶ciowe na
-stdout, a b³êdy na stderr.
-
-UWAGA: Ten skrypt jest potrzebny tylko w kilku przypadkach i mo¿e
-nie dzia³ac z niektórymi wersjami Ghostscripta. Ponadto w niektórych
-sytuacjach jego obecno¶æ w systemie mo¿e spowodowaæ, ¿e drukarka nie
-bêdzie drukowa³a. Tak wiêc - nie instaluj tego pakietu, je¶li nie
-wiesz, co robisz. 
-
-%package -n cups-foomatic
+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.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.
+
+%package -n cups-filter-foomatic
 Summary:       cupsomatic - CUPS filter
-Summary(pl):   cupsomatic - filtr do CUPS
+Summary(pl.UTF-8):     cupsomatic - filtr do CUPS
 Group:         Applications/System
+Requires:      %{name} = %{epoch}:%{version}
 Requires:      cups
-Requires:      foomatic-filters = %{version}
+Obsoletes:     cups-foomatic
 Obsoletes:     foomatic-cups
 
-%description -n cups-foomatic
+%description -n cups-filter-foomatic
 Cupsomatic is intended to be used as a CUPS filter for printers
 defined in a PPD file (CUPS-O-Matic or PPD-O-Matic) obtained from the
 Linux Printing Database.
 
-%description -n cups-foomatic -l pl
+%description -n cups-filter-foomatic -l pl.UTF-8
 Cupsomatic jest filtrem do CUPS dla drukarek zdefiniowanych w pliku
 PPD (CUPS-O-Matic lub PPD-O-Matic), uzyskanym z Linux Printing
 Database.
 
 %package ppr
 Summary:       ppromatic - PPR interface
-Summary(pl):   ppromatic - interfejs do PPR
+Summary(pl.UTF-8):     ppromatic - interfejs do PPR
 Group:         Applications/System
-Requires:      foomatic-filters = %{version}
+Requires:      %{name} = %{epoch}:%{version}
 Requires:      ppr
 Obsoletes:     foomatic-ppr
 
@@ -89,7 +66,7 @@ ppromatic is intended to be used as a PPR interface for printers
 defined in a PPD-O-Matic PPD file obtained from the Linux Printing
 Database.
 
-%description ppr -l pl
+%description ppr -l pl.UTF-8
 ppromatic jest interfejsem do PPR dla drukarek zdefiniowanych w pliku
 PPD (PPD-O-Matic) uzyskanym z Linux Printing Database.
 
@@ -99,16 +76,22 @@ PPD (PPD-O-Matic) uzyskanym z Linux Printing Database.
 %build
 %{__aclocal}
 %{__autoconf}
-
-%configure
-
+%{__autoheader}
+%{__automake}
+%configure \
+       --disable-file-converter-check
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%{__make} install DESTDIR="$RPM_BUILD_ROOT"
+%{__make} install \
+       DESTDIR="$RPM_BUILD_ROOT"
 
-ln -sf %{_bindir}/foomatic-rip $RPM_BUILD_ROOT%{_libdir}/cups/filter/cupsomatic
+ln -sf %{_bindir}/foomatic-rip $RPM_BUILD_ROOT%{_ulibdir}/cups/filter/cupsomatic
+
+%if %{without ppr}
+%{__rm} -r $RPM_BUILD_ROOT%{_ulibdir}/ppr
+%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -116,22 +99,21 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc ChangeLog TODO README USAGE
-
-%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/foomatic/direct
-%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/foomatic/filter.conf
+%dir %{_sysconfdir}/foomatic
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/foomatic/direct
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/foomatic/filter.conf
 %attr(755,root,root) %{_bindir}/foomatic-rip
-%{_mandir}/man1/foomatic-rip*
-
-%files gswrapper
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/foomatic-gswrapper
-%{_mandir}/man1/foomatic-gswrapper*
+%{_mandir}/man1/foomatic-rip.1*
 
-%files -n cups-foomatic
+%files -n cups-filter-foomatic
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/cups/filter/*
+%attr(755,root,root) %{_ulibdir}/cups/backend/beh
+%attr(755,root,root) %{_ulibdir}/cups/filter/cupsomatic
+%attr(755,root,root) %{_ulibdir}/cups/filter/foomatic-rip
 
+%if %{with ppr}
 %files ppr
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/ppr/interfaces/foomatic-rip
-%attr(755,root,root) %{_libdir}/ppr/lib/foomatic-rip
+%attr(755,root,root) %{_ulibdir}/ppr/interfaces/foomatic-rip
+%attr(755,root,root) %{_ulibdir}/ppr/lib/foomatic-rip
+%endif
This page took 0.042949 seconds and 4 git commands to generate.