[packages/android-tools] build with system libusb by default

atler atler at pld-linux.org
Wed Mar 19 11:36:40 CET 2025


commit feaee5b0b4c7be743f8c1126dc1a24c2ade441cb
Author: Jan Palus <atler at pld-linux.org>
Date:   Wed Mar 19 10:33:51 2025 +0100

    build with system libusb by default

 android-tools.spec | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/android-tools.spec b/android-tools.spec
index 13243fa..74c1a1a 100644
--- a/android-tools.spec
+++ b/android-tools.spec
@@ -1,6 +1,6 @@
 #
 # Conditional build:
-%bcond_with	system_libusb	# system libusb library (ssplus support required)
+%bcond_without	system_libusb	# system libusb library (ssplus support required)
 %bcond_with	sse2		# SSE2 instructions
 
 %ifarch %{x8664} x32 pentium4
@@ -26,7 +26,7 @@ BuildRequires:	gtest-devel
 BuildRequires:	libbrotli-devel
 BuildRequires:	libfmt-devel
 BuildRequires:	libstdc++-devel
-%{?with_system_libusb:BuildRequires:	libusb-devel}
+%{?with_system_libusb:BuildRequires:	libusb-devel >= 1.0.28}
 BuildRequires:	lz4-devel
 BuildRequires:	pcre2-8-devel
 BuildRequires:	perl-base
@@ -41,6 +41,7 @@ BuildRequires:	zstd-devel
 %ifarch %{ix86}
 Requires:	cpuinfo(sse2)
 %endif
+%{?with_system_libusb:Requires:	libusb >= 1.0.28}
 Requires:	systemd-units >= 38
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/android-tools.git/commitdiff/feaee5b0b4c7be743f8c1126dc1a24c2ade441cb



More information about the pld-cvs-commit mailing list