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