[packages/grcompiler] fix build with gettext >= 0.24.1
atler
atler at pld-linux.org
Sun Jan 25 21:47:55 CET 2026
commit dd55565bcf6c3e5b0fa07ddb0c6566c25b944e30
Author: Jan Palus <atler at pld-linux.org>
Date: Sun Jan 25 21:47:01 2026 +0100
fix build with gettext >= 0.24.1
grcompiler.spec | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/grcompiler.spec b/grcompiler.spec
index ea99989..ee1ec87 100644
--- a/grcompiler.spec
+++ b/grcompiler.spec
@@ -12,10 +12,17 @@ URL: http://silgraphite.sourceforge.net/
BuildRequires: autoconf >= 2.54
BuildRequires: automake
BuildRequires: docbook2X >= 0.8.8-4
+BuildRequires: gettext-tools
BuildRequires: libicu-devel
BuildRequires: libstdc++-devel
+BuildRequires: rpmbuild(macros) >= 1.750
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
The SIL Graphite compiler builds a Graphite enabled font from a smart
font description, written in GDL (Graphite Description Language) and a
@@ -33,7 +40,7 @@ potrafi zinterpretować silnik Graphite.
%patch -P0 -p1
%build
-%{__aclocal}
+%{__aclocal} %{?gettext_inc}
%{__autoconf}
%{__automake}
cd test/GrcRegressionTest
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/grcompiler.git/commitdiff/dd55565bcf6c3e5b0fa07ddb0c6566c25b944e30
More information about the pld-cvs-commit
mailing list