[packages/lame] fix build with gettext >= 0.24.1

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


commit 69d81726053b32ec5e8b1d9eaa74fa6e8b111f55
Author: Jan Palus <atler at pld-linux.org>
Date:   Mon Nov 24 14:26:30 2025 +0100

    fix build with gettext >= 0.24.1

 lame.spec | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/lame.spec b/lame.spec
index 0809914..d5dc841 100644
--- a/lame.spec
+++ b/lame.spec
@@ -23,6 +23,7 @@ Patch3:		%{name}-sse.patch
 URL:		http://lame.sourceforge.net/
 BuildRequires:	autoconf >= 2.69
 BuildRequires:	automake
+BuildRequires:	gettext-tools
 %{?with_gtk:BuildRequires:	gtk+-devel >= 1.2.0}
 # with --with-fileio=sndfile (but disables stdin input)
 #BuildRequires:	libsndfile-devel >= 1.0.2
@@ -32,10 +33,15 @@ BuildRequires:	nasm
 %endif
 BuildRequires:	ncurses-devel >= 4.2
 BuildRequires:	pkgconfig
-BuildRequires:	rpmbuild(macros) >= 1.527
+BuildRequires:	rpmbuild(macros) >= 1.750
 Requires:	%{name}-libs = %{version}-%{release}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define		gettext_ver	%(rpm -q --qf='%%{V}' gettext-tools 2> /dev/null || echo ERROR)
+%if %{_ver_ge %{gettext_ver} 0.24.1}
+%define		gettext_inc	-I/usr/share/gettext/m4
+%endif
+
 %description
 Lame (LAME Ain't an MP3 Encoder) is a program which can be used to
 create compressed audio files. These audio files can be played back by
@@ -125,7 +131,7 @@ Analizator ramek w GTK+.
 
 %build
 %{__libtoolize}
-%{__aclocal}
+%{__aclocal} %{?gettext_inc}
 %{__autoconf}
 %{__autoheader}
 %{__automake}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/lame.git/commitdiff/69d81726053b32ec5e8b1d9eaa74fa6e8b111f55




More information about the pld-cvs-commit mailing list