[packages/libupnp] add static_libs bcond
atler
atler at pld-linux.org
Tue Apr 23 12:23:34 CEST 2024
commit 03c24f2dfcdea22938253516bc70a02ec18c980d
Author: Jan Palus <atler at pld-linux.org>
Date: Tue Apr 23 11:13:25 2024 +0200
add static_libs bcond
libupnp.spec | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/libupnp.spec b/libupnp.spec
index 135c19b..bd0dc60 100644
--- a/libupnp.spec
+++ b/libupnp.spec
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_without static_libs # static libraries
+
Summary: The Universal Plug and Play (UPnP) SDK for Linux
Summary(pl.UTF-8): Pakiet programistyczny Universal Plug and Play (UPnP) dla Linuksa
Name: libupnp
@@ -91,7 +95,8 @@ Dokumentacja API bibliotek upnp.
%configure \
%{?debug:--enable-debug} \
--enable-open-ssl \
- --disable-silent-rules
+ --disable-silent-rules \
+ %{__enable_disable static_libs static}
%{__make}
%{__make} -C docs docs
@@ -124,10 +129,12 @@ rm -rf $RPM_BUILD_ROOT
%{_includedir}/upnp
%{_pkgconfigdir}/libupnp.pc
+%if %{with static_libs}
%files static
%defattr(644,root,root,755)
%{_libdir}/libixml.a
%{_libdir}/libupnp.a
+%endif
%files apidocs
%defattr(644,root,root,755)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libupnp.git/commitdiff/3a2cde750cf4bf9107bf20758710fbdcb5c87c17
More information about the pld-cvs-commit
mailing list