commit 52c7e6737794ad0736c8f2d0f570128731e8b61a
Author: Jan Palus <[email protected]>
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

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to