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