[packages/libusb] fix build without static libs

atler atler at pld-linux.org
Wed Oct 21 19:10:59 CEST 2020


commit a98a149e0efa488b2dc4a8a19e3fa300a91edd51
Author: Jan Palus <atler at pld-linux.org>
Date:   Wed May 6 22:20:21 2020 +0200

    fix build without static libs

 libusb.spec | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/libusb.spec b/libusb.spec
index 0774211..a6a68f2 100644
--- a/libusb.spec
+++ b/libusb.spec
@@ -137,6 +137,8 @@ rm -rf $RPM_BUILD_ROOT
 %{_includedir}/libusb-1.0
 %{_pkgconfigdir}/libusb-1.0.pc
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libusb-1.0.a
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libusb.git/commitdiff/a98a149e0efa488b2dc4a8a19e3fa300a91edd51



More information about the pld-cvs-commit mailing list