]>
Commit | Line | Data |
---|---|---|
3540b403 | 1 | # |
7be5c8e8 | 2 | # Conditional build: |
373aff1e | 3 | %bcond_with gnutls # use GNU TLS for SSL/TLS support (instead of OpenSSL) |
cdbbf080 JR |
4 | %bcond_with dnssd # DNS Service Discovery support (obsoleted by Avahi patch) |
5 | %bcond_without avahi # DNS Service Discovery support via Avahi | |
c52ab2b7 JK |
6 | %bcond_without ldap # do not include LDAP support |
7 | %bcond_without gssapi # do not include GSSAPI support | |
84d9a886 | 8 | %bcond_without python # don't build Python support in web interface |
c52ab2b7 | 9 | %bcond_without slp # do not include SLP support |
373aff1e | 10 | %bcond_without static_libs # don't build static library |
70ba6cfc | 11 | |
d07e62b1 | 12 | %define pdir CUPS |
fb3b4f59 ER |
13 | Summary(pl.UTF-8): Ogólny system druku dla Uniksa |
14 | Summary(pt_BR.UTF-8): Sistema Unix de Impressão | |
346112e3 | 15 | Name: cups |
3e1538e5 JR |
16 | Version: 1.7.0 |
17 | Release: 0.1 | |
e73da052 | 18 | Epoch: 1 |
948a3d9c | 19 | License: LGPL v2 (libraries), GPL v2 (the rest) + openssl exception |
0366ccc3 | 20 | Group: Applications/Printing |
3e1538e5 JR |
21 | Source0: http://www.cups.org/software/%{version}/%{name}-%{version}-source.tar.bz2 |
22 | # Source0-md5: 5ab496a2ce27017fcdb3d7ec4818a75a | |
168e60c2 | 23 | Source1: %{name}.init |
fd7e4ff1 | 24 | Source2: %{name}.pamd |
fd4436b5 | 25 | Source3: %{name}.logrotate |
60e0cb5a | 26 | Source4: %{name}.mailto.conf |
84d9a886 | 27 | Source5: %{name}-lpd.inetd |
19a74fff | 28 | Source6: %{name}-modprobe.conf |
33a3fa2f | 29 | Source7: %{name}.tmpfiles |
f72ae4ea | 30 | # svn diff http://svn.easysw.com/public/cups/tags/release-1.4.3/ http://svn.easysw.com/public/cups/branches/branch-1.4/ > cups-branch.diff |
39a6b5e1 | 31 | # + drop config-scripts/cups-common.m4 change |
25dfe94f | 32 | Patch0: %{name}-config.patch |
25dfe94f | 33 | Patch2: %{name}-options.patch |
73a0798d | 34 | Patch3: %{name}-man_pages_linking.patch |
f75e41c7 | 35 | Patch4: %{name}-nostrip.patch |
efe7daa3 | 36 | Patch5: %{name}-certs_FHS.patch |
37 | Patch6: %{name}-direct_usb.patch | |
388c735f | 38 | Patch7: %{name}-no-polluted-krb5config.patch |
388c735f JR |
39 | Patch9: %{name}-verbose-compilation.patch |
40 | Patch10: %{name}-peercred.patch | |
2cd6a49c | 41 | Patch11: %{name}-usb.patch |
eea183cb | 42 | Patch12: %{name}-desktop.patch |
304fa3b3 | 43 | Patch13: %{name}-systemd-socket.patch |
ba7599c9 | 44 | Patch14: add-ipp-backend-of-cups-1.4.patch |
eac40fe0 KK |
45 | Patch15: reactivate_recommended_driver.patch |
46 | Patch16: read-embedded-options-from-incoming-postscript-and-add-to-ipp-attrs.patch | |
5d498f1c | 47 | Patch17: %{name}-use-ipp1.1.patch |
d07e62b1 | 48 | # avahi patches from fedora |
3e1538e5 JR |
49 | Patch100: %{name}-avahi-address.patch |
50 | Patch101: %{name}-avahi-no-threaded.patch | |
fb328468 | 51 | URL: http://www.cups.org/ |
daf27ba0 | 52 | BuildRequires: acl-devel |
a70a3fe3 | 53 | BuildRequires: autoconf >= 2.60 |
e73da052 | 54 | BuildRequires: automake |
d07e62b1 ER |
55 | %{?with_dnssd:BuildRequires: avahi-compat-libdns_sd-devel} |
56 | %{?with_avahi:BuildRequires: avahi-devel} | |
e809c01b | 57 | BuildRequires: dbus-devel |
ceddaf82 | 58 | BuildRequires: glibc-headers |
373aff1e | 59 | %{?with_gnutls:BuildRequires: gnutls-devel} |
cc8431ac | 60 | %{?with_gssapi:BuildRequires: heimdal-devel} |
aa509eeb | 61 | BuildRequires: libjpeg-devel |
d5391671 | 62 | BuildRequires: libpaper-devel |
30d7d426 | 63 | BuildRequires: libpng-devel |
21ee9950 | 64 | BuildRequires: libstdc++-devel |
30d7d426 | 65 | BuildRequires: libtiff-devel |
9158c4a7 | 66 | BuildRequires: libusb-devel >= 1.0 |
c52ab2b7 JK |
67 | %{?with_ldap:BuildRequires: openldap-devel} |
68 | %{?with_slp:BuildRequires: openslp-devel} | |
373aff1e | 69 | %{!?with_gnutls:BuildRequires: openssl-devel} |
8bdc526e | 70 | BuildRequires: pam-devel |
3219126a | 71 | BuildRequires: pkgconfig |
cdbbf080 | 72 | BuildRequires: rpmbuild(macros) >= 1.641 |
b65c711b | 73 | BuildRequires: systemd-devel |
9e9d05b7 | 74 | Requires(post,preun): /sbin/chkconfig |
b7adbbe1 | 75 | Requires(post,preun,postun): systemd-units >= 38 |
39956f63 | 76 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
38b89461 | 77 | Requires: cups-filters |
7d1a8fed | 78 | Requires: openssl-tools |
6bd9c7f7 | 79 | Requires: pam >= 0.77.3 |
a73a2669 | 80 | Requires: rc-scripts |
b7adbbe1 | 81 | Requires: systemd-units >= 38 |
cbfa6c41 | 82 | Suggests: ImageMagick-coder-pdf |
cc8431ac | 83 | Suggests: cups-filter-pstoraster |
60d4721a | 84 | Suggests: poppler-progs |
09af927c | 85 | Provides: printingdaemon |
3e1538e5 JR |
86 | Obsoletes: backend-parallel |
87 | Obsoletes: backend-serial | |
88 | Obsoletes: perl-cups | |
89 | Obsoletes: php-cups | |
1770fa4c | 90 | Obsoletes: printingdaemon |
a73a2669 | 91 | Conflicts: ghostscript < 7.05.4 |
9e79f779 | 92 | Conflicts: logrotate < 3.7-4 |
91331aef | 93 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
346112e3 | 94 | |
82f3f074 JK |
95 | %define _ulibdir %{_prefix}/lib |
96 | ||
fb328468 | 97 | %description |
dd843423 | 98 | CUPS provides a portable printing layer for UNIX-based operating |
8bff8fce MP |
99 | systems. It has been developed by Easy Software Products to promote a |
100 | standard printing solution for all UNIX vendors and users. CUPS | |
101 | provides the System V and Berkeley command-line interfaces. CUPS uses | |
102 | the Internet Printing Protocol ("IPP") as the basis for managing print | |
103 | jobs and queues. The Line Printer Daemon ("LPD") Server Message Block | |
104 | ("SMB"), and AppSocket (a.k.a. JetDirect) protocols are also supported | |
105 | with reduced functionality. CUPS adds network printer browsing and | |
106 | PostScript Printer Description ("PPD") based printing options to | |
107 | support real-world printing under UNIX. | |
346112e3 | 108 | |
2f78071d JR |
109 | %description -l pl.UTF-8 |
110 | CUPS dostarcza standardowy poziom drukowania dla systemów uniksowych. | |
111 | CUPS używa protokołu IPP - Internet Printint Protocol jako podstawy do | |
112 | zarządzania zadaniami i kolejkami druku. W ograniczonym zakresie | |
113 | obsługiwane są także protokoły LPD (Line Printer Daemon), SMB (Server | |
114 | Message Block) i AppSocket (znany także jako JetDirect). CUPS | |
115 | udostępnia przeglądanie drukarek sieciowych i opcje drukowania oparte | |
116 | na PPD (PostScript Printer Description) do obsługi rzeczywistych | |
bc9f5ffe | 117 | drukarek. |
30d7d426 | 118 | |
2f78071d JR |
119 | %description -l pt_BR.UTF-8 |
120 | O sistema Unix de impressão (CUPS) fornece uma camada de impressão | |
121 | portável para os sistemas operacionais baseados no UNIX®. | |
4644dd52 | 122 | |
6ebf74dd | 123 | %package lib |
fd7e4ff1 | 124 | Summary: Common Unix Printing System Libraries |
fb3b4f59 ER |
125 | Summary(pl.UTF-8): Biblioteki dla CUPS |
126 | Summary(pt_BR.UTF-8): Sistema Unix de Impressão - bibliotecas para uso em clientes cups | |
948a3d9c | 127 | License: LGPL v2 + openssl exception |
52835768 | 128 | Group: Libraries |
6ebf74dd | 129 | Provides: %{name}-libs = %{epoch}:%{version}-%{release} |
a73a2669 | 130 | Obsoletes: cups-libs |
bf6c7747 | 131 | Obsoletes: libcups1 |
fd7e4ff1 | 132 | |
6ebf74dd | 133 | %description lib |
9625f17f JB |
134 | Common Unix Printing System Libraries. |
135 | ||
2f78071d | 136 | %description lib -l pl.UTF-8 |
9625f17f | 137 | Biblioteki dla CUPS. |
fd7e4ff1 | 138 | |
2f78071d | 139 | %description lib -l pt_BR.UTF-8 |
6ebf74dd AF |
140 | Bibliotecas CUPS requeridas pelos clientes CUPS. |
141 | ||
2da56f05 SZ |
142 | %package clients |
143 | Summary: Common Unix Printing System Clients | |
fb3b4f59 | 144 | Summary(pl.UTF-8): Aplikacje klienckie dla CUPS |
948a3d9c | 145 | License: GPL v2 + openssl exception |
2da56f05 | 146 | Group: Applications/Printing |
e055e440 | 147 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
09af927c | 148 | Provides: printingclient |
1770fa4c | 149 | Obsoletes: printingclient |
2da56f05 SZ |
150 | |
151 | %description clients | |
152 | Common Unix Printing System Clients. | |
153 | ||
2f78071d | 154 | %description clients -l pl.UTF-8 |
2da56f05 SZ |
155 | Aplikacje klienckie dla CUPS. |
156 | ||
6ebf74dd AF |
157 | %package image-lib |
158 | Summary: Common Unix Printing System Libraries - images manipulation | |
fb3b4f59 ER |
159 | Summary(pl.UTF-8): Biblioteki dla CUPS - obsługa formatów graficznych |
160 | Summary(pt_BR.UTF-8): Sistema Unix de Impressão - bibliotecas para uso em clientes cups | |
948a3d9c | 161 | License: LGPL v2 + openssl exception |
52835768 | 162 | Group: Libraries |
039c735c | 163 | Requires: %{name}-lib = %{epoch}:%{version}-%{release} |
6ebf74dd AF |
164 | Obsoletes: libcups1 |
165 | ||
166 | %description image-lib | |
257636d7 | 167 | Common Unix Printing System Libraries - images manipalation. |
6ebf74dd | 168 | |
2f78071d JR |
169 | %description image-lib -l pl.UTF-8 |
170 | Biblioteki dla CUPS - obsługa formatów graficznych. | |
6ebf74dd | 171 | |
2f78071d | 172 | %description image-lib -l pt_BR.UTF-8 |
4644dd52 | 173 | Bibliotecas CUPS requeridas pelos clientes CUPS. |
174 | ||
980a97fe | 175 | %package devel |
176 | Summary: Common Unix Printing System development files | |
fb3b4f59 ER |
177 | Summary(pl.UTF-8): Ogólny system druku dla Uniksa - pliki nagłówkowe |
178 | Summary(pt_BR.UTF-8): Sistema Unix de Impressão - ambiente de desenvolvimento | |
948a3d9c | 179 | License: LGPL v2 + openssl exception |
980a97fe | 180 | Group: Development/Libraries |
cd99fdf9 JB |
181 | Requires: %{name}-image-lib = %{epoch}:%{version}-%{release} |
182 | Requires: %{name}-lib = %{epoch}:%{version}-%{release} | |
3e2caa76 | 183 | # for libcups |
950cc25f | 184 | %{?with_gnutls:Requires: gnutls-devel} |
4e95951c | 185 | %{?with_gssapi:Requires: heimdal-devel} |
950cc25f | 186 | %{!?with_gnutls:Requires: openssl-devel} |
717a8d25 | 187 | Requires: zlib-devel |
3e2caa76 JB |
188 | # for libcupsimage |
189 | Requires: libjpeg-devel | |
190 | Requires: libpng-devel | |
191 | Requires: libtiff-devel | |
bf6c7747 | 192 | Obsoletes: libcups1-devel |
980a97fe | 193 | |
194 | %description devel | |
9625f17f | 195 | Common Unix Printing System development files. |
980a97fe | 196 | |
2f78071d JR |
197 | %description devel -l pl.UTF-8 |
198 | Ogólny system druku dla Uniksa - pliki nagłówkowe. | |
8bdc526e | 199 | |
2f78071d JR |
200 | %description devel -l pt_BR.UTF-8 |
201 | Este pacote é um adicional que contem um ambiente de desenvolvimento | |
202 | para a criação de suporte a novas impressoras e novos serviços ao | |
4644dd52 | 203 | CUPS. |
204 | ||
980a97fe | 205 | %package static |
206 | Summary: Common Unix Printing System static libraries | |
fb3b4f59 ER |
207 | Summary(pl.UTF-8): Ogólny system druku dla Uniksa - biblioteki statyczne |
208 | Summary(pt_BR.UTF-8): Common Unix Printing System - bibliotecas estáticas | |
948a3d9c | 209 | License: LGPL v2 + openssl exception |
980a97fe | 210 | Group: Development/Libraries |
cd99fdf9 | 211 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
980a97fe | 212 | |
213 | %description static | |
8bdc526e | 214 | Common Unix Printing System static libraries. |
980a97fe | 215 | |
2f78071d JR |
216 | %description static -l pl.UTF-8 |
217 | Ogólny system druku dla Uniksa - biblioteki statyczne. | |
8bdc526e | 218 | |
2f78071d JR |
219 | %description static -l pt_BR.UTF-8 |
220 | Bibliotecas estáticas para desenvolvimento de programas que usam as | |
4644dd52 | 221 | bibliotecas do CUPS. |
222 | ||
25aeafb8 | 223 | %package backend-usb |
0f8ac12d | 224 | Summary: USB backend for CUPS |
fb3b4f59 | 225 | Summary(pl.UTF-8): Backend USB dla CUPS-a |
948a3d9c | 226 | License: GPL v2 + openssl exception |
0f8ac12d | 227 | Group: Applications/Printing |
cd99fdf9 | 228 | Requires: %{name} = %{epoch}:%{version}-%{release} |
0f8ac12d AF |
229 | |
230 | %description backend-usb | |
231 | This package allow CUPS printing on USB printers. | |
232 | ||
2f78071d JR |
233 | %description backend-usb -l pl.UTF-8 |
234 | Ten pakiet umożliwia drukowanie z poziomu CUPS-a na drukarkach USB. | |
71ac0ea6 | 235 | |
84d9a886 JR |
236 | %package lpd |
237 | Summary: LPD compatibility support for CUPS print server | |
238 | Summary(pl.UTF-8): Wsparcie dla LPD w serwerze wydruków CUPS | |
948a3d9c | 239 | License: GPL v2 + openssl exception |
84d9a886 | 240 | Group: Applications/Printing |
84d9a886 | 241 | Requires: %{name} = %{epoch}:%{version}-%{release} |
1770fa4c | 242 | Requires: rc-inetd |
84d9a886 JR |
243 | |
244 | %description lpd | |
245 | LPD compatibility support for CUPS print server. | |
246 | ||
247 | %description lpd -l pl.UTF-8 | |
248 | Wsparcie dla LPD w serwerze wydruków CUPS. | |
249 | ||
346112e3 | 250 | %prep |
735a5048 | 251 | %setup -q |
73a0798d | 252 | %patch0 -p1 |
25dfe94f | 253 | %patch2 -p1 |
73a0798d | 254 | %patch3 -p1 |
f75e41c7 | 255 | %patch4 -p1 |
653cdc22 | 256 | %patch5 -p1 |
d15c7d48 AM |
257 | # why it hasn't been merged for so long (and why no other distro uses it) |
258 | #%patch6 -p1 | |
388c735f | 259 | %patch7 -p1 |
84d9a886 | 260 | %patch9 -p1 |
948a3d9c | 261 | %patch10 -p1 |
d15c7d48 AM |
262 | # why it hasn't been merged for so long (and why no other distro uses it) |
263 | #%patch11 -p1 | |
eea183cb | 264 | %patch12 -p1 |
304fa3b3 | 265 | %patch13 -p1 |
ba7599c9 AM |
266 | %patch14 -p1 |
267 | %patch15 -p1 | |
268 | %patch16 -p1 | |
5d498f1c | 269 | %patch17 -p1 |
8bdc526e | 270 | |
84371ffc | 271 | %if %{with avahi} |
d07e62b1 ER |
272 | %patch100 -p1 |
273 | %patch101 -p1 | |
84371ffc | 274 | %endif |
d07e62b1 | 275 | |
346112e3 | 276 | %build |
daf27ba0 | 277 | %{__aclocal} -I config-scripts |
0b9d4622 | 278 | %{__autoconf} |
c6f4ebff | 279 | %configure \ |
82f3f074 | 280 | --libdir=%{_ulibdir} \ |
5aac26ac | 281 | --disable-cdsassl \ |
d5391671 AM |
282 | --enable-libpaper \ |
283 | --enable-libusb \ | |
284 | --enable-acl \ | |
5aac26ac | 285 | --enable-dbus \ |
d5391671 AM |
286 | --enable-image \ |
287 | --enable-bannertops \ | |
288 | --enable-texttops \ | |
8d2025a2 | 289 | --enable-shared \ |
5aac26ac KK |
290 | --enable-ssl \ |
291 | %{?debug:--enable-debug} \ | |
d07e62b1 | 292 | --%{!?with_avahi:dis}%{?with_avahi:en}able-avahi \ |
5aac26ac | 293 | --%{!?with_dnssd:dis}%{?with_dnssd:en}able-dnssd \ |
c52ab2b7 JK |
294 | --%{!?with_ldap:dis}%{?with_ldap:en}able-ldap \ |
295 | --%{!?with_gssapi:dis}%{?with_gssapi:en}able-gssapi \ | |
5aac26ac KK |
296 | --%{!?with_gnutls:dis}%{?with_gnutls:en}able-gnutls \ |
297 | --%{?with_gnutls:dis}%{!?with_gnutls:en}able-openssl \ | |
c52ab2b7 | 298 | --%{!?with_slp:dis}%{?with_slp:en}able-slp \ |
5aac26ac | 299 | %{?with_static_libs:--enable-static} \ |
ceddaf82 | 300 | --with-cups-user=lp \ |
32eff1a9 | 301 | --with-cups-group=lp \ |
ceddaf82 AM |
302 | --with-system-groups=sys \ |
303 | --with-printcap=/etc/printcap \ | |
5aac26ac | 304 | --with-dbusdir=/etc/dbus-1 \ |
373aff1e | 305 | --with-docdir=%{_ulibdir}/%{name}/cgi-bin \ |
ceddaf82 AM |
306 | --with-config-file-perm=0640 \ |
307 | --with-log-file-perm=0640 \ | |
5aac26ac | 308 | --with-optim=-Wno-format-y2k \ |
ceddaf82 AM |
309 | %{?with_dnssd:--with-dnssd-libs=x} \ |
310 | %{?with_dnssd:--with-dnssd-includes=x} \ | |
b65c711b JR |
311 | %{?with_python:--with-python=%{_bindir}/python} \ |
312 | --with-systemdsystemunitdir=%{systemdunitdir} | |
373aff1e | 313 | |
03dce67c | 314 | %{__make} %{?debug:OPTIONS="-DDEBUG"} |
7be5c8e8 | 315 | |
346112e3 | 316 | %install |
317 | rm -rf $RPM_BUILD_ROOT | |
19a74fff | 318 | install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,logrotate.d,modprobe.d,security,sysconfig/rc-inetd} \ |
428f33ff | 319 | $RPM_BUILD_ROOT/var/run/cups \ |
33a3fa2f | 320 | $RPM_BUILD_ROOT/var/log/{,archive/}cups \ |
cdbbf080 | 321 | $RPM_BUILD_ROOT{%{systemdunitdir},%{systemdtmpfilesdir}} |
fd7e4ff1 | 322 | |
6133c494 | 323 | %{__make} install \ |
e827011a AM |
324 | BUILDROOT=$RPM_BUILD_ROOT \ |
325 | CUPS_USER=$(id -u) \ | |
326 | CUPS_GROUP=$(id -g) | |
fd7e4ff1 | 327 | |
82f3f074 JK |
328 | if [ "%{_lib}" != "lib" ] ; then |
329 | install -d $RPM_BUILD_ROOT%{_libdir} | |
330 | mv $RPM_BUILD_ROOT%{_ulibdir}/*.so* $RPM_BUILD_ROOT%{_libdir} | |
8a37ac1d | 331 | %if %{with static_libs} |
e3bfc8b9 | 332 | mv $RPM_BUILD_ROOT%{_ulibdir}/*.a $RPM_BUILD_ROOT%{_libdir} |
8a37ac1d | 333 | %endif |
82f3f074 JK |
334 | fi |
335 | ||
bf51f358 JR |
336 | %if %{with avahi} |
337 | ln -s %{_ulibdir}/cups/backend/dnssd $RPM_BUILD_ROOT%{_ulibdir}/cups/backend/mdns | |
338 | %endif | |
339 | ||
33a3fa2f JR |
340 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} |
341 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/%{name} | |
342 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/%{name} | |
1770fa4c | 343 | install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/cups/mailto.conf |
84d9a886 | 344 | sed -e 's|__ULIBDIR__|%{_ulibdir}|g' %{SOURCE5} > $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/cups-lpd |
33a3fa2f | 345 | install %{SOURCE6} $RPM_BUILD_ROOT/etc/modprobe.d/cups.conf |
cdbbf080 | 346 | install %{SOURCE7} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf |
45a67ab9 | 347 | |
4d897458 | 348 | touch $RPM_BUILD_ROOT/var/log/cups/{access_log,error_log,page_log} |
cad7b106 | 349 | touch $RPM_BUILD_ROOT/etc/security/blacklist.cups |
8d2025a2 | 350 | touch $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/{classes,printers,client}.conf |
679be76f | 351 | |
ef5fe709 ER |
352 | # windows drivers can be put there. |
353 | install -d $RPM_BUILD_ROOT%{_datadir}/cups/drivers | |
354 | ||
748a0bf9 ER |
355 | # dirs for gimp-print-cups-4.2.7-1 |
356 | install -d $RPM_BUILD_ROOT%{_datadir}/cups/model/{C,da,en_GB,fr,nb,pl,sv} | |
357 | ||
daf27ba0 | 358 | touch $RPM_BUILD_ROOT/var/cache/cups/help.index |
6139e54a | 359 | touch $RPM_BUILD_ROOT/var/cache/cups/{job,remote}.cache |
68e5a032 | 360 | touch $RPM_BUILD_ROOT/var/cache/cups/ppds.dat |
748a0bf9 | 361 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/cups/ssl |
ef5fe709 | 362 | |
eea94f34 | 363 | # links to enable/disable (compatibility!) |
748a0bf9 ER |
364 | ln -s accept $RPM_BUILD_ROOT%{_sbindir}/enable |
365 | ln -s accept $RPM_BUILD_ROOT%{_sbindir}/disable | |
eea94f34 | 366 | |
2e2308c6 | 367 | # check-files cleanup |
3e1538e5 | 368 | %{__rm} -r $RPM_BUILD_ROOT/etc/{init.d,rc?.d} |
679be76f | 369 | |
38b89461 JR |
370 | # shipped in cups-filters |
371 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/cups/banners | |
372 | ||
9625f17f JB |
373 | %clean |
374 | rm -rf $RPM_BUILD_ROOT | |
375 | ||
168e60c2 | 376 | %post |
8a24ec7f | 377 | /sbin/chkconfig --add cups |
a73a2669 | 378 | %service cups restart "cups daemon" |
8b6d67b6 | 379 | /sbin/rmmod usblp > /dev/null 2>&1 || : |
304fa3b3 | 380 | %systemd_post cups.service cups.socket cups.path |
fb328468 | 381 | |
168e60c2 | 382 | %preun |
fd7e4ff1 | 383 | if [ "$1" = "0" ]; then |
a73a2669 | 384 | %service cups stop |
fd7e4ff1 | 385 | /sbin/chkconfig --del cups |
386 | fi | |
304fa3b3 | 387 | %systemd_preun cups.service cups.socket cups.path |
cdbbf080 JR |
388 | |
389 | %postun | |
390 | %systemd_reload | |
391 | ||
392 | %triggerpostun -- cups < 1.5.2-1 | |
304fa3b3 | 393 | %systemd_trigger cups.service cups.socket cups.path |
168e60c2 | 394 | |
19e8d1ed | 395 | %post lib -p /sbin/ldconfig |
396 | %postun lib -p /sbin/ldconfig | |
397 | %post image-lib -p /sbin/ldconfig | |
398 | %postun image-lib -p /sbin/ldconfig | |
8bdc526e | 399 | |
84d9a886 JR |
400 | %post lpd |
401 | %service -q rc-inetd reload | |
402 | ||
403 | %postun lpd | |
404 | if [ "$1" = 0 ]; then | |
405 | %service -q rc-inetd reload | |
406 | fi | |
407 | ||
fd7e4ff1 | 408 | %files |
346112e3 | 409 | %defattr(644,root,root,755) |
4c209b1f | 410 | %doc *.txt |
39956f63 | 411 | %attr(640,root,root) %config %verify(not md5 mtime size) /etc/pam.d/* |
8bdc526e | 412 | %attr(754,root,root) /etc/rc.d/init.d/cups |
e809c01b | 413 | /etc/dbus-1/system.d/cups.conf |
19a74fff | 414 | /etc/modprobe.d/cups.conf |
cdbbf080 | 415 | %{systemdunitdir}/cups.service |
b65c711b JR |
416 | %{systemdunitdir}/cups.socket |
417 | %{systemdunitdir}/cups.path | |
cdbbf080 | 418 | %{systemdtmpfilesdir}/%{name}.conf |
6139e54a | 419 | %attr(600,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/classes.conf |
885cd154 | 420 | %attr(640,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/cups-files.conf |
39956f63 | 421 | %attr(640,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/cupsd.conf |
3e1538e5 | 422 | %attr(640,root,lp) %{_sysconfdir}/%{name}/cupsd.conf.default |
daf27ba0 | 423 | %attr(600,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/printers.conf |
60e0cb5a | 424 | %attr(600,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/mailto.conf |
3cb197ff | 425 | %attr(600,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/snmp.conf |
cd29fb20 | 426 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.cups |
4017839a | 427 | %dir %attr(700,root,lp) %{_sysconfdir}/%{name}/ssl |
934a05d8 | 428 | %dir %{_sysconfdir}/%{name}/interfaces |
6139e54a | 429 | %dir %attr(755,root,lp) %{_sysconfdir}/%{name}/ppd |
39956f63 | 430 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name} |
fd7e4ff1 | 431 | %attr(4755,lp,root) %{_bindir}/lppasswd |
3ddab923 | 432 | %attr(755,root,root) %{_bindir}/cupstestppd |
e809c01b | 433 | %attr(755,root,root) %{_bindir}/cupstestdsc |
25802dee | 434 | %attr(755,root,root) %{_bindir}/ppd* |
ceddaf82 | 435 | %attr(755,root,root) %{_sbindir}/cupsctl |
daf27ba0 | 436 | %attr(755,root,root) %{_sbindir}/cupsd |
ceddaf82 | 437 | %attr(755,root,root) %{_sbindir}/cupsfilter |
daf27ba0 | 438 | |
82f3f074 JK |
439 | %dir %{_ulibdir}/cups |
440 | %dir %{_ulibdir}/cups/* | |
daf27ba0 KK |
441 | %{_ulibdir}/cups/cgi-bin/help |
442 | %{_ulibdir}/cups/cgi-bin/images | |
443 | %attr(755,root,root) %{_ulibdir}/cups/cgi-bin/*.cgi | |
444 | %{_ulibdir}/cups/cgi-bin/*.css | |
445 | %{_ulibdir}/cups/cgi-bin/*.html | |
daf27ba0 | 446 | %{_ulibdir}/cups/cgi-bin/*.txt |
3e1538e5 JR |
447 | %lang(ca) %{_ulibdir}/cups/cgi-bin/ca |
448 | %lang(cs) %{_ulibdir}/cups/cgi-bin/cs | |
daf27ba0 | 449 | %lang(es) %{_ulibdir}/cups/cgi-bin/es |
cdbbf080 | 450 | %lang(fr) %{_ulibdir}/cups/cgi-bin/fr |
f72ae4ea | 451 | %lang(it) %{_ulibdir}/cups/cgi-bin/it |
daf27ba0 | 452 | %lang(ja) %{_ulibdir}/cups/cgi-bin/ja |
afacd72e | 453 | %lang(ru) %{_ulibdir}/cups/cgi-bin/ru |
daf27ba0 | 454 | |
bf51f358 JR |
455 | %if %{with avahi} |
456 | %attr(755,root,root) %{_ulibdir}/cups/backend/dnssd | |
457 | %attr(755,root,root) %{_ulibdir}/cups/backend/mdns | |
458 | %endif | |
ea79d226 ER |
459 | %attr(755,root,root) %{_ulibdir}/cups/backend/http |
460 | %attr(755,root,root) %{_ulibdir}/cups/backend/https | |
461 | %attr(755,root,root) %{_ulibdir}/cups/backend/ipp | |
ba7599c9 | 462 | %attr(755,root,root) %{_ulibdir}/cups/backend/ipp14 |
ea79d226 ER |
463 | %attr(755,root,root) %{_ulibdir}/cups/backend/ipps |
464 | %attr(755,root,root) %{_ulibdir}/cups/backend/lpd | |
465 | %attr(755,root,root) %{_ulibdir}/cups/backend/snmp | |
466 | %attr(755,root,root) %{_ulibdir}/cups/backend/socket | |
84d9a886 JR |
467 | %attr(755,root,root) %{_ulibdir}/cups/daemon/cups-deviced |
468 | %attr(755,root,root) %{_ulibdir}/cups/daemon/cups-driverd | |
d15c7d48 | 469 | %attr(755,root,root) %{_ulibdir}/cups/daemon/cups-exec |
daf27ba0 KK |
470 | %attr(755,root,root) %{_ulibdir}/cups/filter/* |
471 | %attr(755,root,root) %{_ulibdir}/cups/monitor/* | |
472 | %attr(755,root,root) %{_ulibdir}/cups/notifier/* | |
473 | ||
54906e64 | 474 | %{_datadir}/cups/data |
6139e54a | 475 | %{_datadir}/cups/drivers |
25802dee AM |
476 | %{_datadir}/cups/drv |
477 | %{_datadir}/cups/examples | |
25802dee | 478 | %{_datadir}/cups/mime |
748a0bf9 | 479 | %dir %{_datadir}/cups/model |
748a0bf9 ER |
480 | # dirs for gimp-print-cups-4.2.7-1 |
481 | %dir %{_datadir}/cups/model/C | |
482 | %lang(da) %dir %{_datadir}/cups/model/da | |
483 | %lang(en_GB) %dir %{_datadir}/cups/model/en_GB | |
484 | %lang(fr) %dir %{_datadir}/cups/model/fr | |
485 | %lang(nb) %dir %{_datadir}/cups/model/nb | |
486 | %lang(pl) %dir %{_datadir}/cups/model/pl | |
487 | %lang(sv) %dir %{_datadir}/cups/model/sv | |
488 | ||
25802dee AM |
489 | %{_datadir}/cups/ppdc |
490 | ||
54906e64 ER |
491 | %dir %{_datadir}/cups/templates |
492 | %{_datadir}/cups/templates/*.tmpl | |
3e1538e5 JR |
493 | %lang(ca) %{_datadir}/cups/templates/ca |
494 | %lang(cs) %{_datadir}/cups/templates/cs | |
54906e64 | 495 | %lang(es) %{_datadir}/cups/templates/es |
cdbbf080 | 496 | %lang(fr) %{_datadir}/cups/templates/fr |
f72ae4ea | 497 | %lang(it) %{_datadir}/cups/templates/it |
54906e64 | 498 | %lang(ja) %{_datadir}/cups/templates/ja |
afacd72e | 499 | %lang(ru) %{_datadir}/cups/templates/ru |
c1555e94 | 500 | %{_mandir}/man1/cupstestppd.1* |
e809c01b | 501 | %{_mandir}/man1/cupstestdsc.1* |
0366ccc3 | 502 | %{_mandir}/man1/lppasswd.1* |
25802dee | 503 | %{_mandir}/man1/ppd*.1* |
4e75f969 JB |
504 | %{_mandir}/man7/backend.7* |
505 | %{_mandir}/man7/filter.7* | |
25802dee | 506 | %{_mandir}/man7/notifier.7* |
84d9a886 JR |
507 | %{_mandir}/man5/* |
508 | %{_mandir}/man8/accept.8* | |
509 | %{_mandir}/man8/cups-deviced.8* | |
510 | %{_mandir}/man8/cups-driverd.8* | |
885cd154 | 511 | %{_mandir}/man8/cups-snmp.8* |
84d9a886 JR |
512 | %{_mandir}/man8/cupsaddsmb.8* |
513 | %{_mandir}/man8/cupsctl.8* | |
514 | %{_mandir}/man8/cupsd.8* | |
515 | %{_mandir}/man8/cupsenable.8* | |
516 | %{_mandir}/man8/cupsfilter.8* | |
517 | %{_mandir}/man8/lp* | |
daf27ba0 KK |
518 | |
519 | %dir %attr(775,root,lp) /var/cache/cups | |
428f33ff KK |
520 | %dir %attr(755,root,lp) /var/lib/cups |
521 | %dir %attr(511,lp,sys) /var/lib/cups/certs | |
6139e54a | 522 | %dir %attr(755,root,lp) /var/run/cups |
daf27ba0 KK |
523 | %dir %attr(710,root,lp) /var/spool/cups |
524 | %dir %attr(1770,root,lp) /var/spool/cups/tmp | |
68e5a032 | 525 | %attr(600,lp,lp) %ghost /var/cache/cups/help.index |
6139e54a | 526 | %attr(640,root,lp) %ghost /var/cache/cups/job.cache |
68e5a032 | 527 | %attr(600,lp,lp) %ghost /var/cache/cups/ppds.dat |
6139e54a | 528 | %attr(640,root,lp) %ghost /var/cache/cups/remote.cache |
081a50cb | 529 | %attr(750,root,logs) %dir /var/log/archive/cups |
40183055 JK |
530 | %attr(750,root,logs) %dir /var/log/cups |
531 | %attr(640,root,logs) %ghost /var/log/cups/access_log | |
532 | %attr(640,root,logs) %ghost /var/log/cups/error_log | |
533 | %attr(640,root,logs) %ghost /var/log/cups/page_log | |
980a97fe | 534 | |
6ebf74dd AF |
535 | %files lib |
536 | %defattr(644,root,root,755) | |
3c247a25 | 537 | %dir %attr(755,root,lp) %{_sysconfdir}/%{name} |
6ebf74dd | 538 | %attr(755,root,root) %{_libdir}/libcups.so.* |
25802dee | 539 | %attr(755,root,root) %{_libdir}/libcupscgi.so.* |
25802dee AM |
540 | %attr(755,root,root) %{_libdir}/libcupsmime.so.* |
541 | %attr(755,root,root) %{_libdir}/libcupsppdc.so.* | |
a57fa410 | 542 | %dir %{_datadir}/cups |
3e1538e5 JR |
543 | %lang(ca) %{_datadir}/locale/ca/cups_ca.po |
544 | %lang(cs) %{_datadir}/locale/cs/cups_cs.po | |
a57fa410 | 545 | %lang(es) %{_datadir}/locale/es/cups_es.po |
a57fa410 | 546 | %lang(fr) %{_datadir}/locale/fr/cups_fr.po |
a57fa410 | 547 | %lang(it) %{_datadir}/locale/it/cups_it.po |
a57fa410 | 548 | %lang(ja) %{_datadir}/locale/ja/cups_ja.po |
a57fa410 | 549 | %lang(ru) %{_datadir}/locale/ru/cups_ru.po |
6ebf74dd | 550 | |
2da56f05 SZ |
551 | %files clients |
552 | %defattr(644,root,root,755) | |
8d2025a2 | 553 | %attr(644,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/client.conf |
2da56f05 | 554 | %attr(755,root,root) %{_bindir}/cancel |
885cd154 | 555 | %attr(755,root,root) %{_bindir}/ippfind |
d15c7d48 | 556 | %attr(755,root,root) %{_bindir}/ipptool |
2da56f05 SZ |
557 | %attr(755,root,root) %{_bindir}/lp |
558 | %attr(755,root,root) %{_bindir}/lpoptions | |
559 | %attr(755,root,root) %{_bindir}/lpq | |
560 | %attr(755,root,root) %{_bindir}/lpr | |
561 | %attr(755,root,root) %{_bindir}/lprm | |
562 | %attr(755,root,root) %{_bindir}/lpstat | |
501ef07e | 563 | %attr(755,root,root) %{_sbindir}/accept |
25802dee | 564 | %attr(755,root,root) %{_sbindir}/cupsaccept |
501ef07e | 565 | %attr(755,root,root) %{_sbindir}/cupsaddsmb |
eea94f34 | 566 | %attr(755,root,root) %{_sbindir}/cupsenable |
567 | %attr(755,root,root) %{_sbindir}/cupsdisable | |
25802dee | 568 | %attr(755,root,root) %{_sbindir}/cupsreject |
eea94f34 | 569 | %attr(755,root,root) %{_sbindir}/disable |
570 | %attr(755,root,root) %{_sbindir}/enable | |
501ef07e AM |
571 | %attr(755,root,root) %{_sbindir}/lpadmin |
572 | %attr(755,root,root) %{_sbindir}/lpc | |
573 | %attr(755,root,root) %{_sbindir}/lpinfo | |
574 | %attr(755,root,root) %{_sbindir}/lpmove | |
575 | %attr(755,root,root) %{_sbindir}/reject | |
d15c7d48 | 576 | %{_datadir}/cups/ipptool |
1770fa4c ER |
577 | %{_desktopdir}/cups.desktop |
578 | %{_iconsdir}/hicolor/*/apps/cups.png | |
93040bdf | 579 | %{_mandir}/man1/cancel.1* |
885cd154 | 580 | %{_mandir}/man1/ippfind.1* |
d15c7d48 | 581 | %{_mandir}/man1/ipptool.1* |
0366ccc3 AF |
582 | %{_mandir}/man1/lp.1* |
583 | %{_mandir}/man1/lpoptions.1* | |
584 | %{_mandir}/man1/lpq.1* | |
585 | %{_mandir}/man1/lpr.1* | |
586 | %{_mandir}/man1/lprm.1* | |
587 | %{_mandir}/man1/lpstat.1* | |
25802dee AM |
588 | %{_mandir}/man8/cupsaccept.8* |
589 | %{_mandir}/man8/cupsdisable.8* | |
590 | %{_mandir}/man8/cupsreject.8* | |
591 | %{_mandir}/man8/reject.8* | |
2da56f05 | 592 | |
6ebf74dd | 593 | %files image-lib |
fd7e4ff1 | 594 | %defattr(644,root,root,755) |
6ebf74dd | 595 | %attr(755,root,root) %{_libdir}/libcupsimage.so.* |
fd7e4ff1 | 596 | |
980a97fe | 597 | %files devel |
598 | %defattr(644,root,root,755) | |
6e2c2519 | 599 | %attr(755,root,root) %{_bindir}/cups-config |
4e75f969 | 600 | %attr(755,root,root) %{_libdir}/libcups.so |
25802dee | 601 | %attr(755,root,root) %{_libdir}/libcupscgi.so |
4e75f969 | 602 | %attr(755,root,root) %{_libdir}/libcupsimage.so |
25802dee AM |
603 | %attr(755,root,root) %{_libdir}/libcupsmime.so |
604 | %attr(755,root,root) %{_libdir}/libcupsppdc.so | |
980a97fe | 605 | %{_includedir}/cups |
4e75f969 | 606 | %{_mandir}/man1/cups-config.1* |
980a97fe | 607 | |
373aff1e | 608 | %if %{with static_libs} |
8d2025a2 AM |
609 | %files static |
610 | %defattr(644,root,root,755) | |
4e75f969 | 611 | %{_libdir}/libcups.a |
25802dee | 612 | %{_libdir}/libcupscgi.a |
4e75f969 | 613 | %{_libdir}/libcupsimage.a |
25802dee AM |
614 | %{_libdir}/libcupsmime.a |
615 | %{_libdir}/libcupsppdc.a | |
373aff1e | 616 | %endif |
2e2308c6 | 617 | |
0f8ac12d AF |
618 | %files backend-usb |
619 | %defattr(644,root,root,755) | |
82f3f074 | 620 | %attr(755,root,root) %{_ulibdir}/cups/backend/usb |
885cd154 JR |
621 | %dir %{_datadir}/cups/usb |
622 | %{_datadir}/cups/usb/org.cups.usb-quirks | |
0f8ac12d | 623 | |
84d9a886 JR |
624 | %files lpd |
625 | %defattr(644,root,root,755) | |
626 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/* | |
627 | %attr(755,root,root) %{_ulibdir}/cups/daemon/cups-lpd | |
628 | %{_mandir}/man8/cups-lpd.8* |