2 %bcond_with ppr # ppr support disabled until we have ppr.spec in working shape
4 %include /usr/lib/rpm/macros.perl
6 Summary: System for using free software printer drivers
7 Summary(pl): System umo¿liwiaj±cy u¿ywanie darmowych sterowników drukarek
13 Group: Applications/System
14 Source0: http://www.linuxprinting.org/download/foomatic/%{name}-%{version}.tar.gz
15 # Source0-md5: afa2bfcee2661252ec56af5616017d1e
16 URL: http://www.linuxprinting.org/foomatic.html
18 BuildRequires: autoconf
19 BuildRequires: automake
20 BuildRequires: rpm-perlprov
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 %define _ulibdir %{_prefix}/lib
26 Foomatic is a system for using free software printer drivers with
27 common spoolers on Unix. It supports LPD, PDQ, CUPS, the VA Linux
28 LPD, LPRng, PPR, and direct spooler-less printing and any free
29 software driver for which execution data has been entered in the
33 Foomatic to system pozwalaj±cy na u¿ywanie wolnodostêpnych
34 sterowników drukarek z popularnymi uniksowymi serwerami wydruków.
35 Obs³uguje LPD, PDQ, CUPS, VA Linux LPD, LPRng, PPR i bezpo¶rednie
36 drukowanie bez kolejkowania oraz dowolny wolnodostêpny sterownik,
37 dla którego parametry zosta³y wprowadzone do bazy danych.
40 Summary: foomatic wrapper for ghostscript
41 Summary(pl): wrapper dla ghostscripta do u¿ycia z foomatic
42 Group: Applications/System
45 Obsoletes: foomatic-gswrapper
47 %description gswrapper
48 A little Ghostscript regularization script. It massages arguments to
49 make Ghostscript execute properly as a filter, with output on stdout
50 and errors etc on stderr.
52 NOTE: This script is needed in a few situations only and may not work
53 with some Ghostscript versions. Moreover in some situations his
54 presence in the system may have effect that Your printer will
55 not print. So - Do not install this package if You don't know
58 %description gswrapper -l pl
59 Ma³y skrypt uzdatniaj±cy Ghostscripta. Obrabia parametry tak, ¿eby
60 Ghostscript dzia³a³ w³a¶ciwie jako filtr, generuj±c dane wyj¶ciowe na
61 stdout, a b³êdy na stderr.
63 UWAGA: Ten skrypt jest potrzebny tylko w kilku przypadkach i mo¿e
64 nie dzia³ac z niektórymi wersjami Ghostscripta. Ponadto w niektórych
65 sytuacjach jego obecno¶æ w systemie mo¿e spowodowaæ, ¿e drukarka nie
66 bêdzie drukowa³a. Tak wiêc - nie instaluj tego pakietu, je¶li nie
69 %package -n cups-filter-foomatic
70 Summary: cupsomatic - CUPS filter
71 Summary(pl): cupsomatic - filtr do CUPS
72 Group: Applications/System
74 Requires: %{name} = %{epoch}:%{version}
75 Obsoletes: foomatic-cups
76 Obsoletes: cups-foomatic
78 %description -n cups-filter-foomatic
79 Cupsomatic is intended to be used as a CUPS filter for printers
80 defined in a PPD file (CUPS-O-Matic or PPD-O-Matic) obtained from the
81 Linux Printing Database.
83 %description -n cups-filter-foomatic -l pl
84 Cupsomatic jest filtrem do CUPS dla drukarek zdefiniowanych w pliku
85 PPD (CUPS-O-Matic lub PPD-O-Matic), uzyskanym z Linux Printing
89 Summary: ppromatic - PPR interface
90 Summary(pl): ppromatic - interfejs do PPR
91 Group: Applications/System
92 Requires: %{name} = %{epoch}:%{version}
94 Obsoletes: foomatic-ppr
97 ppromatic is intended to be used as a PPR interface for printers
98 defined in a PPD-O-Matic PPD file obtained from the Linux Printing
101 %description ppr -l pl
102 ppromatic jest interfejsem do PPR dla drukarek zdefiniowanych w pliku
103 PPD (PPD-O-Matic) uzyskanym z Linux Printing Database.
115 rm -rf $RPM_BUILD_ROOT
117 DESTDIR="$RPM_BUILD_ROOT"
119 ln -sf %{_bindir}/foomatic-rip $RPM_BUILD_ROOT%{_ulibdir}/cups/filter/cupsomatic
122 rm -rf $RPM_BUILD_ROOT
125 %defattr(644,root,root,755)
126 %doc ChangeLog TODO README USAGE
127 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/foomatic/direct
128 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/foomatic/filter.conf
129 %attr(755,root,root) %{_bindir}/foomatic-rip
130 %{_mandir}/man1/foomatic-rip*
133 %defattr(644,root,root,755)
134 %attr(755,root,root) %{_bindir}/foomatic-gswrapper
135 %{_mandir}/man1/foomatic-gswrapper*
137 %files -n cups-filter-foomatic
138 %defattr(644,root,root,755)
139 %attr(755,root,root) %{_ulibdir}/cups/filter/*
143 %defattr(644,root,root,755)
144 %attr(755,root,root) %{_ulibdir}/ppr/interfaces/foomatic-rip
145 %attr(755,root,root) %{_ulibdir}/ppr/lib/foomatic-rip