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