[packages/lame] add static_libs bcond
atler
atler at pld-linux.org
Mon Nov 24 14:27:25 CET 2025
commit 238186d7369e20790a56bedbfcc3ca2685e57753
Author: Jan Palus <atler at pld-linux.org>
Date: Mon Nov 24 14:13:48 2025 +0100
add static_libs bcond
lame.spec | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/lame.spec b/lame.spec
index 0fa8502..0809914 100644
--- a/lame.spec
+++ b/lame.spec
@@ -1,6 +1,7 @@
#
# Conditional build:
-%bcond_without gtk # GTK+ frontend
+%bcond_without gtk # GTK+ frontend
+%bcond_without static_libs # static libraries
#
Summary: Software to create compressed audio files
Summary(es.UTF-8): Lame es un gerador de MP3
@@ -31,6 +32,7 @@ BuildRequires: nasm
%endif
BuildRequires: ncurses-devel >= 4.2
BuildRequires: pkgconfig
+BuildRequires: rpmbuild(macros) >= 1.527
Requires: %{name}-libs = %{version}-%{release}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -128,6 +130,7 @@ Analizator ramek w GTK+.
%{__autoheader}
%{__automake}
%configure \
+ %{__enable_disable static_libs static} \
--disable-cpml \
--enable-dynamic-frontends \
%{?with_gtk:--enable-mp3x} \
@@ -172,9 +175,11 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/libmp3lame.la
%{_includedir}/lame
+%if %{with static_libs}
%files libs-static
%defattr(644,root,root,755)
%{_libdir}/libmp3lame.a
+%endif
%if %{with gtk}
%files x11
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/lame.git/commitdiff/69d81726053b32ec5e8b1d9eaa74fa6e8b111f55
More information about the pld-cvs-commit
mailing list