%bcond_without gnutls # use GNU TLS for SSL/TLS support
%bcond_with dnssd # DNS Service Discovery support via dns_sd API (obsoleted by Avahi patch)
%bcond_without avahi # DNS Service Discovery support via Avahi
-%bcond_without gssapi # do not include GSSAPI support
-%bcond_without python # don't build Python support in web interface
-%bcond_without static_libs # don't build static library
+%bcond_without gssapi # GSSAPI support
+%bcond_with lspp # audit and SELinux label support (lspp patch)
+%bcond_with tcp_wrappers # tcp_wrappers/libwrap support
+%bcond_without python # Python support in web interface
+%bcond_without static_libs # static library
Summary(pl.UTF-8): Ogólny system druku dla Uniksa
Summary(pt_BR.UTF-8): Sistema Unix de Impressão
Name: cups
-Version: 2.2.1
-Release: 1
+Version: 2.2.7
+Release: 2
Epoch: 1
License: LGPL v2 (libraries), GPL v2 (the rest)
Group: Applications/Printing
Source0: https://github.com/apple/cups/releases/download/v%{version}/%{name}-%{version}-source.tar.gz
-# Source0-md5: a94da2a1e9dbdccb4f3836a38a431931
+# Source0-md5: ac703bcde223dab6d205a5fff193f716
Source1: %{name}.init
Source2: %{name}.pamd
Source3: %{name}.logrotate
Patch109: cups-hp-deviceid-oid.patch
Patch110: cups-dnssd-deviceid.patch
Patch111: cups-ricoh-deviceid-oid.patch
-Patch112: cups-enum-all.patch
+
Patch113: cups-dymo-deviceid.patch
Patch114: cups-freebind.patch
Patch115: cups-ipp-multifile.patch
Patch116: cups-web-devices-timeout.patch
Patch117: cups-lspp.patch
+Patch118: cups-bug-5289.patch
URL: http://www.cups.org/
BuildRequires: acl-devel
+%{?with_lspp:BuildRequires: audit-libs-devel}
BuildRequires: autoconf >= 2.60
BuildRequires: automake
%{?with_dnssd:BuildRequires: avahi-compat-libdns_sd-devel}
%{?with_gnutls:BuildRequires: gnutls-devel}
%{?with_gssapi:BuildRequires: heimdal-devel}
BuildRequires: libpaper-devel
+%{?with_lspp:BuildRequires: libselinux-devel}
BuildRequires: libstdc++-devel
BuildRequires: libusb-devel >= 1.0
+%{?with_tcp_wrappers:BuildRequires: libwrap-devel}
BuildRequires: pam-devel
BuildRequires: pkgconfig
BuildRequires: rpmbuild(macros) >= 1.641
%patch109 -p1
%patch110 -p1
%patch111 -p1
-%patch112 -p1
+
%patch113 -p1
%patch114 -p1
%patch115 -p1
%patch116 -p1
%patch117 -p1
+%patch118 -p1
%build
%{__aclocal} -I config-scripts
--enable-gssapi%{!?with_gssapi:=no} \
--enable-libpaper \
--enable-libusb \
+ %{?with_lspp:--enable-lspp} \
--enable-shared \
--enable-ssl \
%{?with_static_libs:--enable-static} \
+ %{?with_tcp_wrappers:--enable-tcp-wrappers} \
--with-cups-group=lp \
--with-cups-user=lp \
--with-system-groups=sys \
%{_datadir}/cups/templates/*.tmpl
%lang(de) %{_datadir}/cups/templates/de
%lang(es) %{_datadir}/cups/templates/es
+%lang(fr) %{_datadir}/cups/templates/fr
%lang(ja) %{_datadir}/cups/templates/ja
%lang(pt_BR) %{_datadir}/cups/templates/pt_BR
%lang(ru) %{_datadir}/cups/templates/ru
%lang(ja) %{_localedir}/ja/cups_ja.po
%lang(pt_BR) %{_localedir}/pt_BR/cups_pt_BR.po
%lang(ru) %{_localedir}/ru/cups_ru.po
+%lang(zh_CN) %{_localedir}/zh_CN/cups_zh_CN.po
%files clients
%defattr(644,root,root,755)