[packages/shine] add static_libs bcond

atler atler at pld-linux.org
Mon Nov 24 15:01:09 CET 2025


commit 41f10fe07d0bfc3731c4b73cf84f186d292436d5
Author: Jan Palus <atler at pld-linux.org>
Date:   Mon Nov 24 14:55:18 2025 +0100

    add static_libs bcond

 shine.spec | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/shine.spec b/shine.spec
index a5459a9..30798f3 100644
--- a/shine.spec
+++ b/shine.spec
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_without	static_libs	# static libraries
+
 Summary:	Fixed-point MP3 encoding library
 Summary(pl.UTF-8):	Biblioteka stałoprzecinkowego kodowania MP3
 Name:		shine
@@ -13,6 +17,7 @@ URL:		https://github.com/savonet/shine/
 BuildRequires:	autoconf >= 2.50
 BuildRequires:	automake
 BuildRequires:	libtool >= 2:2
+BuildRequires:	rpmbuild(macros) >= 1.527
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -53,7 +58,8 @@ Statyczna biblioteka shine.
 %{__aclocal} -I m4
 %{__autoconf}
 %{__automake}
-%configure
+%configure \
+	%{__enable_disable static_libs static}
 
 %{__make}
 
@@ -85,6 +91,8 @@ rm -rf $RPM_BUILD_ROOT
 %{_includedir}/shine
 %{_pkgconfigdir}/shine.pc
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libshine.a
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/shine.git/commitdiff/e57b2d208656ea1ae92e68fc77e7ea7237ffa9a2




More information about the pld-cvs-commit mailing list