2 %bcond_with ppr # ppr support disabled until we have ppr.spec in working shape
4 %include /usr/lib/rpm/macros.perl
5 Summary: System for using free software printer drivers
6 Summary(pl.UTF-8): System umożliwiający używanie darmowych sterowników drukarek
12 Group: Applications/System
13 Source0: http://www.openprinting.org/download/foomatic/%{name}-%{version}.tar.gz
14 # Source0-md5: ab13aad4d96dbfca2d13653433ab8270
15 URL: http://www.linuxfoundation.org/en/OpenPrinting/Database/Foomatic
17 BuildRequires: autoconf
18 BuildRequires: automake
19 BuildRequires: rpm-perlprov
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 %define _ulibdir %{_prefix}/lib
25 Foomatic is a system for using free software printer drivers with
26 common spoolers on Unix. It supports LPD, PDQ, CUPS, the VA Linux LPD,
27 LPRng, PPR, and direct spooler-less printing and any free software
28 driver for which execution data has been entered in the database.
30 %description -l pl.UTF-8
31 Foomatic to system pozwalający na używanie wolnodostępnych sterowników
32 drukarek z popularnymi uniksowymi serwerami wydruków. Obsługuje LPD,
33 PDQ, CUPS, VA Linux LPD, LPRng, PPR i bezpośrednie drukowanie bez
34 kolejkowania oraz dowolny wolnodostępny sterownik, dla którego
35 parametry zostały wprowadzone do bazy danych.
37 %package -n cups-filter-foomatic
38 Summary: cupsomatic - CUPS filter
39 Summary(pl.UTF-8): cupsomatic - filtr do CUPS
40 Group: Applications/System
41 Requires: %{name} = %{epoch}:%{version}
43 Obsoletes: cups-foomatic
44 Obsoletes: foomatic-cups
46 %description -n cups-filter-foomatic
47 Cupsomatic is intended to be used as a CUPS filter for printers
48 defined in a PPD file (CUPS-O-Matic or PPD-O-Matic) obtained from the
49 Linux Printing Database.
51 %description -n cups-filter-foomatic -l pl.UTF-8
52 Cupsomatic jest filtrem do CUPS dla drukarek zdefiniowanych w pliku
53 PPD (CUPS-O-Matic lub PPD-O-Matic), uzyskanym z Linux Printing
57 Summary: ppromatic - PPR interface
58 Summary(pl.UTF-8): ppromatic - interfejs do PPR
59 Group: Applications/System
60 Requires: %{name} = %{epoch}:%{version}
62 Obsoletes: foomatic-ppr
65 ppromatic is intended to be used as a PPR interface for printers
66 defined in a PPD-O-Matic PPD file obtained from the Linux Printing
69 %description ppr -l pl.UTF-8
70 ppromatic jest interfejsem do PPR dla drukarek zdefiniowanych w pliku
71 PPD (PPD-O-Matic) uzyskanym z Linux Printing Database.
83 rm -rf $RPM_BUILD_ROOT
85 DESTDIR="$RPM_BUILD_ROOT"
87 ln -sf %{_bindir}/foomatic-rip $RPM_BUILD_ROOT%{_ulibdir}/cups/filter/cupsomatic
90 rm -rf $RPM_BUILD_ROOT
93 %defattr(644,root,root,755)
94 %doc ChangeLog TODO README USAGE
95 %dir %{_sysconfdir}/foomatic
96 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/foomatic/direct
97 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/foomatic/filter.conf
98 %attr(755,root,root) %{_bindir}/foomatic-rip
99 %{_mandir}/man1/foomatic-rip*
101 %files -n cups-filter-foomatic
102 %defattr(644,root,root,755)
103 %attr(755,root,root) %{_ulibdir}/cups/backend/beh
104 %attr(755,root,root) %{_ulibdir}/cups/filter/*
108 %defattr(644,root,root,755)
109 %attr(755,root,root) %{_ulibdir}/ppr/interfaces/foomatic-rip
110 %attr(755,root,root) %{_ulibdir}/ppr/lib/foomatic-rip