]>
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 | 5 | %bcond_without perl # Perl module |
3f4105b9 | 6 | %bcond_with 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 |
67bbea46 | 14 | Version: 1.28.1 |
8a0fc584 | 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 | |
9955b758 | 24 | # MIT: filters: gstoraster, 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 | |
67bbea46 | 28 | # Source0-md5: e3fc45480c9800d0212ff9bd5a5ef884 |
2f02cc8c JR |
29 | Patch0: %{name}-dbus.patch |
30 | Patch1: %{name}-php.patch | |
b04fba8b | 31 | Patch2: %{name}-php7.patch |
19c76606 | 32 | Patch3: %{name}-php73.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 |
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 |
f0e327c4 | 50 | BuildRequires: libstdc++-devel >= 6:4.7 |
98eddd8d JR |
51 | BuildRequires: libtiff-devel |
52 | BuildRequires: libtool | |
81f7198e | 53 | BuildRequires: openldap-devel |
960629b2 | 54 | %{?with_perl:BuildRequires: perl-devel} |
960629b2 | 55 | BuildRequires: pkgconfig >= 1:0.20 |
944709aa | 56 | BuildRequires: poppler-cpp-devel >= 0.19 |
960629b2 | 57 | # /usr/bin/pdftops, for features detection |
944709aa JP |
58 | BuildRequires: poppler-progs >= 0.19 |
59 | BuildRequires: qpdf-devel >= 8.3.0 | |
75fdf098 | 60 | BuildRequires: rpmbuild(macros) >= 1.671 |
98eddd8d | 61 | BuildRequires: zlib-devel |
960629b2 JB |
62 | # DejaVuSans.ttf (testing font for test scripts) |
63 | #BuildRequires: fonts-TTF-DejaVu | |
64 | Requires: %{name}-libs = %{version}-%{release} | |
9913be34 JR |
65 | # pstopdf |
66 | Requires: bc | |
960629b2 JB |
67 | Requires: cups >= 1:1.6.0 |
68 | Requires: fontconfig >= 2.0.0 | |
c1d35bf4 | 69 | Requires: ghostscript |
9913be34 JR |
70 | Requires: grep |
71 | Requires: mupdf | |
944709aa JP |
72 | Requires: poppler >= 0.19 |
73 | Requires: poppler-progs >= 0.19 | |
74 | Requires: qpdf-libs >= 8.3.0 | |
98eddd8d | 75 | Requires: sed |
9913be34 | 76 | Suggests: fonts-TTF-freefont |
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 |
19c76606 | 250 | %patch3 -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 \ |
98eddd8d | 260 | --disable-silent-rules \ |
960629b2 | 261 | %{!?with_static_libs:--disable-static} \ |
960629b2 | 262 | %{?with_php:--with-php} \ |
98eddd8d | 263 | --with-pdftops=hybrid \ |
960629b2 JB |
264 | --with-rcdir=/etc/rc.d/init.d \ |
265 | --with-rclevels= \ | |
9913be34 | 266 | --with-mutool-path=/usr/bin/mutool \ |
960629b2 JB |
267 | --with-test-font-path=/usr/share/fonts/TTF/DejaVuSans.ttf |
268 | ||
269 | %{__make} | |
270 | ||
271 | %if %{with perl} | |
272 | cd scripting/perl | |
273 | %{__perl} Makefile.PL \ | |
274 | INSTALLDIRS=vendor \ | |
275 | OPTIMIZE="%{rpmcflags}" | |
98eddd8d JR |
276 | |
277 | %{__make} | |
960629b2 JB |
278 | cd ../.. |
279 | %endif | |
98eddd8d JR |
280 | |
281 | %install | |
282 | rm -rf $RPM_BUILD_ROOT | |
283 | install -d $RPM_BUILD_ROOT%{systemdunitdir} | |
98eddd8d JR |
284 | %{__make} install \ |
285 | DESTDIR=$RPM_BUILD_ROOT | |
286 | ||
960629b2 JB |
287 | %if %{with php} |
288 | install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d | |
289 | cat > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/phpcups.ini << 'EOF' | |
290 | ; Enable phpcups extension module | |
291 | extension=libphpcups.so | |
292 | EOF | |
75fdf098 ER |
293 | # dlopened module |
294 | %{__rm} $RPM_BUILD_ROOT%{php_extensiondir}/libphpcups.la | |
960629b2 JB |
295 | %endif |
296 | ||
297 | %if %{with perl} | |
298 | %{__make} -C scripting/perl install \ | |
299 | DESTDIR=$RPM_BUILD_ROOT | |
300 | %endif | |
98eddd8d | 301 | |
cbe62ebd JB |
302 | install -p utils/cups-browsed.service $RPM_BUILD_ROOT%{systemdunitdir} |
303 | ||
960629b2 JB |
304 | # obsoleted by pkg-config |
305 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la | |
960629b2 JB |
306 | # packaged as %doc |
307 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/cups-filters | |
98eddd8d JR |
308 | # Not sure what is this good for. |
309 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/ttfread | |
310 | ||
98eddd8d JR |
311 | %clean |
312 | rm -rf $RPM_BUILD_ROOT | |
313 | ||
960629b2 JB |
314 | %post libs -p /sbin/ldconfig |
315 | %postun libs -p /sbin/ldconfig | |
316 | ||
98eddd8d | 317 | %post -n cups-browsed |
57845ec9 | 318 | if [ "$1" = "1" ]; then |
98eddd8d JR |
319 | # We can remove this after few releases, it's just for the introduction of cups-browsed. |
320 | if [ -f %{_sysconfdir}/cups/cups-browsed.conf ]; then | |
321 | echo -e "\n# NOTE: This file is not part of CUPS. You need to start & enable cups-browsed service." >>%{_sysconfdir}/cups/cups-browsed.conf | |
322 | fi | |
323 | ||
324 | # move BrowsePoll from cupsd.conf to cups-browsed.conf | |
325 | if [ -f %{_sysconfdir}/cups/cupsd.conf ] && grep -iq "^BrowsePoll" %{_sysconfdir}/cups/cupsd.conf; then | |
326 | if ! grep -iq "^BrowsePoll" %{_sysconfdir}/cups/cups-browsed.conf; then | |
327 | echo "# Settings automatically moved from cupsd.conf by RPM package:" >>%{_sysconfdir}/cups/cups-browsed.conf | |
328 | grep -i "^BrowsePoll" %{_sysconfdir}/cups/cupsd.conf >> %{_sysconfdir}/cups/cups-browsed.conf || : | |
329 | fi | |
330 | sed -i -e "s,^BrowsePoll,#BrowsePoll directive moved to cups-browsed.conf\n#BrowsePoll,i" %{_sysconfdir}/cups/cupsd.conf || : | |
331 | fi | |
332 | fi | |
960629b2 JB |
333 | /sbin/chkconfig --add cups-browsed |
334 | %service cups-browsed restart | |
98eddd8d JR |
335 | %systemd_post cups-browsed.service |
336 | ||
337 | %preun -n cups-browsed | |
960629b2 JB |
338 | if [ "$1" = "0" ]; then |
339 | %service cups-browsed stop | |
340 | /sbin/chkconfig --del cups-browsed | |
341 | fi | |
98eddd8d JR |
342 | %systemd_preun cups-browsed.service |
343 | ||
344 | %postun -n cups-browsed | |
345 | %systemd_reload | |
346 | ||
98eddd8d JR |
347 | %files |
348 | %defattr(644,root,root,755) | |
960629b2 | 349 | %doc AUTHORS COPYING NEWS README |
9913be34 | 350 | %attr(755,root,root) %{_bindir}/driverless |
6ca766bc | 351 | %attr(755,root,root) %{_bindir}/driverless-fax |
96dc6d6d | 352 | %attr(755,root,root) %{_bindir}/foomatic-rip |
f10773a6 AM |
353 | %attr(700,root,root) %{_cups_serverbin}/backend/beh |
354 | %attr(700,root,root) %{_cups_serverbin}/backend/cups-brf | |
355 | %attr(700,root,root) %{_cups_serverbin}/backend/driverless | |
6ca766bc | 356 | %attr(700,root,root) %{_cups_serverbin}/backend/driverless-fax |
f10773a6 | 357 | %attr(700,root,root) %{_cups_serverbin}/backend/implicitclass |
9913be34 | 358 | %attr(755,root,root) %{_cups_serverbin}/driver/driverless |
6ca766bc | 359 | %attr(755,root,root) %{_cups_serverbin}/driver/driverless-fax |
960629b2 | 360 | %attr(755,root,root) %{_cups_serverbin}/filter/bannertopdf |
60e1db7a | 361 | %attr(755,root,root) %{_cups_serverbin}/filter/brftopagedbrf |
8e3aa2fa AM |
362 | %attr(755,root,root) %{_cups_serverbin}/filter/cgmtopdf |
363 | %attr(755,root,root) %{_cups_serverbin}/filter/cmxtopdf | |
960629b2 JB |
364 | %attr(755,root,root) %{_cups_serverbin}/filter/commandtoescpx |
365 | %attr(755,root,root) %{_cups_serverbin}/filter/commandtopclx | |
8e3aa2fa | 366 | %attr(755,root,root) %{_cups_serverbin}/filter/emftopdf |
2f02cc8c | 367 | %attr(755,root,root) %{_cups_serverbin}/filter/foomatic-rip |
9913be34 | 368 | %attr(755,root,root) %{_cups_serverbin}/filter/gstopdf |
960629b2 JB |
369 | %attr(755,root,root) %{_cups_serverbin}/filter/gstopxl |
370 | %attr(755,root,root) %{_cups_serverbin}/filter/gstoraster | |
371 | %attr(755,root,root) %{_cups_serverbin}/filter/imagetopdf | |
372 | %attr(755,root,root) %{_cups_serverbin}/filter/imagetops | |
373 | %attr(755,root,root) %{_cups_serverbin}/filter/imagetoraster | |
9913be34 | 374 | %attr(755,root,root) %{_cups_serverbin}/filter/mupdftoraster |
8e3aa2fa | 375 | %attr(755,root,root) %{_cups_serverbin}/filter/musicxmltobrf |
960629b2 JB |
376 | %attr(755,root,root) %{_cups_serverbin}/filter/pdftopdf |
377 | %attr(755,root,root) %{_cups_serverbin}/filter/pdftops | |
378 | %attr(755,root,root) %{_cups_serverbin}/filter/pdftoraster | |
960629b2 | 379 | %attr(755,root,root) %{_cups_serverbin}/filter/rastertoescpx |
8e3aa2fa | 380 | %attr(755,root,root) %{_cups_serverbin}/filter/rastertopclm |
960629b2 | 381 | %attr(755,root,root) %{_cups_serverbin}/filter/rastertopclx |
bf137972 | 382 | %attr(755,root,root) %{_cups_serverbin}/filter/rastertopdf |
9913be34 | 383 | %attr(755,root,root) %{_cups_serverbin}/filter/rastertops |
8e3aa2fa | 384 | %attr(755,root,root) %{_cups_serverbin}/filter/svgtopdf |
27e14967 | 385 | %attr(755,root,root) %{_cups_serverbin}/filter/sys5ippprinter |
960629b2 JB |
386 | %attr(755,root,root) %{_cups_serverbin}/filter/texttopdf |
387 | %attr(755,root,root) %{_cups_serverbin}/filter/texttops | |
9913be34 | 388 | %attr(755,root,root) %{_cups_serverbin}/filter/texttotext |
8e3aa2fa AM |
389 | %attr(755,root,root) %{_cups_serverbin}/filter/vectortobrf |
390 | %attr(755,root,root) %{_cups_serverbin}/filter/vectortopdf | |
391 | %attr(755,root,root) %{_cups_serverbin}/filter/vectortoubrl | |
392 | %attr(755,root,root) %{_cups_serverbin}/filter/wmftopdf | |
393 | %attr(755,root,root) %{_cups_serverbin}/filter/xfigtopdf | |
57845ec9 | 394 | %{_datadir}/cups/banners/* |
98eddd8d | 395 | %{_datadir}/cups/charsets |
94049a51 JB |
396 | %{_datadir}/cups/data/classified.pdf |
397 | %{_datadir}/cups/data/confidential.pdf | |
960629b2 JB |
398 | %{_datadir}/cups/data/default.pdf |
399 | %{_datadir}/cups/data/default-testpage.pdf | |
94b3ffe2 JB |
400 | %{_datadir}/cups/data/form_english.pdf |
401 | %{_datadir}/cups/data/form_english_in.odt | |
402 | %{_datadir}/cups/data/form_russian.pdf | |
403 | %{_datadir}/cups/data/form_russian_in.odt | |
94049a51 JB |
404 | %{_datadir}/cups/data/secret.pdf |
405 | %{_datadir}/cups/data/standard.pdf | |
406 | %{_datadir}/cups/data/topsecret.pdf | |
407 | %{_datadir}/cups/data/unclassified.pdf | |
2d4a03cc | 408 | %{_datadir}/cups/data/testprint |
98eddd8d | 409 | %{_datadir}/cups/drv/cupsfilters.drv |
8e3aa2fa | 410 | %{_datadir}/cups/drv/generic-ubrl.drv |
98eddd8d JR |
411 | %{_datadir}/cups/mime/cupsfilters.types |
412 | %{_datadir}/cups/mime/cupsfilters.convs | |
b04fba8b | 413 | %{_datadir}/cups/mime/cupsfilters-ghostscript.convs |
9913be34 JR |
414 | %{_datadir}/cups/mime/cupsfilters-mupdf.convs |
415 | %{_datadir}/cups/mime/cupsfilters-poppler.convs | |
960629b2 JB |
416 | # definitions for drivers; pcl.h is used by cupsfilters.drv |
417 | %{_datadir}/cups/ppdc/escp.h | |
418 | %{_datadir}/cups/ppdc/pcl.h | |
98eddd8d | 419 | %{_datadir}/ppd/cupsfilters |
ccfe97a6 | 420 | %{_mandir}/man1/driverless.1* |
2f02cc8c | 421 | %{_mandir}/man1/foomatic-rip.1* |
98eddd8d | 422 | |
49d053a5 JB |
423 | %if %{with braille} |
424 | %files braille | |
425 | %defattr(644,root,root,755) | |
426 | %attr(755,root,root) %{_cups_serverbin}/filter/brftoembosser | |
427 | %attr(755,root,root) %{_cups_serverbin}/filter/imagetobrf | |
428 | %attr(755,root,root) %{_cups_serverbin}/filter/imagetoubrl | |
429 | %attr(755,root,root) %{_cups_serverbin}/filter/imageubrltoindexv3 | |
430 | %attr(755,root,root) %{_cups_serverbin}/filter/imageubrltoindexv4 | |
431 | %attr(755,root,root) %{_cups_serverbin}/filter/textbrftoindexv3 | |
432 | %attr(755,root,root) %{_cups_serverbin}/filter/textbrftoindexv4 | |
433 | %attr(755,root,root) %{_cups_serverbin}/filter/texttobrf | |
434 | %dir %{_datadir}/cups/braille | |
435 | %attr(755,root,root) %{_datadir}/cups/braille/cups-braille.sh | |
436 | %attr(755,root,root) %{_datadir}/cups/braille/index.sh | |
437 | %attr(755,root,root) %{_datadir}/cups/braille/indexv3.sh | |
438 | %attr(755,root,root) %{_datadir}/cups/braille/indexv4.sh | |
439 | %{_datadir}/cups/drv/generic-brf.drv | |
440 | %{_datadir}/cups/drv/indexv3.drv | |
441 | %{_datadir}/cups/drv/indexv4.drv | |
442 | %{_datadir}/cups/mime/braille.convs | |
443 | %{_datadir}/cups/mime/braille.types | |
444 | %{_datadir}/cups/ppdc/braille.defs | |
445 | %{_datadir}/cups/ppdc/fr-braille.po | |
446 | %{_datadir}/cups/ppdc/imagemagick.defs | |
447 | %{_datadir}/cups/ppdc/index.defs | |
448 | %{_datadir}/cups/ppdc/liblouis.defs | |
449 | %{_datadir}/cups/ppdc/liblouis1.defs | |
450 | %{_datadir}/cups/ppdc/liblouis2.defs | |
451 | %{_datadir}/cups/ppdc/liblouis3.defs | |
452 | %{_datadir}/cups/ppdc/liblouis4.defs | |
453 | %{_datadir}/cups/ppdc/media-braille.defs | |
454 | %endif | |
455 | ||
98eddd8d JR |
456 | %files libs |
457 | %defattr(644,root,root,755) | |
eed8649d | 458 | %doc fontembed/README |
98eddd8d JR |
459 | %attr(755,root,root) %{_libdir}/libcupsfilters.so.*.*.* |
460 | %attr(755,root,root) %ghost %{_libdir}/libcupsfilters.so.1 | |
461 | %attr(755,root,root) %{_libdir}/libfontembed.so.*.*.* | |
462 | %attr(755,root,root) %ghost %{_libdir}/libfontembed.so.1 | |
463 | ||
464 | %files devel | |
465 | %defattr(644,root,root,755) | |
960629b2 JB |
466 | %attr(755,root,root) %{_libdir}/libcupsfilters.so |
467 | %attr(755,root,root) %{_libdir}/libfontembed.so | |
98eddd8d JR |
468 | %{_includedir}/cupsfilters |
469 | %{_includedir}/fontembed | |
98eddd8d JR |
470 | %{_pkgconfigdir}/libcupsfilters.pc |
471 | %{_pkgconfigdir}/libfontembed.pc | |
960629b2 JB |
472 | |
473 | %files static | |
474 | %defattr(644,root,root,755) | |
475 | %{_libdir}/libcupsfilters.a | |
476 | %{_libdir}/libfontembed.a | |
98eddd8d JR |
477 | |
478 | %files -n cups-browsed | |
479 | %defattr(644,root,root,755) | |
480 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cups/cups-browsed.conf | |
481 | %attr(755,root,root) %{_sbindir}/cups-browsed | |
960629b2 | 482 | %attr(754,root,root) /etc/rc.d/init.d/cups-browsed |
98eddd8d | 483 | %{systemdunitdir}/cups-browsed.service |
98eddd8d | 484 | %{_mandir}/man5/cups-browsed.conf.5* |
960629b2 JB |
485 | %{_mandir}/man8/cups-browsed.8* |
486 | ||
487 | %files -n cups-backend-parallel | |
488 | %defattr(644,root,root,755) | |
f10773a6 | 489 | %attr(700,root,root) %{_cups_serverbin}/backend/parallel |
b84b8132 JR |
490 | |
491 | %files -n cups-backend-serial | |
492 | %defattr(644,root,root,755) | |
f10773a6 | 493 | %attr(700,root,root) %{_cups_serverbin}/backend/serial |
b84b8132 | 494 | |
960629b2 JB |
495 | %if %{with perl} |
496 | %files -n perl-cups | |
b84b8132 | 497 | %defattr(644,root,root,755) |
960629b2 JB |
498 | %doc scripting/perl/README |
499 | %{perl_vendorarch}/CUPS.pm | |
500 | %dir %{perl_vendorarch}/auto/CUPS | |
960629b2 JB |
501 | %{perl_vendorarch}/auto/CUPS/autosplit.ix |
502 | %attr(755,root,root) %{perl_vendorarch}/auto/CUPS/CUPS.so | |
503 | %{_mandir}/man3/CUPS.3pm* | |
504 | %endif | |
505 | ||
506 | %if %{with php} | |
75fdf098 | 507 | %files -n %{php_name}-cups |
960629b2 JB |
508 | %defattr(644,root,root,755) |
509 | %doc scripting/php/README | |
960629b2 | 510 | %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/phpcups.ini |
75fdf098 | 511 | %attr(755,root,root) %{php_extensiondir}/libphpcups.so |
960629b2 | 512 | %endif |