[packages/celt] add static_libs bcond

atler atler at pld-linux.org
Mon Nov 24 14:07:07 CET 2025


commit c20f453028f5393bd221feecbc1a2bf4551d48a8
Author: Jan Palus <atler at pld-linux.org>
Date:   Mon Nov 24 14:06:49 2025 +0100

    add static_libs bcond

 celt.spec | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/celt.spec b/celt.spec
index a9df58d..a1daf4c 100644
--- a/celt.spec
+++ b/celt.spec
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_without	static_libs	# static libraries
+
 Summary:	CELT low-latency audio codec
 Summary(pl.UTF-8):	CELT - kodek dźwiękowy o małym opóźnieniu
 Name:		celt
@@ -11,6 +15,7 @@ URL:		http://celt-codec.org/
 BuildRequires:	automake
 # for tools
 BuildRequires:	libogg-devel
+BuildRequires:	rpmbuild(macros) >= 1.527
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -48,7 +53,8 @@ Statyczna biblioteka CELT.
 
 %build
 cp -f /usr/share/automake/config.sub .
-%configure
+%configure \
+	%{__enable_disable static_libs static}
 %{__make}
 
 %install
@@ -78,6 +84,8 @@ rm -rf $RPM_BUILD_ROOT
 %{_includedir}/celt
 %{_pkgconfigdir}/celt.pc
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libcelt0.a
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/celt.git/commitdiff/c20f453028f5393bd221feecbc1a2bf4551d48a8




More information about the pld-cvs-commit mailing list