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