[packages/sane-backends] - Added bcond to turn off libusb-1.0 usage.

lmasko lmasko at pld-linux.org
Tue Nov 19 11:50:41 CET 2013


commit 6ebd6e62d8ade6df107a64bbb6bde286a3b839e8
Author: Lukasz Masko <lmasko at pld-linux.org>
Date:   Tue Nov 19 11:50:08 2013 +0100

    - Added bcond to turn off libusb-1.0 usage.

 sane-backends.spec | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/sane-backends.spec b/sane-backends.spec
index 0a2b794..abb5177 100644
--- a/sane-backends.spec
+++ b/sane-backends.spec
@@ -1,8 +1,9 @@
 #
 # Conditional build:
-%bcond_without	gphoto	# gphoto backend (which requires libgphoto2)
-%bcond_without	lpt	# parallel port backends (which require libieee1284)
-%bcond_with	avahi	# Avahi support for saned and net backend
+%bcond_without	gphoto		# gphoto backend (which requires libgphoto2)
+%bcond_without	lpt		# parallel port backends (which require libieee1284)
+%bcond_with	avahi		# Avahi support for saned and net backend
+%bcond_without	libusb10	# libusb-1.0 support
 #
 Summary:	SANE - easy local and networked scanner access
 Summary(es.UTF-8):	SANE - acceso a scanners en red y locales
@@ -266,7 +267,7 @@ mv -f acinclude.m4.tmp acinclude.m4
 %{__automake}
 %configure \
 	%{?with_avahi:--enable-avahi} \
-	--enable-libusb_1_0 \
+	%{?with_libusb10:--enable-libusb_1_0} \
 	--enable-pnm-backend \
 	--enable-pthread \
 	--enable-static \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/sane-backends.git/commitdiff/6ebd6e62d8ade6df107a64bbb6bde286a3b839e8



More information about the pld-cvs-commit mailing list