]> git.pld-linux.org Git - packages/cups.git/blobdiff - cups.spec
- s/jobs-header_tml_pl.patch/templates_pl.patch/ (fix more stupid translations)
[packages/cups.git] / cups.spec
index 09d7fad2fff4ef599afe2ab952441b99497d55e9..14823eac0409a450cdaf825baaba6b82eaa14554 100644 (file)
--- a/cups.spec
+++ b/cups.spec
@@ -4,8 +4,10 @@
 # - remove obsolete /etc/cups/certs (trigger?)
 #
 # Conditional build:
-%bcond_without php     # don't build PHP extension
-%bcond_without perl    # don't build Perl extension
+%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 static_libs     # don't build static library
 #
 %include       /usr/lib/rpm/macros.perl
 %define                pdir CUPS
@@ -14,7 +16,7 @@ Summary(pl):  Og
 Summary(pt_BR):        Sistema Unix de Impressão
 Name:          cups
 Version:       1.2.1
-Release:       2
+Release:       4
 Epoch:         1
 License:       GPL/LGPL
 Group:         Applications/Printing
@@ -28,18 +30,22 @@ Patch1:             %{name}-lp-lpr.patch
 Patch2:                %{name}-options.patch
 Patch3:                %{name}-man_pages_linking.patch
 Patch4:                %{name}-nostrip.patch
+Patch5:                %{name}-templates_pl.patch
+Patch6:                %{name}-str1723.patch
+Patch7:                %{name}-str1740.patch
 URL:           http://www.cups.org/
 BuildRequires: acl-devel
 BuildRequires: autoconf
 BuildRequires: automake
 BuildRequires: dbus-devel
+%{?with_gnutls:BuildRequires:  gnutls-devel}
 BuildRequires: libjpeg-devel
 BuildRequires: libpng-devel
 BuildRequires: libstdc++-devel
 BuildRequires: libtiff-devel
 BuildRequires: openldap-devel
 BuildRequires: openslp-devel
-BuildRequires: openssl-devel
+%{!?with_gnutls:BuildRequires: openssl-devel}
 BuildRequires: pam-devel
 %{?with_php:BuildRequires:     php-devel >= 4:5.0.0}
 BuildRequires: pkgconfig
@@ -244,6 +250,9 @@ pod
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
+%patch5 -p1
+%patch6 -p1
+%patch7 -p1
 
 %build
 %{__aclocal} -I config-scripts
@@ -251,14 +260,16 @@ pod
 %configure \
        --libdir=%{_ulibdir} \
        --enable-shared \
-       --enable-static \
+       %{?with_static_libs:--enable-static} \
        --enable-ssl \
-       --enable-openssl \
-       --disable-gnutls \
+       --%{?with_gnutls:dis}%{!?with_gnutls:en}able-openssl \
+       --%{!?with_gnutls:dis}%{?with_gnutls:en}able-gnutls \
        --disable-cdsassl \
        --enable-dbus \
        %{?debug:--enable-debug} \
-       --with-docdir=%{_ulibdir}/%{name}/cgi-bin
+       --with-docdir=%{_ulibdir}/%{name}/cgi-bin \
+       %{?with_php:--with-php}
+
 %{__make}
 
 %{__perl} -pi -e 's#-I\.\.\/\.\.#-I../.. -I../../cups#g' scripting/php/Makefile
@@ -325,6 +336,7 @@ install -d $RPM_BUILD_ROOT%{_datadir}/cups/drivers
 
 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
@@ -439,8 +451,9 @@ fi
 %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(640,root,lp) %ghost /var/cache/cups/help.index
+%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/cups
@@ -504,9 +517,11 @@ fi
 #%lang(fr) %{_mandir}/fr/man1/cups-config*
 #%lang(es) %{_mandir}/es/man1/cups-config*
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/*.a
+%endif
 
 %if %{with perl}
 %files -n perl-cups
This page took 0.034492 seconds and 4 git commands to generate.