]>
Commit | Line | Data |
---|---|---|
960629b2 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # static libraries | |
49d053a5 | 4 | %bcond_without braille # Braille embossers support |
960629b2 JB |
5 | %bcond_without perl # Perl module |
6 | %bcond_without php # PHP extension | |
75fdf098 | 7 | |
74b81d27 | 8 | %if 0%{!?php_name:1} |
75fdf098 | 9 | %define php_name php55 |
bf137972 | 10 | %endif |
98eddd8d | 11 | Summary: OpenPrinting CUPS filters and backends |
960629b2 | 12 | Summary(pl.UTF-8): Filtry i backendy CUPS-a z projektu OpenPrinting |
98eddd8d | 13 | Name: cups-filters |
e8288739 | 14 | Version: 1.22.3 |
944709aa | 15 | Release: 1 |
98eddd8d JR |
16 | # For a breakdown of the licensing, see COPYING file |
17 | # GPLv2: filters: commandto*, imagetoraster, pdftops, rasterto*, | |
18 | # imagetopdf, pstopdf, texttopdf | |
19 | # backends: parallel, serial | |
20 | # GPLv2+: filters: gstopxl, textonly, texttops, imagetops | |
21 | # GPLv3: filters: bannertopdf | |
22 | # GPLv3+: filters: urftopdf | |
23 | # LGPLv2+: utils: cups-browsed | |
24 | # MIT: filters: gstoraster, pdftoijs, pdftoopvp, pdftopdf, pdftoraster | |
960629b2 | 25 | License: GPL v2, GPL v2+, GPL v3, GPL v3+, LGPL v2+, MIT |
98eddd8d JR |
26 | Group: Applications/Printing |
27 | Source0: http://www.openprinting.org/download/cups-filters/%{name}-%{version}.tar.xz | |
e8288739 | 28 | # Source0-md5: d2f1944c643d028d4b826d3f16bbfce0 |
2f02cc8c JR |
29 | Patch0: %{name}-dbus.patch |
30 | Patch1: %{name}-php.patch | |
b04fba8b | 31 | Patch2: %{name}-php7.patch |
19c76606 | 32 | Patch3: %{name}-php73.patch |
f0e327c4 | 33 | Patch4: %{name}-poppler.patch |
98eddd8d | 34 | URL: http://www.linuxfoundation.org/collaborate/workgroups/openprinting/cups-filters |
960629b2 JB |
35 | BuildRequires: autoconf >= 2.65 |
36 | BuildRequires: automake >= 1:1.11 | |
98eddd8d JR |
37 | BuildRequires: avahi-devel |
38 | BuildRequires: avahi-glib-devel | |
be95c05b | 39 | BuildRequires: cups-devel >= 1:1.6.0 |
98eddd8d | 40 | BuildRequires: dbus-devel |
960629b2 JB |
41 | BuildRequires: fontconfig-devel >= 2.0.0 |
42 | BuildRequires: freetype-devel >= 2 | |
43 | # /usr/bin/gs, for features detection | |
75fdf098 | 44 | %{?with_php:BuildRequires: %{php_name}-devel} |
960629b2 | 45 | BuildRequires: ghostscript |
98eddd8d | 46 | BuildRequires: ghostscript-ijs-devel |
960629b2 JB |
47 | BuildRequires: glib2-devel >= 1:2.30.2 |
48 | BuildRequires: lcms2-devel >= 2 | |
98eddd8d | 49 | BuildRequires: libjpeg-devel |
49d053a5 | 50 | %{?with_braille:BuildRequires: liblouis-devel} |
98eddd8d | 51 | BuildRequires: libpng-devel |
f0e327c4 | 52 | BuildRequires: libstdc++-devel >= 6:4.7 |
98eddd8d JR |
53 | BuildRequires: libtiff-devel |
54 | BuildRequires: libtool | |
81f7198e | 55 | BuildRequires: openldap-devel |
960629b2 | 56 | %{?with_perl:BuildRequires: perl-devel} |
960629b2 JB |
57 | BuildRequires: pkgconfig >= 1:0.20 |
58 | # just for cpp/poppler-version.h | |
944709aa JP |
59 | BuildRequires: poppler-cpp-devel >= 0.19 |
60 | BuildRequires: poppler-devel >= 0.19 | |
960629b2 | 61 | # /usr/bin/pdftops, for features detection |
944709aa JP |
62 | BuildRequires: poppler-progs >= 0.19 |
63 | BuildRequires: qpdf-devel >= 8.3.0 | |
75fdf098 | 64 | BuildRequires: rpmbuild(macros) >= 1.671 |
98eddd8d | 65 | BuildRequires: zlib-devel |
960629b2 JB |
66 | # DejaVuSans.ttf (testing font for test scripts) |
67 | #BuildRequires: fonts-TTF-DejaVu | |
68 | Requires: %{name}-libs = %{version}-%{release} | |
9913be34 JR |
69 | # pstopdf |
70 | Requires: bc | |
960629b2 JB |
71 | Requires: cups >= 1:1.6.0 |
72 | Requires: fontconfig >= 2.0.0 | |
c1d35bf4 | 73 | Requires: ghostscript |
9913be34 JR |
74 | Requires: grep |
75 | Requires: mupdf | |
944709aa JP |
76 | Requires: poppler >= 0.19 |
77 | Requires: poppler-progs >= 0.19 | |
78 | Requires: qpdf-libs >= 8.3.0 | |
98eddd8d | 79 | Requires: sed |
9913be34 | 80 | Suggests: fonts-TTF-freefont |
2f02cc8c | 81 | Provides: cups-filter-foomatic |
98eddd8d | 82 | Provides: ghostscript-cups = 9.08 |
2f02cc8c JR |
83 | Obsoletes: cups-filter-foomatic |
84 | Obsoletes: foomatic-filters | |
98eddd8d | 85 | Obsoletes: ghostscript-cups < 9.08 |
fa8aac5c JR |
86 | Conflicts: cups-backend-hp < 3.13.11-2 |
87 | Conflicts: hplip-ppd < 3.13.11-2 | |
98eddd8d JR |
88 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
89 | ||
b84b8132 | 90 | %define _cups_serverbin %(/usr/bin/cups-config --serverbin) |
98eddd8d | 91 | |
98eddd8d JR |
92 | %description |
93 | Contains backends, filters, and other software that was once part of | |
94 | the core CUPS distribution but is no longer maintained by Apple Inc. | |
95 | In addition it contains additional filters developed independently of | |
96 | Apple, especially filters for the PDF-centric printing workflow | |
97 | introduced by OpenPrinting. | |
98 | ||
960629b2 JB |
99 | %description -l pl.UTF-8 |
100 | Ten pakiet zawiera backendy, filtry i inne oprogramowanie, będące | |
101 | kiedyś częścią CUPS-a, ale nie utrzymywane już przez firmę Apple Inc. | |
102 | Dodatkowo pakiet zawiera dodatkowe filtry stworzone niezależnie od | |
103 | Apple'a, w szczególności filtry dla PDF-ocentrycznego obiegu | |
104 | drukowania wprowadzonego przez OpenPrinting. | |
105 | ||
49d053a5 JB |
106 | %package braille |
107 | Summary: OpenPrinting CUPS filters for Braille embossers | |
108 | Summary(pl.UTF-8): Filtry CUPS-a z projektu OpenPrinting dla drukarek Braille'a | |
109 | Group: Applications/Printing | |
110 | Requires: %{name} = %{version}-%{release} | |
111 | ||
112 | %description braille | |
113 | OpenPrinting CUPS filters for Braille embossers. | |
114 | ||
115 | %description braille -l pl.UTF-8 | |
116 | Filtry CUPS-a z projektu OpenPrinting dla drukarek Braille'a. | |
117 | ||
960629b2 JB |
118 | %package libs |
119 | Summary: OpenPrinting CUPS filters and backends - cupsfilters and fontembed libraries | |
120 | Summary(pl.UTF-8): Filtry i backendy CUPS-a z projektu OpenPrinting - biblioteki cupsfilters i fontembed | |
121 | # LGPLv2: libcupsfilters | |
122 | # MIT: libfontembed | |
123 | License: LGPL v2, MIT | |
124 | Group: Libraries | |
125 | Requires: cups-lib >= 1:1.6.0 | |
126 | ||
98eddd8d JR |
127 | %description libs |
128 | This package provides cupsfilters and fontembed libraries. | |
129 | ||
960629b2 JB |
130 | %description libs -l pl.UTF-8 |
131 | Ten pakiet udostępnia biblioteki cupsfilters i fontembed. | |
132 | ||
133 | %package devel | |
134 | Summary: OpenPrinting CUPS filters and backends - development environment | |
135 | Summary(pl.UTF-8): Filtry i backendy CUPS-a z projektu OpenPrinting - środowisko programistyczne | |
136 | License: LGPL v2, MIT | |
137 | Group: Development/Libraries | |
138 | Requires: %{name}-libs = %{version}-%{release} | |
139 | Requires: cups-devel >= 1:1.6.0 | |
140 | Requires: libjpeg-devel | |
141 | Requires: libpng-devel | |
142 | Requires: libtiff-devel | |
143 | ||
98eddd8d JR |
144 | %description devel |
145 | This is the development package for OpenPrinting CUPS filters and | |
146 | backends. | |
147 | ||
960629b2 JB |
148 | %description devel -l pl.UTF-8 |
149 | To jest pakiet programistyczny dla filtrów i backendów CUPS-a z | |
150 | projektu OpenPrinting. | |
151 | ||
152 | %package static | |
153 | Summary: OpenPrinting CUPS filters and backends - static cupsfilters and fontembed libraries | |
154 | Summary(pl.UTF-8): Filtry i backendy CUPS-a z projektu OpenPrinting - statyczne biblioteki cupsfilters i fontembed | |
155 | License: LGPL v2, MIT | |
156 | Group: Development/Libraries | |
157 | Requires: %{name}-devel = %{version}-%{release} | |
158 | ||
159 | %description static | |
160 | This package provides static cupsfilters and fontembed libraries. | |
161 | ||
162 | %description static -l pl.UTF-8 | |
163 | Ten pakiet udostępnia statyczne biblioteki cupsfilters i fontembed. | |
164 | ||
98eddd8d JR |
165 | %package -n cups-browsed |
166 | Summary: A daemon for browsing the Bonjour broadcasts of shared, remote CUPS printers | |
960629b2 | 167 | Summary(pl.UTF-8): Demon do przeglądania broadcastów Bonjour współdzielonych, zdalnych drukarek CUPS |
98eddd8d | 168 | Group: Applications/Printing |
960629b2 | 169 | Requires(post,preun): /sbin/chkconfig |
b84b8132 | 170 | Requires(post,preun,postun): systemd-units |
960629b2 | 171 | Requires: glib2 >= 1:2.30.2 |
b84b8132 | 172 | Requires: systemd-units >= 38 |
98eddd8d JR |
173 | |
174 | %description -n cups-browsed | |
75fdf098 ER |
175 | A daemon for browsing the Bonjour broadcasts of shared, remote CUPS |
176 | printers. | |
98eddd8d | 177 | |
960629b2 JB |
178 | %description -n cups-browsed -l pl.UTF-8 |
179 | Demon do przeglądania broadcastów Bonjour współdzielonych, zdalnych | |
180 | drukarek CUPS. | |
181 | ||
182 | %package -n cups-backend-parallel | |
183 | Summary: Parallel port backend for CUPS | |
184 | Summary(pl.UTF-8): Backend CUPS-a obsługujący porty równoległe | |
185 | # must be larger than cups.spec before 1.6.0 | |
186 | Epoch: 2 | |
187 | License: GPL v2 + OpenSSL exception | |
188 | Group: Applications/Printing | |
189 | Requires: cups >= 1:1.6.0 | |
190 | ||
191 | %description -n cups-backend-parallel | |
192 | This package allow CUPS printing on printers connected by parallel | |
193 | ports. | |
194 | ||
195 | %description -n cups-backend-parallel -l pl.UTF-8 | |
196 | Ten pakiet umożliwia drukowanie z poziomu CUPS-a na drukarkach | |
197 | podłączonych do portów równoległych. | |
198 | ||
b84b8132 JR |
199 | %package -n cups-backend-serial |
200 | Summary: Serial port backend for CUPS | |
960629b2 JB |
201 | Summary(pl.UTF-8): Backend CUPS-a obsługujący porty szeregowe |
202 | # must be larger than cups.spec before 1.6.0 | |
b84b8132 | 203 | Epoch: 2 |
960629b2 | 204 | License: GPL v2 + OpenSSL exception |
b84b8132 | 205 | Group: Applications/Printing |
960629b2 | 206 | Requires: cups >= 1:1.6.0 |
b84b8132 JR |
207 | |
208 | %description -n cups-backend-serial | |
209 | This package allow CUPS printing on printers connected by serial | |
210 | ports. | |
211 | ||
212 | %description -n cups-backend-serial -l pl.UTF-8 | |
213 | Ten pakiet umożliwia drukowanie z poziomu CUPS-a na drukarkach | |
214 | podłączonych do portów szeregowych. | |
215 | ||
960629b2 JB |
216 | %package -n perl-cups |
217 | Summary: Perl module for CUPS | |
218 | Summary(pl.UTF-8): Moduł Perla CUPS | |
219 | # must be larger than cups.spec before 1.6.0 | |
b84b8132 | 220 | Epoch: 2 |
960629b2 JB |
221 | License: GPL v2 + OpenSSL exception |
222 | Group: Development/Languages/Perl | |
223 | Requires: cups-lib >= 1:1.6.0 | |
b84b8132 | 224 | |
960629b2 JB |
225 | %description -n perl-cups |
226 | Perl module for Common Unix Printing System. | |
b84b8132 | 227 | |
960629b2 JB |
228 | %description -n perl-cups -l pl.UTF-8 |
229 | Moduł Perla do ogólnego systemu druku dla Uniksa. | |
230 | ||
75fdf098 | 231 | %package -n %{php_name}-cups |
960629b2 JB |
232 | Summary: PHP module for CUPS |
233 | Summary(pl.UTF-8): Moduł PHP CUPS | |
234 | # must be larger than cups.spec before 1.6.0 | |
235 | Epoch: 2 | |
236 | License: GPL v2 + OpenSSL exception | |
237 | Group: Development/Languages/PHP | |
238 | Requires: cups-lib >= 1:1.6.0 | |
239 | %{?requires_php_extension} | |
960629b2 | 240 | |
75fdf098 | 241 | %description -n %{php_name}-cups |
960629b2 JB |
242 | PHP module for Common Unix Printing System. |
243 | ||
75fdf098 | 244 | %description -n %{php_name}-cups -l pl.UTF-8 |
960629b2 | 245 | Moduł PHP do ogólnego systemu druku dla Uniksa. |
b84b8132 JR |
246 | |
247 | # CREATE ANY NEW PACKAGES BEFORE cups-backend-* (EPOCH) | |
248 | ||
98eddd8d JR |
249 | %prep |
250 | %setup -q | |
960629b2 | 251 | %patch0 -p1 |
98eddd8d | 252 | %patch1 -p1 |
b04fba8b | 253 | %patch2 -p1 |
19c76606 | 254 | %patch3 -p1 |
f0e327c4 | 255 | %patch4 -p1 |
98eddd8d JR |
256 | |
257 | %build | |
258 | %{__aclocal} | |
259 | %{__autoconf} | |
260 | %{__automake} | |
261 | ||
262 | %configure \ | |
49d053a5 | 263 | %{!?with_braille:--disable-braille} \ |
960629b2 | 264 | --enable-dbus \ |
b390b79a JP |
265 | --enable-ijs \ |
266 | --enable-opvp \ | |
98eddd8d | 267 | --disable-silent-rules \ |
960629b2 | 268 | %{!?with_static_libs:--disable-static} \ |
960629b2 | 269 | %{?with_php:--with-php} \ |
98eddd8d | 270 | --with-pdftops=hybrid \ |
960629b2 JB |
271 | --with-rcdir=/etc/rc.d/init.d \ |
272 | --with-rclevels= \ | |
9913be34 | 273 | --with-mutool-path=/usr/bin/mutool \ |
960629b2 JB |
274 | --with-test-font-path=/usr/share/fonts/TTF/DejaVuSans.ttf |
275 | ||
276 | %{__make} | |
277 | ||
278 | %if %{with perl} | |
279 | cd scripting/perl | |
280 | %{__perl} Makefile.PL \ | |
281 | INSTALLDIRS=vendor \ | |
282 | OPTIMIZE="%{rpmcflags}" | |
98eddd8d JR |
283 | |
284 | %{__make} | |
960629b2 JB |
285 | cd ../.. |
286 | %endif | |
98eddd8d JR |
287 | |
288 | %install | |
289 | rm -rf $RPM_BUILD_ROOT | |
290 | install -d $RPM_BUILD_ROOT%{systemdunitdir} | |
98eddd8d JR |
291 | %{__make} install \ |
292 | DESTDIR=$RPM_BUILD_ROOT | |
293 | ||
960629b2 JB |
294 | %if %{with php} |
295 | install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d | |
296 | cat > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/phpcups.ini << 'EOF' | |
297 | ; Enable phpcups extension module | |
298 | extension=libphpcups.so | |
299 | EOF | |
75fdf098 ER |
300 | # dlopened module |
301 | %{__rm} $RPM_BUILD_ROOT%{php_extensiondir}/libphpcups.la | |
960629b2 JB |
302 | %endif |
303 | ||
304 | %if %{with perl} | |
305 | %{__make} -C scripting/perl install \ | |
306 | DESTDIR=$RPM_BUILD_ROOT | |
307 | %endif | |
98eddd8d | 308 | |
cbe62ebd JB |
309 | install -p utils/cups-browsed.service $RPM_BUILD_ROOT%{systemdunitdir} |
310 | ||
960629b2 JB |
311 | # obsoleted by pkg-config |
312 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la | |
960629b2 JB |
313 | # packaged as %doc |
314 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/cups-filters | |
98eddd8d JR |
315 | # Not sure what is this good for. |
316 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/ttfread | |
317 | ||
98eddd8d JR |
318 | %clean |
319 | rm -rf $RPM_BUILD_ROOT | |
320 | ||
960629b2 JB |
321 | %post libs -p /sbin/ldconfig |
322 | %postun libs -p /sbin/ldconfig | |
323 | ||
98eddd8d | 324 | %post -n cups-browsed |
57845ec9 | 325 | if [ "$1" = "1" ]; then |
98eddd8d JR |
326 | # We can remove this after few releases, it's just for the introduction of cups-browsed. |
327 | if [ -f %{_sysconfdir}/cups/cups-browsed.conf ]; then | |
328 | echo -e "\n# NOTE: This file is not part of CUPS. You need to start & enable cups-browsed service." >>%{_sysconfdir}/cups/cups-browsed.conf | |
329 | fi | |
330 | ||
331 | # move BrowsePoll from cupsd.conf to cups-browsed.conf | |
332 | if [ -f %{_sysconfdir}/cups/cupsd.conf ] && grep -iq "^BrowsePoll" %{_sysconfdir}/cups/cupsd.conf; then | |
333 | if ! grep -iq "^BrowsePoll" %{_sysconfdir}/cups/cups-browsed.conf; then | |
334 | echo "# Settings automatically moved from cupsd.conf by RPM package:" >>%{_sysconfdir}/cups/cups-browsed.conf | |
335 | grep -i "^BrowsePoll" %{_sysconfdir}/cups/cupsd.conf >> %{_sysconfdir}/cups/cups-browsed.conf || : | |
336 | fi | |
337 | sed -i -e "s,^BrowsePoll,#BrowsePoll directive moved to cups-browsed.conf\n#BrowsePoll,i" %{_sysconfdir}/cups/cupsd.conf || : | |
338 | fi | |
339 | fi | |
960629b2 JB |
340 | /sbin/chkconfig --add cups-browsed |
341 | %service cups-browsed restart | |
98eddd8d JR |
342 | %systemd_post cups-browsed.service |
343 | ||
344 | %preun -n cups-browsed | |
960629b2 JB |
345 | if [ "$1" = "0" ]; then |
346 | %service cups-browsed stop | |
347 | /sbin/chkconfig --del cups-browsed | |
348 | fi | |
98eddd8d JR |
349 | %systemd_preun cups-browsed.service |
350 | ||
351 | %postun -n cups-browsed | |
352 | %systemd_reload | |
353 | ||
98eddd8d JR |
354 | %files |
355 | %defattr(644,root,root,755) | |
960629b2 | 356 | %doc AUTHORS COPYING NEWS README |
98eddd8d | 357 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fonts/conf.d/99pdftoopvp.conf |
9913be34 | 358 | %attr(755,root,root) %{_bindir}/driverless |
96dc6d6d | 359 | %attr(755,root,root) %{_bindir}/foomatic-rip |
49d053a5 | 360 | %attr(755,root,root) %{_cups_serverbin}/backend/beh |
8e3aa2fa | 361 | %attr(755,root,root) %{_cups_serverbin}/backend/cups-brf |
9913be34 JR |
362 | %attr(755,root,root) %{_cups_serverbin}/backend/driverless |
363 | %attr(755,root,root) %{_cups_serverbin}/driver/driverless | |
960629b2 | 364 | %attr(755,root,root) %{_cups_serverbin}/filter/bannertopdf |
60e1db7a | 365 | %attr(755,root,root) %{_cups_serverbin}/filter/brftopagedbrf |
8e3aa2fa AM |
366 | %attr(755,root,root) %{_cups_serverbin}/filter/cgmtopdf |
367 | %attr(755,root,root) %{_cups_serverbin}/filter/cmxtopdf | |
960629b2 JB |
368 | %attr(755,root,root) %{_cups_serverbin}/filter/commandtoescpx |
369 | %attr(755,root,root) %{_cups_serverbin}/filter/commandtopclx | |
8e3aa2fa | 370 | %attr(755,root,root) %{_cups_serverbin}/filter/emftopdf |
2f02cc8c | 371 | %attr(755,root,root) %{_cups_serverbin}/filter/foomatic-rip |
9913be34 | 372 | %attr(755,root,root) %{_cups_serverbin}/filter/gstopdf |
960629b2 JB |
373 | %attr(755,root,root) %{_cups_serverbin}/filter/gstopxl |
374 | %attr(755,root,root) %{_cups_serverbin}/filter/gstoraster | |
375 | %attr(755,root,root) %{_cups_serverbin}/filter/imagetopdf | |
376 | %attr(755,root,root) %{_cups_serverbin}/filter/imagetops | |
377 | %attr(755,root,root) %{_cups_serverbin}/filter/imagetoraster | |
9913be34 | 378 | %attr(755,root,root) %{_cups_serverbin}/filter/mupdftoraster |
8e3aa2fa | 379 | %attr(755,root,root) %{_cups_serverbin}/filter/musicxmltobrf |
960629b2 | 380 | %attr(755,root,root) %{_cups_serverbin}/filter/pdftoijs |
960629b2 JB |
381 | %attr(755,root,root) %{_cups_serverbin}/filter/pdftoopvp |
382 | %attr(755,root,root) %{_cups_serverbin}/filter/pdftopdf | |
383 | %attr(755,root,root) %{_cups_serverbin}/filter/pdftops | |
384 | %attr(755,root,root) %{_cups_serverbin}/filter/pdftoraster | |
960629b2 | 385 | %attr(755,root,root) %{_cups_serverbin}/filter/rastertoescpx |
8e3aa2fa | 386 | %attr(755,root,root) %{_cups_serverbin}/filter/rastertopclm |
960629b2 | 387 | %attr(755,root,root) %{_cups_serverbin}/filter/rastertopclx |
bf137972 | 388 | %attr(755,root,root) %{_cups_serverbin}/filter/rastertopdf |
9913be34 | 389 | %attr(755,root,root) %{_cups_serverbin}/filter/rastertops |
8e3aa2fa | 390 | %attr(755,root,root) %{_cups_serverbin}/filter/svgtopdf |
27e14967 | 391 | %attr(755,root,root) %{_cups_serverbin}/filter/sys5ippprinter |
960629b2 JB |
392 | %attr(755,root,root) %{_cups_serverbin}/filter/texttopdf |
393 | %attr(755,root,root) %{_cups_serverbin}/filter/texttops | |
9913be34 | 394 | %attr(755,root,root) %{_cups_serverbin}/filter/texttotext |
8e3aa2fa AM |
395 | %attr(755,root,root) %{_cups_serverbin}/filter/vectortobrf |
396 | %attr(755,root,root) %{_cups_serverbin}/filter/vectortopdf | |
397 | %attr(755,root,root) %{_cups_serverbin}/filter/vectortoubrl | |
398 | %attr(755,root,root) %{_cups_serverbin}/filter/wmftopdf | |
399 | %attr(755,root,root) %{_cups_serverbin}/filter/xfigtopdf | |
57845ec9 | 400 | %{_datadir}/cups/banners/* |
98eddd8d | 401 | %{_datadir}/cups/charsets |
94049a51 JB |
402 | %{_datadir}/cups/data/classified.pdf |
403 | %{_datadir}/cups/data/confidential.pdf | |
960629b2 JB |
404 | %{_datadir}/cups/data/default.pdf |
405 | %{_datadir}/cups/data/default-testpage.pdf | |
94b3ffe2 JB |
406 | %{_datadir}/cups/data/form_english.pdf |
407 | %{_datadir}/cups/data/form_english_in.odt | |
408 | %{_datadir}/cups/data/form_russian.pdf | |
409 | %{_datadir}/cups/data/form_russian_in.odt | |
94049a51 JB |
410 | %{_datadir}/cups/data/secret.pdf |
411 | %{_datadir}/cups/data/standard.pdf | |
412 | %{_datadir}/cups/data/topsecret.pdf | |
413 | %{_datadir}/cups/data/unclassified.pdf | |
2d4a03cc | 414 | %{_datadir}/cups/data/testprint |
98eddd8d | 415 | %{_datadir}/cups/drv/cupsfilters.drv |
8e3aa2fa | 416 | %{_datadir}/cups/drv/generic-ubrl.drv |
98eddd8d JR |
417 | %{_datadir}/cups/mime/cupsfilters.types |
418 | %{_datadir}/cups/mime/cupsfilters.convs | |
b04fba8b | 419 | %{_datadir}/cups/mime/cupsfilters-ghostscript.convs |
9913be34 JR |
420 | %{_datadir}/cups/mime/cupsfilters-mupdf.convs |
421 | %{_datadir}/cups/mime/cupsfilters-poppler.convs | |
960629b2 JB |
422 | # definitions for drivers; pcl.h is used by cupsfilters.drv |
423 | %{_datadir}/cups/ppdc/escp.h | |
424 | %{_datadir}/cups/ppdc/pcl.h | |
98eddd8d | 425 | %{_datadir}/ppd/cupsfilters |
ccfe97a6 | 426 | %{_mandir}/man1/driverless.1* |
2f02cc8c | 427 | %{_mandir}/man1/foomatic-rip.1* |
98eddd8d | 428 | |
49d053a5 JB |
429 | %if %{with braille} |
430 | %files braille | |
431 | %defattr(644,root,root,755) | |
432 | %attr(755,root,root) %{_cups_serverbin}/filter/brftoembosser | |
433 | %attr(755,root,root) %{_cups_serverbin}/filter/imagetobrf | |
434 | %attr(755,root,root) %{_cups_serverbin}/filter/imagetoubrl | |
435 | %attr(755,root,root) %{_cups_serverbin}/filter/imageubrltoindexv3 | |
436 | %attr(755,root,root) %{_cups_serverbin}/filter/imageubrltoindexv4 | |
437 | %attr(755,root,root) %{_cups_serverbin}/filter/textbrftoindexv3 | |
438 | %attr(755,root,root) %{_cups_serverbin}/filter/textbrftoindexv4 | |
439 | %attr(755,root,root) %{_cups_serverbin}/filter/texttobrf | |
440 | %dir %{_datadir}/cups/braille | |
441 | %attr(755,root,root) %{_datadir}/cups/braille/cups-braille.sh | |
442 | %attr(755,root,root) %{_datadir}/cups/braille/index.sh | |
443 | %attr(755,root,root) %{_datadir}/cups/braille/indexv3.sh | |
444 | %attr(755,root,root) %{_datadir}/cups/braille/indexv4.sh | |
445 | %{_datadir}/cups/drv/generic-brf.drv | |
446 | %{_datadir}/cups/drv/indexv3.drv | |
447 | %{_datadir}/cups/drv/indexv4.drv | |
448 | %{_datadir}/cups/mime/braille.convs | |
449 | %{_datadir}/cups/mime/braille.types | |
450 | %{_datadir}/cups/ppdc/braille.defs | |
451 | %{_datadir}/cups/ppdc/fr-braille.po | |
452 | %{_datadir}/cups/ppdc/imagemagick.defs | |
453 | %{_datadir}/cups/ppdc/index.defs | |
454 | %{_datadir}/cups/ppdc/liblouis.defs | |
455 | %{_datadir}/cups/ppdc/liblouis1.defs | |
456 | %{_datadir}/cups/ppdc/liblouis2.defs | |
457 | %{_datadir}/cups/ppdc/liblouis3.defs | |
458 | %{_datadir}/cups/ppdc/liblouis4.defs | |
459 | %{_datadir}/cups/ppdc/media-braille.defs | |
460 | %endif | |
461 | ||
98eddd8d JR |
462 | %files libs |
463 | %defattr(644,root,root,755) | |
eed8649d | 464 | %doc fontembed/README |
98eddd8d JR |
465 | %attr(755,root,root) %{_libdir}/libcupsfilters.so.*.*.* |
466 | %attr(755,root,root) %ghost %{_libdir}/libcupsfilters.so.1 | |
467 | %attr(755,root,root) %{_libdir}/libfontembed.so.*.*.* | |
468 | %attr(755,root,root) %ghost %{_libdir}/libfontembed.so.1 | |
469 | ||
470 | %files devel | |
471 | %defattr(644,root,root,755) | |
960629b2 JB |
472 | %attr(755,root,root) %{_libdir}/libcupsfilters.so |
473 | %attr(755,root,root) %{_libdir}/libfontembed.so | |
98eddd8d JR |
474 | %{_includedir}/cupsfilters |
475 | %{_includedir}/fontembed | |
98eddd8d JR |
476 | %{_pkgconfigdir}/libcupsfilters.pc |
477 | %{_pkgconfigdir}/libfontembed.pc | |
960629b2 JB |
478 | |
479 | %files static | |
480 | %defattr(644,root,root,755) | |
481 | %{_libdir}/libcupsfilters.a | |
482 | %{_libdir}/libfontembed.a | |
98eddd8d JR |
483 | |
484 | %files -n cups-browsed | |
485 | %defattr(644,root,root,755) | |
486 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cups/cups-browsed.conf | |
487 | %attr(755,root,root) %{_sbindir}/cups-browsed | |
81f7198e | 488 | %attr(755,root,root) %{_cups_serverbin}/backend/implicitclass |
960629b2 | 489 | %attr(754,root,root) /etc/rc.d/init.d/cups-browsed |
98eddd8d | 490 | %{systemdunitdir}/cups-browsed.service |
98eddd8d | 491 | %{_mandir}/man5/cups-browsed.conf.5* |
960629b2 JB |
492 | %{_mandir}/man8/cups-browsed.8* |
493 | ||
494 | %files -n cups-backend-parallel | |
495 | %defattr(644,root,root,755) | |
496 | %attr(755,root,root) %{_cups_serverbin}/backend/parallel | |
b84b8132 JR |
497 | |
498 | %files -n cups-backend-serial | |
499 | %defattr(644,root,root,755) | |
500 | %attr(755,root,root) %{_cups_serverbin}/backend/serial | |
501 | ||
960629b2 JB |
502 | %if %{with perl} |
503 | %files -n perl-cups | |
b84b8132 | 504 | %defattr(644,root,root,755) |
960629b2 JB |
505 | %doc scripting/perl/README |
506 | %{perl_vendorarch}/CUPS.pm | |
507 | %dir %{perl_vendorarch}/auto/CUPS | |
960629b2 JB |
508 | %{perl_vendorarch}/auto/CUPS/autosplit.ix |
509 | %attr(755,root,root) %{perl_vendorarch}/auto/CUPS/CUPS.so | |
510 | %{_mandir}/man3/CUPS.3pm* | |
511 | %endif | |
512 | ||
513 | %if %{with php} | |
75fdf098 | 514 | %files -n %{php_name}-cups |
960629b2 JB |
515 | %defattr(644,root,root,755) |
516 | %doc scripting/php/README | |
960629b2 | 517 | %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/phpcups.ini |
75fdf098 | 518 | %attr(755,root,root) %{php_extensiondir}/libphpcups.so |
960629b2 | 519 | %endif |