[packages/pangomm] add static_libs bcond
atler
atler at pld-linux.org
Mon Jan 29 12:12:01 CET 2024
commit 52c7e6737794ad0736c8f2d0f570128731e8b61a
Author: Jan Palus <atler at pld-linux.org>
Date: Mon Jan 29 10:59:15 2024 +0100
add static_libs bcond
pangomm.spec | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/pangomm.spec b/pangomm.spec
index fd87339..03201a5 100644
--- a/pangomm.spec
+++ b/pangomm.spec
@@ -1,6 +1,7 @@
#
# Conditional build:
%bcond_without apidocs # API documentation
+%bcond_without static_libs # static library
%define apiver 1.4
@@ -106,7 +107,7 @@ mm-common-prepare --copy --force
%{__enable_disable apidocs documentation} \
--enable-maintainer-mode \
--disable-silent-rules \
- --enable-static
+ %{__enable_disable static_libs static}
%{__make}
%install
@@ -136,9 +137,11 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/pangomm-%{apiver}
%{_pkgconfigdir}/pangomm-%{apiver}.pc
+%if %{with static_libs}
%files static
%defattr(644,root,root,755)
%{_libdir}/libpangomm-%{apiver}.a
+%endif
%if %{with apidocs}
%files apidocs
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/pangomm.git/commitdiff/52c7e6737794ad0736c8f2d0f570128731e8b61a
More information about the pld-cvs-commit
mailing list