]> git.pld-linux.org Git - packages/bluez.git/commitdiff
add static_libs bcond auto/th/bluez-5.71-1
authorJan Palus <atler@pld-linux.org>
Fri, 15 Dec 2023 22:28:48 +0000 (23:28 +0100)
committerJan Palus <atler@pld-linux.org>
Fri, 15 Dec 2023 22:28:48 +0000 (23:28 +0100)
bluez.spec

index f96de706d1b535969712c36e20695208a186a4a4..6d4035ad7b1c88e6b7e5542b6eae0dbc30b3232e 100644 (file)
@@ -4,6 +4,7 @@
 #
 # Conditional build:
 %bcond_without deprecated      # deprecated tools (ciptool,hciattach,hciconfig,hcidump,hcitool,rfcomm,sdptool)
+%bcond_without static_libs     # static library
 %bcond_without systemd         # systemd
 #
 Summary:       Bluetooth utilities
@@ -209,7 +210,7 @@ aplikacji Bluetooth.
        --enable-nfc \
        --enable-sap \
        --enable-sixaxis \
-       --enable-static \
+       %{__enable_disable static_libs static} \
        --with-udevdir=%{udevdir} \
        %{?with_systemd:--with-systemdsystemunitdir=%{systemdunitdir}} \
        %{?with_systemd:--with-systemduserunitdir=%{systemduserunitdir}} \
@@ -244,7 +245,8 @@ install %{SOURCE5} $RPM_BUILD_ROOT%{_libexecdir}/bluetooth
 install emulator/btvirt $RPM_BUILD_ROOT%{_libexecdir}/bluetooth
 
 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libbluetooth.la
-%{__rm} $RPM_BUILD_ROOT%{_libdir}/bluetooth/plugins/*.{la,a}
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/bluetooth/plugins/*.la
+%{?with_static_libs:%{__rm} $RPM_BUILD_ROOT%{_libdir}/bluetooth/plugins/*.a}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -380,6 +382,8 @@ fi
 %{_includedir}/bluetooth
 %{_pkgconfigdir}/bluez.pc
 
+%if %{with static_libs}
 %files libs-static
 %defattr(644,root,root,755)
 %{_libdir}/libbluetooth.a
+%endif
This page took 0.064844 seconds and 4 git commands to generate.