]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Try another way of conditionalizing dnssd backend...
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Fri, 27 Jul 2012 18:03:40 +0000 (18:03 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Fri, 27 Jul 2012 18:03:40 +0000 (18:03 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10556 7a7537e8-13f0-0310-91df-b6672ffda945

packaging/cups.spec.in

index 89199dbbd1100f724c7b8aff32febd9dcdb180da..2b562393e981f044a7f0809e115f55fe7f971b9f 100644 (file)
@@ -27,6 +27,7 @@
 
 %{!?_with_dnssd: %{!?_without_dnssd: %define _without_dnssd --without-dnssd}}
 %{?_with_dnssd: %define _dnssd --enable-dnssd}
+%{?_with_dnssd: %define _dnssd_backend /usr/lib/cups/backend/dnssd}
 %{!?_with_dnssd: %define _dnssd --disable-dnssd}
 
 %{!?_with_static: %{!?_without_static: %define _without_static --without-static}}
@@ -178,9 +179,7 @@ rm -rf $RPM_BUILD_ROOT
 /usr/bin/lp*
 %dir /usr/lib/cups
 %dir /usr/lib/cups/backend
-%if %{?_with_dnssd:1}%{!?_with_dnssd:0}
-/usr/lib/cups/backend/dnssd
-%endif
+%{_dnssd_backend}
 /usr/lib/cups/backend/http
 /usr/lib/cups/backend/https
 %attr(0700,root,root) /usr/lib/cups/backend/ipp