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