commit ba1c5585f71a0909b5e3d440f008af112e0150d0
Author: Jan Palus <[email protected]>
Date:   Mon Jan 29 11:32:18 2024 +0100

    add static_libs bcond

 pixman.spec | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/pixman.spec b/pixman.spec
index a991716..84beebc 100644
--- a/pixman.spec
+++ b/pixman.spec
@@ -1,6 +1,7 @@
 #
 # Conditional build:
-%bcond_without tests   # unit tests
+%bcond_without static_libs     # static library
+%bcond_without tests           # unit tests
 
 Summary:       Pixel manipulation library
 Summary(pl.UTF-8):     Biblioteka operacji na pikselach
@@ -68,6 +69,7 @@ Ten pakiet zawiera statycznÄ… wersjÄ™ biblioteki pixman.
 
 %build
 %meson build \
+       %{!?with_static_libs:--default-library=shared} \
        -Dgtk=disabled \
        -Dopenmp=disabled \
 %ifarch %{x8664}
@@ -103,6 +105,8 @@ rm -rf $RPM_BUILD_ROOT
 %{_includedir}/pixman-1
 %{_pkgconfigdir}/pixman-1.pc
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libpixman-1.a
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/pixman.git/commitdiff/ba1c5585f71a0909b5e3d440f008af112e0150d0

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

Reply via email to