[packages/enigma] - added gettext patch (add external arg to allow gettext 0.20+) - package appdata file - release 2

qboosh qboosh at pld-linux.org
Sat Dec 12 09:59:55 CET 2020


commit 9602dc24d73bff764a0aa42e1ca5f3dcc86d66aa
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Dec 12 10:00:27 2020 +0100

    - added gettext patch (add external arg to allow gettext 0.20+)
    - package appdata file
    - release 2

 enigma-gettext.patch | 11 +++++++++++
 enigma.spec          |  9 ++++++---
 2 files changed, 17 insertions(+), 3 deletions(-)
---
diff --git a/enigma.spec b/enigma.spec
index 083425b..ede8b21 100644
--- a/enigma.spec
+++ b/enigma.spec
@@ -2,7 +2,7 @@ Summary:	Oxyd clone
 Summary(pl.UTF-8):	Klon gry Oxyd
 Name:		enigma
 Version:	1.21
-Release:	1
+Release:	2
 License:	GPL v2+
 Group:		X11/Applications/Games
 Source0:	http://downloads.sourceforge.net/enigma-game/%{name}-%{version}.tar.gz
@@ -10,6 +10,7 @@ Source0:	http://downloads.sourceforge.net/enigma-game/%{name}-%{version}.tar.gz
 Patch0:		%{name}-desktop.patch
 Patch1:		0003-prevent-ImageMagick-inserting-timestamps-to-PNGs.patch
 Patch2:		0004-src-lev-Proxy.cc-fix-check-for-basic_ifstream-s-read.patch
+Patch3:		%{name}-gettext.patch
 URL:		http://www.nongnu.org/enigma/
 BuildRequires:	SDL-devel >= 1.2.0
 BuildRequires:	SDL_image-devel >= 1.2.0
@@ -60,12 +61,13 @@ blokujących drogę do kamieni Oxyd.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
 %{__gettextize}
-%{__aclocal}
-%{__autoheader}
+%{__aclocal} -I m4
 %{__autoconf}
+%{__autoheader}
 %{__automake}
 %configure
 
@@ -91,6 +93,7 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/enigma
 %{_datadir}/%{name}
+%{_datadir}/appdata/enigma.appdata.xml
 %{_desktopdir}/enigma.desktop
 %{_iconsdir}/hicolor/48x48/apps/enigma.png
 %{_pixmapsdir}/enigma.png
diff --git a/enigma-gettext.patch b/enigma-gettext.patch
new file mode 100644
index 0000000..54dbb05
--- /dev/null
+++ b/enigma-gettext.patch
@@ -0,0 +1,11 @@
+--- enigma-1.21/configure.ac.orig	2020-12-12 09:18:35.911556300 +0100
++++ enigma-1.21/configure.ac	2020-12-12 09:25:58.022494513 +0100
+@@ -16,7 +16,7 @@
+ dnl Save a _NOGETTEXT state for possible MacOS special case
+ LIBS_NOGETTEXT="$LIBS"
+ 
+-AM_GNU_GETTEXT
++AM_GNU_GETTEXT([external])
+ 
+ case $host_os in
+   *mingw32* ) MINGW32=yes;;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/enigma.git/commitdiff/9602dc24d73bff764a0aa42e1ca5f3dcc86d66aa



More information about the pld-cvs-commit mailing list