X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=cups.spec;h=d5b8d41f1cf89bec368e16d670c1ad20e43fc19b;hb=9158c4a7cf2882b267ff41a768982df61604cc98;hp=8d5a2ef6829d1d5088a249faac8951ba7cb8d88d;hpb=11a7349ed8e6d7eed93f16b79e3baff87e7c20ec;p=packages%2Fcups.git diff --git a/cups.spec b/cups.spec index 8d5a2ef..d5b8d41 100644 --- a/cups.spec +++ b/cups.spec @@ -16,13 +16,13 @@ Summary(pl.UTF-8): Ogólny system druku dla Uniksa Summary(pt_BR.UTF-8): Sistema Unix de Impressão Name: cups -Version: 1.5.2 -Release: 7 +Version: 1.5.3 +Release: 1 Epoch: 1 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: 9471d2a7c920cfbb17133c32d2e6866f +# Source0-md5: e1ad15257aa6f162414ea3beae0c5df8 Source1: %{name}.init Source2: %{name}.pamd Source3: %{name}.logrotate @@ -46,7 +46,6 @@ Patch12: %{name}-desktop.patch Patch13: %{name}-systemd-socket.patch # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=638521 Patch14: ipp-revert-1.4.patch -Patch15: %{name}-locale.patch # avahi patches from fedora Patch100: %{name}-avahi-1-config.patch Patch101: %{name}-avahi-2-backend.patch @@ -68,8 +67,7 @@ BuildRequires: libpaper-devel BuildRequires: libpng-devel BuildRequires: libstdc++-devel BuildRequires: libtiff-devel -BuildRequires: libusb-compat-devel -BuildRequires: libusb-devel +BuildRequires: libusb-devel >= 1.0 %{?with_ldap:BuildRequires: openldap-devel} %{?with_slp:BuildRequires: openslp-devel} %{!?with_gnutls:BuildRequires: openssl-devel} @@ -327,8 +325,8 @@ Wsparcie dla LPD w serwerze wydruków CUPS. #%patch11 -p1 %patch12 -p1 %patch13 -p1 -%patch14 -p1 -%patch15 -p0 +# 1.5.3 shows it may have a chance of working without this +#%patch14 -p1 %if %{with avahi} %patch100 -p1 @@ -416,6 +414,10 @@ if [ "%{_lib}" != "lib" ] ; then %endif fi +%if %{with avahi} +ln -s %{_ulibdir}/cups/backend/dnssd $RPM_BUILD_ROOT%{_ulibdir}/cups/backend/mdns +%endif + %if %{with php} %{__make} -C scripting/php install \ PHPDIR=$RPM_BUILD_ROOT%{php_extensiondir} @@ -559,13 +561,15 @@ fi %lang(pl) %{_ulibdir}/cups/cgi-bin/pl %lang(ru) %{_ulibdir}/cups/cgi-bin/ru -%{?with_avahi:%attr(755,root,root) %{_ulibdir}/cups/backend/dnssd} +%if %{with avahi} +%attr(755,root,root) %{_ulibdir}/cups/backend/dnssd +%attr(755,root,root) %{_ulibdir}/cups/backend/mdns +%endif %attr(755,root,root) %{_ulibdir}/cups/backend/http %attr(755,root,root) %{_ulibdir}/cups/backend/https %attr(755,root,root) %{_ulibdir}/cups/backend/ipp %attr(755,root,root) %{_ulibdir}/cups/backend/ipps %attr(755,root,root) %{_ulibdir}/cups/backend/lpd -%{?with_avahi:%attr(755,root,root) %{_ulibdir}/cups/backend/mdns} %attr(755,root,root) %{_ulibdir}/cups/backend/snmp %attr(755,root,root) %{_ulibdir}/cups/backend/socket %attr(755,root,root) %{_ulibdir}/cups/daemon/cups-deviced