]> git.pld-linux.org Git - packages/fcft.git/commitdiff
add static_libs bcond
authorJan Palus <atler@pld-linux.org>
Fri, 15 Dec 2023 09:13:56 +0000 (10:13 +0100)
committerJan Palus <atler@pld-linux.org>
Fri, 15 Dec 2023 09:13:56 +0000 (10:13 +0100)
fcft.spec

index 0cdba512d421eb9bb8398ab972fba0a1feecf540..e1b55d5dbdc2d68715f489966d778d646efe0fd3 100644 (file)
--- a/fcft.spec
+++ b/fcft.spec
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_without static_libs     # static library
+
 Summary:       A simple library for font loading and glyph rasterization
 Name:          fcft
 Version:       3.1.6
@@ -64,7 +68,8 @@ Static fcft library.
 %setup -q -n %{name}
 
 %build
-%meson build
+%meson build \
+       %{!?with_static_libs:--default-library=shared}
 
 %ninja_build -C build
 
@@ -94,6 +99,8 @@ rm -rf $RPM_BUILD_ROOT
 %{_pkgconfigdir}/fcft.pc
 %{_mandir}/man3/fcft_*.3*
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libfcft.a
+%endif
This page took 1.513464 seconds and 4 git commands to generate.