-# TODO:
-# - build/install java ext ?
-# - perl BRs
-# - remove obsolete /etc/cups/certs (trigger?)
#
# Conditional build:
%bcond_with gnutls # use GNU TLS for SSL/TLS support (instead of OpenSSL)
-%bcond_without php # don't build PHP extension
-%bcond_without perl # don't build Perl extension
+%bcond_without dnssd
+%bcond_without php # don't build PHP extension/support in web interface
+%bcond_without perl # don't build Perl extension/support in web interface
+%bcond_without java # don't build Java extension/support in web interface
+%bcond_without python # don't build Python support in web interface
%bcond_without static_libs # don't build static library
#
%include /usr/lib/rpm/macros.perl
+%include /usr/lib/rpm/macros.java
%define pdir CUPS
+
+%ifarch i386 i486 ppc
+%undefine with_java
+%endif
+
Summary: Common Unix Printing System
-Summary(pl): Ogólny system druku dla Uniksa
-Summary(pt_BR): Sistema Unix de Impressão
+Summary(pl.UTF-8): Ogólny system druku dla Uniksa
+Summary(pt_BR.UTF-8): Sistema Unix de Impressão
Name: cups
-Version: 1.2.5
+Version: 1.3.9
Release: 1
Epoch: 1
-License: GPL/LGPL
+License: LGPL v2 (libraries), GPL v2 (the rest) + openssl exception
Group: Applications/Printing
Source0: http://ftp.easysw.com/pub/cups/%{version}/%{name}-%{version}-source.tar.bz2
-# Source0-md5: 3e5d2c127890fd3ed97e2249c278b6e8
+# Source0-md5: cf63f451c356e6cabb08972d4d11c365
Source1: %{name}.init
Source2: %{name}.pamd
Source3: %{name}.logrotate
+Source4: %{name}.mailto.conf
+Source5: %{name}-lpd.inetd
Patch0: %{name}-config.patch
Patch1: %{name}-lp-lpr.patch
Patch2: %{name}-options.patch
Patch3: %{name}-man_pages_linking.patch
Patch4: %{name}-nostrip.patch
-Patch5: %{name}-templates_pl.patch
+Patch5: %{name}-certs_FHS.patch
+Patch6: %{name}-direct_usb.patch
+Patch7: %{name}-no-polluted-krb5config.patch
+Patch8: %{name}-java-fix.patch
+Patch9: %{name}-verbose-compilation.patch
+Patch10: %{name}-peercred.patch
+Patch11: %{name}-translate.patch
URL: http://www.cups.org/
+# http://www.cups.org/str.php?L2974
+# Upgrade to 1.3.10 or patch: http://www.cups.org/strfiles/2974/str2974.patch
+BuildRequires: security(CVE-2008-5286)
BuildRequires: acl-devel
BuildRequires: autoconf
BuildRequires: automake
+%{?with_dnssd:BuildRequires: avahi-compat-libdns_sd-devel}
BuildRequires: dbus-devel
+BuildRequires: glibc-headers
%{?with_gnutls:BuildRequires: gnutls-devel}
+%{?with_java:BuildRequires: jar}
+%{?with_java:BuildRequires: jdk}
+%{?with_java:BuildRequires: jpackage-utils}
+BuildRequires: krb5-devel
BuildRequires: libjpeg-devel
BuildRequires: libpng-devel
BuildRequires: libstdc++-devel
BuildRequires: pam-devel
%{?with_php:BuildRequires: php-devel >= 4:5.0.0}
BuildRequires: pkgconfig
+%{?with_java:BuildRequires: rpm-javaprov}
BuildRequires: rpm-perlprov
-BuildRequires: rpmbuild(macros) >= 1.268
+BuildRequires: rpmbuild(macros) >= 1.344
Requires(post,preun): /sbin/chkconfig
Requires: %{name}-libs = %{epoch}:%{version}-%{release}
+Requires: openssl-tools
Requires: pam >= 0.77.3
Requires: rc-scripts
-Obsoletes: LPRng
-Obsoletes: lpr
+Provides: printingdaemon
+Obsoletes: printingdaemon
Conflicts: ghostscript < 7.05.4
+Conflicts: logrotate < 3.7-4
+# pstoraster:
+Suggests: cups-filter-pstoraster
+# Contains imagetops...:
+Suggests: kdelibs
+# pdftops:
+Suggests: poppler-progs
+# pstops:
+Suggests: psutils
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _ulibdir %{_prefix}/lib
-%if %{with php}
-%define _php_configdir /etc/php
-%define _php_extensiondir %(php-config --extension-dir)
-%endif
-
%description
CUPS provides a portable printing layer for UNIX-based operating
systems. It has been developed by Easy Software Products to promote a
PostScript Printer Description ("PPD") based printing options to
support real-world printing under UNIX.
-%description -l pl
-CUPS dostarcza standardowy poziom drukowania dla systemów uniksowych.
-CUPS u¿ywa protoko³u IPP - Internet Printint Protocol jako podstawy do
-zarz±dzania zadaniami i kolejkami druku. W ograniczonym zakresie
-obs³ugiwane s± tak¿e protoko³y LPD (Line Printer Daemon), SMB (Server
-Message Block) i AppSocket (znany tak¿e jako JetDirect). CUPS
-udostêpnia przegl±danie drukarek sieciowych i opcje drukowania oparte
-na PPD (PostScript Printer Description) do obs³ugi rzeczywistych
+%description -l pl.UTF-8
+CUPS dostarcza standardowy poziom drukowania dla systemów uniksowych.
+CUPS używa protokołu IPP - Internet Printint Protocol jako podstawy do
+zarządzania zadaniami i kolejkami druku. W ograniczonym zakresie
+obsługiwane są także protokoły LPD (Line Printer Daemon), SMB (Server
+Message Block) i AppSocket (znany także jako JetDirect). CUPS
+udostępnia przeglądanie drukarek sieciowych i opcje drukowania oparte
+na PPD (PostScript Printer Description) do obsługi rzeczywistych
drukarek.
-%description -l pt_BR
-O sistema Unix de impressão (CUPS) fornece uma camada de impressão
-portável para os sistemas operacionais baseados no UNIX®.
+%description -l pt_BR.UTF-8
+O sistema Unix de impressão (CUPS) fornece uma camada de impressão
+portável para os sistemas operacionais baseados no UNIX®.
%package lib
Summary: Common Unix Printing System Libraries
-Summary(pl): Biblioteki dla CUPS
-Summary(pt_BR): Sistema Unix de Impressão - bibliotecas para uso em clientes cups
+Summary(pl.UTF-8): Biblioteki dla CUPS
+Summary(pt_BR.UTF-8): Sistema Unix de Impressão - bibliotecas para uso em clientes cups
+License: LGPL v2 + openssl exception
Group: Libraries
Provides: %{name}-libs = %{epoch}:%{version}-%{release}
Obsoletes: cups-libs
%description lib
Common Unix Printing System Libraries.
-%description lib -l pl
+%description lib -l pl.UTF-8
Biblioteki dla CUPS.
-%description lib -l pt_BR
+%description lib -l pt_BR.UTF-8
Bibliotecas CUPS requeridas pelos clientes CUPS.
%package clients
Summary: Common Unix Printing System Clients
-Summary(pl): Aplikacje klienckie dla CUPS
+Summary(pl.UTF-8): Aplikacje klienckie dla CUPS
+License: GPL v2 + openssl exception
Group: Applications/Printing
Requires: %{name}-libs = %{epoch}:%{version}-%{release}
-Conflicts: LPRng
+Provides: printingclient
+Obsoletes: printingclient
%description clients
Common Unix Printing System Clients.
-%description clients -l pl
+%description clients -l pl.UTF-8
Aplikacje klienckie dla CUPS.
%package image-lib
Summary: Common Unix Printing System Libraries - images manipulation
-Summary(pl): Biblioteki dla CUPS - obs³uga formatów graficznych
-Summary(pt_BR): Sistema Unix de Impressão - bibliotecas para uso em clientes cups
+Summary(pl.UTF-8): Biblioteki dla CUPS - obsługa formatów graficznych
+Summary(pt_BR.UTF-8): Sistema Unix de Impressão - bibliotecas para uso em clientes cups
+License: LGPL v2 + openssl exception
Group: Libraries
Requires: %{name}-lib = %{epoch}:%{version}-%{release}
Obsoletes: libcups1
%description image-lib
-Common Unix Printing System Libraries - images manupalation.
+Common Unix Printing System Libraries - images manipalation.
-%description image-lib -l pl
-Biblioteki dla CUPS - obs³uga formatów graficznych.
+%description image-lib -l pl.UTF-8
+Biblioteki dla CUPS - obsługa formatów graficznych.
-%description image-lib -l pt_BR
+%description image-lib -l pt_BR.UTF-8
Bibliotecas CUPS requeridas pelos clientes CUPS.
%package devel
Summary: Common Unix Printing System development files
-Summary(pl): Ogólny system druku dla Uniksa - pliki nag³ówkowe
-Summary(pt_BR): Sistema Unix de Impressão - ambiente de desenvolvimento
+Summary(pl.UTF-8): Ogólny system druku dla Uniksa - pliki nagłówkowe
+Summary(pt_BR.UTF-8): Sistema Unix de Impressão - ambiente de desenvolvimento
+License: LGPL v2 + openssl exception
Group: Development/Libraries
Requires: %{name}-image-lib = %{epoch}:%{version}-%{release}
Requires: %{name}-lib = %{epoch}:%{version}-%{release}
+# for libcups
%{?with_gnutls:Requires: gnutls-devel}
+Requires: krb5-devel
%{!?with_gnutls:Requires: openssl-devel}
+Requires: zlib-devel
+# for libcupsimage
+Requires: libjpeg-devel
+Requires: libpng-devel
+Requires: libtiff-devel
Obsoletes: libcups1-devel
%description devel
Common Unix Printing System development files.
-%description devel -l pl
-Ogólny system druku dla Uniksa - pliki nag³ówkowe.
+%description devel -l pl.UTF-8
+Ogólny system druku dla Uniksa - pliki nagłówkowe.
-%description devel -l pt_BR
-Este pacote é um adicional que contem um ambiente de desenvolvimento
-para a criação de suporte a novas impressoras e novos serviços ao
+%description devel -l pt_BR.UTF-8
+Este pacote é um adicional que contem um ambiente de desenvolvimento
+para a criação de suporte a novas impressoras e novos serviços ao
CUPS.
%package static
Summary: Common Unix Printing System static libraries
-Summary(pl): Ogólny system druku dla Uniksa - biblioteki statyczne
-Summary(pt_BR): Common Unix Printing System - bibliotecas estáticas
+Summary(pl.UTF-8): Ogólny system druku dla Uniksa - biblioteki statyczne
+Summary(pt_BR.UTF-8): Common Unix Printing System - bibliotecas estáticas
+License: LGPL v2 + openssl exception
Group: Development/Libraries
Requires: %{name}-devel = %{epoch}:%{version}-%{release}
%description static
Common Unix Printing System static libraries.
-%description static -l pl
-Ogólny system druku dla Uniksa - biblioteki statyczne.
+%description static -l pl.UTF-8
+Ogólny system druku dla Uniksa - biblioteki statyczne.
-%description static -l pt_BR
-Bibliotecas estáticas para desenvolvimento de programas que usam as
+%description static -l pt_BR.UTF-8
+Bibliotecas estáticas para desenvolvimento de programas que usam as
bibliotecas do CUPS.
%package -n perl-cups
Summary: Perl module for CUPS
-Summary(pl): Modu³ Perla CUPS
+Summary(pl.UTF-8): Moduł Perla CUPS
+License: GPL v2 + openssl exception
Group: Development/Languages/Perl
Requires: %{name}-lib = %{epoch}:%{version}-%{release}
%description -n perl-cups
Perl module for Common Unix Printing System.
-%description -n perl-cups -l pl
-Modu³ Perla do ogólnego systemu druku dla Uniksa.
+%description -n perl-cups -l pl.UTF-8
+Moduł Perla do ogólnego systemu druku dla Uniksa.
%package -n php-cups
Summary: PHP module for CUPS
-Summary(pl): Modu³ PHP CUPS
+Summary(pl.UTF-8): Moduł PHP CUPS
+License: GPL v2 + openssl exception
Group: Development/Languages/PHP
Requires: %{name}-lib = %{epoch}:%{version}-%{release}
+%{?requires_php_extension}
+Requires: /etc/php/conf.d
Requires: php-common >= 4:5.0.0
%description -n php-cups
PHP module for Common Unix Printing System.
-%description -n php-cups -l pl
-Modu³ PHP do ogólnego systemu druku dla Uniksa.
+%description -n php-cups -l pl.UTF-8
+Moduł PHP do ogólnego systemu druku dla Uniksa.
+
+%package -n java-cups
+Summary: CUPS java classes
+Summary(pl.UTF-8): Klasy javy CUPS
+License: GPL v2 + openssl exception
+Group: Development/Languages/Java
+Requires: jpackage-utils
+
+%description -n java-cups
+Common Unix Printing System Java classes.
+
+%description -n java-cups -l pl.UTF-8
+Klasy javy do ogólnego systemu druku dla Uniksa.
+
+%package -n java-cups-javadoc
+Summary: Online manual for %{name}
+Summary(pl.UTF-8): Dokumentacja online do %{name}
+License: GPL v2 + openssl exception
+Group: Documentation
+Requires: jpackage-utils
+
+%description -n java-cups-javadoc
+Documentation for %{name}.
+
+%description -n java-cups-javadoc -l pl.UTF-8
+Dokumentacja do %{name}.
+
+%description -n java-cups-javadoc -l fr.UTF-8
+Javadoc pour %{name}.
%package backend-usb
Summary: USB backend for CUPS
-Summary(pl): Backend USB dla CUPS-a
+Summary(pl.UTF-8): Backend USB dla CUPS-a
+License: GPL v2 + openssl exception
Group: Applications/Printing
Requires: %{name} = %{epoch}:%{version}-%{release}
%description backend-usb
This package allow CUPS printing on USB printers.
-%description backend-usb -l pl
-Ten pakiet umo¿liwia drukowanie z poziomu CUPS-a na drukarkach USB.
+%description backend-usb -l pl.UTF-8
+Ten pakiet umożliwia drukowanie z poziomu CUPS-a na drukarkach USB.
%package backend-serial
Summary: Serial port backend for CUPS
-Summary(pl): Backend obs³uguj±cy porty szeregowe dla CUPS-a
+Summary(pl.UTF-8): Backend obsługujący porty szeregowe dla CUPS-a
+License: GPL v2 + openssl exception
Group: Applications/Printing
Requires: %{name} = %{epoch}:%{version}-%{release}
This package allow CUPS printing on printers connected by serial
ports.
-%description backend-serial -l pl
-Ten pakiet umo¿liwia drukowanie z poziomu CUPS-a na drukarkach
-pod³±czonych do portów szeregowych.
+%description backend-serial -l pl.UTF-8
+Ten pakiet umożliwia drukowanie z poziomu CUPS-a na drukarkach
+podłączonych do portów szeregowych.
%package backend-parallel
Summary: Parallel port backend for CUPS
-Summary(pl): Backend obs³uguj±cy porty równoleg³e dla CUPS-a
+Summary(pl.UTF-8): Backend obsługujący porty równoległe dla CUPS-a
+License: GPL v2 + openssl exception
Group: Applications/Printing
Requires: %{name} = %{epoch}:%{version}-%{release}
This package allow CUPS printing on printers connected by parallel
ports.
-%description backend-parallel -l pl
-Ten pakiet umo¿liwia drukowanie z poziomu CUPS-a na drukarkach
-pod³±czonych do portów równoleg³ych.
+%description backend-parallel -l pl.UTF-8
+Ten pakiet umożliwia drukowanie z poziomu CUPS-a na drukarkach
+podłączonych do portów równoległych.
+
+%package lpd
+Summary: LPD compatibility support for CUPS print server
+Summary(pl.UTF-8): Wsparcie dla LPD w serwerze wydruków CUPS
+License: GPL v2 + openssl exception
+Group: Applications/Printing
+Requires: %{name} = %{epoch}:%{version}-%{release}
+Requires: rc-inetd
+
+%description lpd
+LPD compatibility support for CUPS print server.
+
+%description lpd -l pl.UTF-8
+Wsparcie dla LPD w serwerze wydruków CUPS.
%prep
%setup -q
%patch3 -p1
%patch4 -p1
%patch5 -p1
+%patch6 -p1
+%patch7 -p1
+%patch8 -p1
+%patch9 -p1
+%patch10 -p1
+%patch11 -p1
%build
%{__aclocal} -I config-scripts
%{__autoconf}
%configure \
--libdir=%{_ulibdir} \
- --enable-shared \
- %{?with_static_libs:--enable-static} \
- --enable-ssl \
- --%{?with_gnutls:dis}%{!?with_gnutls:en}able-openssl \
- --%{!?with_gnutls:dis}%{?with_gnutls:en}able-gnutls \
--disable-cdsassl \
--enable-dbus \
+ --enable-shared \
+ --enable-ssl \
%{?debug:--enable-debug} \
+ --%{!?with_dnssd:dis}%{?with_dnssd:en}able-dnssd \
+ --%{!?with_gnutls:dis}%{?with_gnutls:en}able-gnutls \
+ --%{?with_gnutls:dis}%{!?with_gnutls:en}able-openssl \
+ %{?with_static_libs:--enable-static} \
+ --with-cups-user=lp \
+ --with-cups-group=lp \
+ --with-system-groups=sys \
+ --with-printcap=/etc/printcap \
+ --with-dbusdir=/etc/dbus-1 \
--with-docdir=%{_ulibdir}/%{name}/cgi-bin \
- %{?with_php:--with-php}
+ --with-config-file-perm=0640 \
+ --with-log-file-perm=0640 \
+ --with-optim=-Wno-format-y2k \
+ %{?with_dnssd:--with-dnssd-libs=x} \
+ %{?with_dnssd:--with-dnssd-includes=x} \
+ %{?with_java:--with-java} \
+ %{?with_perl:--with-perl} \
+ %{?with_php:--with-php} \
+ %{?with_python:--with-python}
%{__make}
cd ../..
%endif
+%if %{with java}
+cd scripting/java
+rm -rf classes/* cups.jar
+%javac -d classes src/com/easysw/cups/*.java
+cd classes
+%jar cvf ../cups.jar com/easysw/cups
+cd ../../..
+%endif
+
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,logrotate.d,security} \
- $RPM_BUILD_ROOT/var/log/{,archiv/}cups
+install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,logrotate.d,security,sysconfig/rc-inetd} \
+ $RPM_BUILD_ROOT/var/run/cups \
+ $RPM_BUILD_ROOT/var/log/{,archive/}cups
%{__make} install \
BUILDROOT=$RPM_BUILD_ROOT \
%if %{with php}
%{__make} -C scripting/php install \
- PHPDIR=$RPM_BUILD_ROOT%{_php_extensiondir}
-install -d $RPM_BUILD_ROOT%{_php_configdir}/conf.d
-cat > $RPM_BUILD_ROOT%{_php_configdir}/conf.d/phpcups.ini << EOF
+ PHPDIR=$RPM_BUILD_ROOT%{php_extensiondir}
+install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d
+cat > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/phpcups.ini << 'EOF'
; Enable phpcups extension module
extension=phpcups.so
EOF
%endif
%if %{with perl}
-cd scripting/perl
-%{__make} install \
+%{__make} -C scripting/perl install \
DESTDIR=$RPM_BUILD_ROOT
-cd ../..
+%endif
+
+%if %{with java}
+install -d $RPM_BUILD_ROOT{%{_datadir}/java,%{_examplesdir}/java-cups-%{version}}
+# jars
+cp -a scripting/java/cups.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
+ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
+# examples
+cp -a scripting/java/{CUPSPrinter.java,example} $RPM_BUILD_ROOT%{_examplesdir}/java-cups-%{version}
+# javadoc
+install -d $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
+cp -a scripting/java/docs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
+ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink
%endif
install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
install %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/%{name}
install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
+install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/cups/mailto.conf
+sed -e 's|__ULIBDIR__|%{_ulibdir}|g' %{SOURCE5} > $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/cups-lpd
gzip -9nf $RPM_BUILD_ROOT%{_datadir}/%{name}/model/*.ppd
# windows drivers can be put there.
install -d $RPM_BUILD_ROOT%{_datadir}/cups/drivers
+# dirs for gimp-print-cups-4.2.7-1
+install -d $RPM_BUILD_ROOT%{_datadir}/cups/model/{C,da,en_GB,fr,nb,pl,sv}
+
touch $RPM_BUILD_ROOT/var/cache/cups/help.index
touch $RPM_BUILD_ROOT/var/cache/cups/{job,remote}.cache
touch $RPM_BUILD_ROOT/var/cache/cups/ppds.dat
-install -d $RPM_BUILD_ROOT/etc/cups/ssl
-
-# post-strip can't work on readonly files
-chmod u+w $RPM_BUILD_ROOT%{perl_vendorarch}/auto/CUPS/CUPS.so
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/cups/ssl
# links to enable/disable (compatibility!)
-ln -s accept $RPM_BUILD_ROOT/usr/sbin/enable
-ln -s accept $RPM_BUILD_ROOT/usr/sbin/disable
+ln -s accept $RPM_BUILD_ROOT%{_sbindir}/enable
+ln -s accept $RPM_BUILD_ROOT%{_sbindir}/disable
+
+# fix/update locale names
+install -d $RPM_BUILD_ROOT%{_datadir}/locale/{nb,zh_CN}
+mv -f $RPM_BUILD_ROOT%{_datadir}/locale/{no/cups_no.po,nb/cups_nb.po}
+mv -f $RPM_BUILD_ROOT%{_datadir}/locale/{zh/cups_zh.po,zh_CN/cups_zh_CN.po}
# check-files cleanup
rm -rf $RPM_BUILD_ROOT%{_mandir}/{,es/,fr/}cat?
-rm -rf $RPM_BUILD_ROOT/etc/{init.d,rc?.d}/*
+rm -rf $RPM_BUILD_ROOT/''etc/{init.d,rc?.d}/*
rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/cupsd.conf.default
%clean
%postun image-lib -p /sbin/ldconfig
%post -n php-cups
-[ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php.conf ] || %service -q httpd restart
+%php_webserver_restart
%postun -n php-cups
if [ "$1" = 0 ]; then
- [ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
- [ ! -f /etc/httpd/httpd.conf/??_mod_php.conf ] || %service -q httpd restart
+ %php_webserver_restart
+fi
+
+%post -n java-cups-javadoc
+ln -nfs %{name}-%{version} %{_javadocdir}/%{name}
+
+%post lpd
+%service -q rc-inetd reload
+
+%postun lpd
+if [ "$1" = 0 ]; then
+ %service -q rc-inetd reload
fi
%files
%attr(600,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/classes.conf
%attr(640,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/cupsd.conf
%attr(600,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/printers.conf
+%attr(600,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/mailto.conf
+%attr(600,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/snmp.conf
%attr(640,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*.convs
%attr(640,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*.types
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.cups
%attr(4755,lp,root) %{_bindir}/lppasswd
%attr(755,root,root) %{_bindir}/cupstestppd
%attr(755,root,root) %{_bindir}/cupstestdsc
+%attr(755,root,root) %{_sbindir}/cupsctl
%attr(755,root,root) %{_sbindir}/cupsd
+%attr(755,root,root) %{_sbindir}/cupsfilter
%dir %{_ulibdir}/cups
%dir %{_ulibdir}/cups/*
%lang(de) %{_ulibdir}/cups/cgi-bin/de
%lang(es) %{_ulibdir}/cups/cgi-bin/es
%lang(et) %{_ulibdir}/cups/cgi-bin/et
+%lang(fr) %{_ulibdir}/cups/cgi-bin/fr
+%lang(he) %{_ulibdir}/cups/cgi-bin/he
+%lang(id) %{_ulibdir}/cups/cgi-bin/id
+%lang(it) %{_ulibdir}/cups/cgi-bin/it
%lang(ja) %{_ulibdir}/cups/cgi-bin/ja
%lang(pl) %{_ulibdir}/cups/cgi-bin/pl
%lang(sv) %{_ulibdir}/cups/cgi-bin/sv
+%lang(zh_TW) %{_ulibdir}/cups/cgi-bin/zh_TW
%exclude %{_ulibdir}/cups/backend/usb
%exclude %{_ulibdir}/cups/backend/serial
%exclude %{_ulibdir}/cups/backend/parallel
%attr(755,root,root) %{_ulibdir}/cups/backend/*
-%attr(755,root,root) %{_ulibdir}/cups/daemon/*
+%attr(755,root,root) %{_ulibdir}/cups/daemon/cups-deviced
+%attr(755,root,root) %{_ulibdir}/cups/daemon/cups-driverd
+%attr(755,root,root) %{_ulibdir}/cups/daemon/cups-polld
%attr(755,root,root) %{_ulibdir}/cups/filter/*
%attr(755,root,root) %{_ulibdir}/cups/monitor/*
%attr(755,root,root) %{_ulibdir}/cups/notifier/*
-%dir %{_datadir}/cups
%{_datadir}/cups/banners
-%{_datadir}/cups/charmaps
%{_datadir}/cups/charsets
%{_datadir}/cups/data
%{_datadir}/cups/drivers
%{_datadir}/cups/fonts
-%{_datadir}/cups/model
+%dir %{_datadir}/cups/model
+%{_datadir}/cups/model/*.ppd.gz
+# dirs for gimp-print-cups-4.2.7-1
+%dir %{_datadir}/cups/model/C
+%lang(da) %dir %{_datadir}/cups/model/da
+%lang(en_GB) %dir %{_datadir}/cups/model/en_GB
+%lang(fr) %dir %{_datadir}/cups/model/fr
+%lang(nb) %dir %{_datadir}/cups/model/nb
+%lang(pl) %dir %{_datadir}/cups/model/pl
+%lang(sv) %dir %{_datadir}/cups/model/sv
+
%dir %{_datadir}/cups/templates
%{_datadir}/cups/templates/*.tmpl
%lang(de) %{_datadir}/cups/templates/de
%lang(es) %{_datadir}/cups/templates/es
%lang(et) %{_datadir}/cups/templates/et
+%lang(fr) %{_datadir}/cups/templates/fr
+%lang(he) %{_datadir}/cups/templates/he
+%lang(id) %{_datadir}/cups/templates/id
+%lang(it) %{_datadir}/cups/templates/it
%lang(ja) %{_datadir}/cups/templates/ja
%lang(pl) %{_datadir}/cups/templates/pl
%lang(sv) %{_datadir}/cups/templates/sv
-%{_mandir}/man7/backend.7*
+%lang(zh_TW) %{_datadir}/cups/templates/zh_TW
%{_mandir}/man1/cupstestppd.1*
%{_mandir}/man1/cupstestdsc.1*
-%{_mandir}/man7/filter.7*
%{_mandir}/man1/lppasswd.1*
-%{_mandir}/man[58]/*
-%lang(de) %{_datadir}/locale/de/cups_de.po
-%lang(es) %{_datadir}/locale/es/cups_es.po
-%lang(et) %{_datadir}/locale/et/cups_et.po
-%lang(ja) %{_datadir}/locale/ja/cups_ja.po
-%lang(pl) %{_datadir}/locale/pl/cups_pl.po
-%lang(sv) %{_datadir}/locale/sv/cups_sv.po
+%{_mandir}/man7/backend.7*
+%{_mandir}/man7/filter.7*
+%{_mandir}/man5/*
+%{_mandir}/man8/accept.8*
+%{_mandir}/man8/cups-deviced.8*
+%{_mandir}/man8/cups-driverd.8*
+%{_mandir}/man8/cups-polld.8*
+%{_mandir}/man8/cupsaddsmb.8*
+%{_mandir}/man8/cupsctl.8*
+%{_mandir}/man8/cupsd.8*
+%{_mandir}/man8/cupsenable.8*
+%{_mandir}/man8/cupsfilter.8*
+%{_mandir}/man8/lp*
%dir %attr(775,root,lp) /var/cache/cups
+%dir %attr(755,root,lp) /var/lib/cups
+%dir %attr(511,lp,sys) /var/lib/cups/certs
%dir %attr(755,root,lp) /var/run/cups
-%dir %attr(511,lp,sys) /var/run/cups/certs
%dir %attr(710,root,lp) /var/spool/cups
%dir %attr(1770,root,lp) /var/spool/cups/tmp
%attr(600,lp,lp) %ghost /var/cache/cups/help.index
%attr(640,root,lp) %ghost /var/cache/cups/job.cache
%attr(600,lp,lp) %ghost /var/cache/cups/ppds.dat
%attr(640,root,lp) %ghost /var/cache/cups/remote.cache
-%attr(750,root,logs) %dir /var/log/archiv/cups
+%attr(750,root,logs) %dir /var/log/archive/cups
%attr(750,root,logs) %dir /var/log/cups
%attr(640,root,logs) %ghost /var/log/cups/access_log
%attr(640,root,logs) %ghost /var/log/cups/error_log
%defattr(644,root,root,755)
%dir %attr(755,root,lp) %{_sysconfdir}/%{name}
%attr(755,root,root) %{_libdir}/libcups.so.*
+%dir %{_datadir}/cups
+%{_datadir}/cups/charmaps
+%lang(da) %{_datadir}/locale/da/cups_da.po
+%lang(de) %{_datadir}/locale/de/cups_de.po
+%lang(es) %{_datadir}/locale/es/cups_es.po
+%lang(et) %{_datadir}/locale/et/cups_et.po
+%lang(fi) %{_datadir}/locale/fi/cups_fi.po
+%lang(fr) %{_datadir}/locale/fr/cups_fr.po
+%lang(he) %{_datadir}/locale/he/cups_he.po
+%lang(id) %{_datadir}/locale/id/cups_id.po
+%lang(it) %{_datadir}/locale/it/cups_it.po
+%lang(ko) %{_datadir}/locale/ko/cups_ko.po
+%lang(ja) %{_datadir}/locale/ja/cups_ja.po
+%lang(nl) %{_datadir}/locale/nl/cups_nl.po
+%lang(nb) %{_datadir}/locale/nb/cups_nb.po
+%lang(pl) %{_datadir}/locale/pl/cups_pl.po
+%lang(pt) %{_datadir}/locale/pt/cups_pt.po
+%lang(pt_BR) %{_datadir}/locale/pt_BR/cups_pt_BR.po
+%lang(ru) %{_datadir}/locale/ru/cups_ru.po
+%lang(sv) %{_datadir}/locale/sv/cups_sv.po
+%lang(zh_CN) %{_datadir}/locale/zh_CN/cups_zh_CN.po
+%lang(zh_TW) %{_datadir}/locale/zh_TW/cups_zh_TW.po
%files clients
%defattr(644,root,root,755)
%attr(755,root,root) %{_sbindir}/lpinfo
%attr(755,root,root) %{_sbindir}/lpmove
%attr(755,root,root) %{_sbindir}/reject
+%{_desktopdir}/cups.desktop
+%{_iconsdir}/hicolor/*/apps/cups.png
%{_mandir}/man1/cancel.1*
%{_mandir}/man1/lp.1*
%{_mandir}/man1/lpoptions.1*
%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/cups-config
+%attr(755,root,root) %{_libdir}/libcups.so
+%attr(755,root,root) %{_libdir}/libcupsimage.so
%{_includedir}/cups
-%{_libdir}/lib*.so
-%{_mandir}/man1/cups-config*
-%{_mandir}/man3/*
-#%lang(fr) %{_mandir}/fr/man1/cups-config*
-#%lang(es) %{_mandir}/es/man1/cups-config*
+%{_mandir}/man1/cups-config.1*
+#%lang(fr) %{_mandir}/fr/man1/cups-config.1*
+#%lang(es) %{_mandir}/es/man1/cups-config.1*
%if %{with static_libs}
%files static
%defattr(644,root,root,755)
-%{_libdir}/*.a
+%{_libdir}/libcups.a
+%{_libdir}/libcupsimage.a
%endif
%if %{with perl}
%files -n perl-cups
%defattr(644,root,root,755)
-%{perl_vendorarch}/*.pm
+%{perl_vendorarch}/CUPS.pm
%dir %{perl_vendorarch}/auto/CUPS
-%{perl_vendorarch}/auto/CUPS/*.bs
+%{perl_vendorarch}/auto/CUPS/CUPS.bs
%{perl_vendorarch}/auto/CUPS/autosplit.ix
-%attr(755,root,root) %{perl_vendorarch}/auto/CUPS/*.so
+%attr(755,root,root) %{perl_vendorarch}/auto/CUPS/CUPS.so
+%{_mandir}/man3/CUPS.3pm*
%endif
%if %{with php}
%files -n php-cups
%defattr(644,root,root,755)
%doc scripting/php/README
-%attr(755,root,root) %{_php_extensiondir}/*
-%config(noreplace) %verify(not md5 mtime size) %{_php_configdir}/conf.d/phpcups.ini
+%attr(755,root,root) %{php_extensiondir}/phpcups.so
+%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/phpcups.ini
+%endif
+
+%if %{with java}
+%files -n java-cups
+%defattr(644,root,root,755)
+%{_javadir}/*.jar
+%{_examplesdir}/java-cups-%{version}
+
+%files -n java-cups-javadoc
+%defattr(644,root,root,755)
+%{_javadocdir}/%{name}-%{version}
+%ghost %{_javadocdir}/%{name}
%endif
%files backend-usb
%files backend-parallel
%defattr(644,root,root,755)
%attr(755,root,root) %{_ulibdir}/cups/backend/parallel
+
+%files lpd
+%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/*
+%attr(755,root,root) %{_ulibdir}/cups/daemon/cups-lpd
+%{_mandir}/man8/cups-lpd.8*