]>
Commit | Line | Data |
---|---|---|
2bf029ba | 1 | # |
ff901ac9 | 2 | %bcond_with ppr # ppr support disabled until we have ppr.spec in working shape |
4cc458b5 | 3 | # |
47f5ea55 | 4 | %include /usr/lib/rpm/macros.perl |
37c1facd | 5 | %define snap 20080317 |
47f5ea55 | 6 | Summary: System for using free software printer drivers |
81f9d81a | 7 | Summary(pl.UTF-8): System umożliwiający używanie darmowych sterowników drukarek |
47f5ea55 | 8 | Name: foomatic-filters |
37c1facd | 9 | Version: 3.0.%{snap} |
e80a98b2 | 10 | Release: 1 |
98d8d3fc | 11 | Epoch: 1 |
47f5ea55 | 12 | License: GPL |
13 | Group: Applications/System | |
37c1facd PZ |
14 | Source0: http://www.linuxprinting.org/download/foomatic/%{name}-3.0-%{snap}.tar.gz |
15 | # Source0-md5: 7a39b08e1a8b1b63917277a021d403eb | |
153c5470 | 16 | URL: http://www.linuxprinting.org/foomatic.html |
acd3873f | 17 | BuildRequires: a2ps |
47f5ea55 | 18 | BuildRequires: autoconf |
19 | BuildRequires: automake | |
000e90bd | 20 | BuildRequires: rpm-perlprov |
47f5ea55 | 21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
1b4876e6 JK |
23 | %define _ulibdir %{_prefix}/lib |
24 | ||
47f5ea55 | 25 | %description |
26 | Foomatic is a system for using free software printer drivers with | |
9baf4844 ER |
27 | common spoolers on Unix. It supports LPD, PDQ, CUPS, the VA Linux LPD, |
28 | LPRng, PPR, and direct spooler-less printing and any free software | |
29 | driver for which execution data has been entered in the database. | |
47f5ea55 | 30 | |
104c8aa5 JR |
31 | %description -l pl.UTF-8 |
32 | Foomatic to system pozwalający na używanie wolnodostępnych sterowników | |
33 | drukarek z popularnymi uniksowymi serwerami wydruków. Obsługuje LPD, | |
34 | PDQ, CUPS, VA Linux LPD, LPRng, PPR i bezpośrednie drukowanie bez | |
35 | kolejkowania oraz dowolny wolnodostępny sterownik, dla którego | |
36 | parametry zostały wprowadzone do bazy danych. | |
47f5ea55 | 37 | |
38 | %package gswrapper | |
39 | Summary: foomatic wrapper for ghostscript | |
81f9d81a | 40 | Summary(pl.UTF-8): wrapper dla ghostscripta do użycia z foomatic |
47f5ea55 | 41 | Group: Applications/System |
47f5ea55 | 42 | Requires: a2ps |
9baf4844 | 43 | Requires: ghostscript |
af8ce0c7 | 44 | Obsoletes: foomatic-gswrapper |
47f5ea55 | 45 | |
46 | %description gswrapper | |
47 | A little Ghostscript regularization script. It massages arguments to | |
48 | make Ghostscript execute properly as a filter, with output on stdout | |
49 | and errors etc on stderr. | |
50 | ||
51 | NOTE: This script is needed in a few situations only and may not work | |
52 | with some Ghostscript versions. Moreover in some situations his | |
9baf4844 ER |
53 | presence in the system may have effect that Your printer will not |
54 | print. So - Do not install this package if You don't know what You're | |
55 | doing. | |
47f5ea55 | 56 | |
104c8aa5 JR |
57 | %description gswrapper -l pl.UTF-8 |
58 | Mały skrypt uzdatniający Ghostscripta. Obrabia parametry tak, żeby | |
59 | Ghostscript działał właściwie jako filtr, generując dane wyjściowe na | |
60 | stdout, a błędy na stderr. | |
47f5ea55 | 61 | |
104c8aa5 JR |
62 | UWAGA: Ten skrypt jest potrzebny tylko w kilku przypadkach i może nie |
63 | działac z niektórymi wersjami Ghostscripta. Ponadto w niektórych | |
64 | sytuacjach jego obecność w systemie może spowodować, że drukarka nie | |
65 | będzie drukowała. Tak więc - nie instaluj tego pakietu, jeśli nie | |
a69bb826 | 66 | wiesz, co robisz. |
47f5ea55 | 67 | |
9c05c4c2 | 68 | %package -n cups-filter-foomatic |
47f5ea55 | 69 | Summary: cupsomatic - CUPS filter |
81f9d81a | 70 | Summary(pl.UTF-8): cupsomatic - filtr do CUPS |
47f5ea55 | 71 | Group: Applications/System |
129350cc | 72 | Requires: %{name} = %{epoch}:%{version} |
9baf4844 | 73 | Requires: cups |
47f5ea55 | 74 | Obsoletes: foomatic-cups |
9c05c4c2 | 75 | Obsoletes: cups-foomatic |
47f5ea55 | 76 | |
9c05c4c2 | 77 | %description -n cups-filter-foomatic |
47f5ea55 | 78 | Cupsomatic is intended to be used as a CUPS filter for printers |
79 | defined in a PPD file (CUPS-O-Matic or PPD-O-Matic) obtained from the | |
80 | Linux Printing Database. | |
81 | ||
104c8aa5 | 82 | %description -n cups-filter-foomatic -l pl.UTF-8 |
47f5ea55 | 83 | Cupsomatic jest filtrem do CUPS dla drukarek zdefiniowanych w pliku |
84 | PPD (CUPS-O-Matic lub PPD-O-Matic), uzyskanym z Linux Printing | |
85 | Database. | |
86 | ||
87 | %package ppr | |
88 | Summary: ppromatic - PPR interface | |
81f9d81a | 89 | Summary(pl.UTF-8): ppromatic - interfejs do PPR |
47f5ea55 | 90 | Group: Applications/System |
129350cc | 91 | Requires: %{name} = %{epoch}:%{version} |
47f5ea55 | 92 | Requires: ppr |
af8ce0c7 | 93 | Obsoletes: foomatic-ppr |
47f5ea55 | 94 | |
95 | %description ppr | |
96 | ppromatic is intended to be used as a PPR interface for printers | |
97 | defined in a PPD-O-Matic PPD file obtained from the Linux Printing | |
98 | Database. | |
99 | ||
104c8aa5 | 100 | %description ppr -l pl.UTF-8 |
47f5ea55 | 101 | ppromatic jest interfejsem do PPR dla drukarek zdefiniowanych w pliku |
102 | PPD (PPD-O-Matic) uzyskanym z Linux Printing Database. | |
103 | ||
104 | %prep | |
37c1facd | 105 | %setup -q -n %{name}-3.0-%{snap} |
47f5ea55 | 106 | |
107 | %build | |
108 | %{__aclocal} | |
109 | %{__autoconf} | |
47f5ea55 | 110 | %configure |
47f5ea55 | 111 | %{__make} |
112 | ||
113 | %install | |
114 | rm -rf $RPM_BUILD_ROOT | |
153c5470 PG |
115 | %{__make} install \ |
116 | DESTDIR="$RPM_BUILD_ROOT" | |
47f5ea55 | 117 | |
1b4876e6 | 118 | ln -sf %{_bindir}/foomatic-rip $RPM_BUILD_ROOT%{_ulibdir}/cups/filter/cupsomatic |
1dd95cab | 119 | |
47f5ea55 | 120 | %clean |
121 | rm -rf $RPM_BUILD_ROOT | |
122 | ||
123 | %files | |
124 | %defattr(644,root,root,755) | |
125 | %doc ChangeLog TODO README USAGE | |
771d06e7 | 126 | %dir %{_sysconfdir}/foomatic |
9baf4844 ER |
127 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/foomatic/direct |
128 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/foomatic/filter.conf | |
47f5ea55 | 129 | %attr(755,root,root) %{_bindir}/foomatic-rip |
130 | %{_mandir}/man1/foomatic-rip* | |
131 | ||
132 | %files gswrapper | |
133 | %defattr(644,root,root,755) | |
134 | %attr(755,root,root) %{_bindir}/foomatic-gswrapper | |
135 | %{_mandir}/man1/foomatic-gswrapper* | |
136 | ||
9c05c4c2 | 137 | %files -n cups-filter-foomatic |
47f5ea55 | 138 | %defattr(644,root,root,755) |
37c1facd | 139 | %attr(755,root,root) %{_ulibdir}/cups/backend/beh |
1b4876e6 | 140 | %attr(755,root,root) %{_ulibdir}/cups/filter/* |
47f5ea55 | 141 | |
ff901ac9 | 142 | %if %{with ppr} |
47f5ea55 | 143 | %files ppr |
144 | %defattr(644,root,root,755) | |
1b4876e6 JK |
145 | %attr(755,root,root) %{_ulibdir}/ppr/interfaces/foomatic-rip |
146 | %attr(755,root,root) %{_ulibdir}/ppr/lib/foomatic-rip | |
ff901ac9 | 147 | %endif |