]> git.pld-linux.org Git - packages/pangomm.git/commitdiff
add static_libs bcond master
authorJan Palus <atler@pld-linux.org>
Mon, 29 Jan 2024 09:59:15 +0000 (10:59 +0100)
committerJan Palus <atler@pld-linux.org>
Mon, 29 Jan 2024 09:59:15 +0000 (10:59 +0100)
pangomm.spec

index fd873396abed9045984a03fe25b3e46cbfd86073..03201a572f5ad4b13283c8cb2ce277b3c2a21d63 100644 (file)
@@ -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
This page took 0.119517 seconds and 4 git commands to generate.