[packages/lpairs2] - new

qboosh qboosh at pld-linux.org
Sat Jun 15 21:57:13 CEST 2024


commit 3adf1513e4486d631ee89a1a222849e01c394333
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Jun 15 21:50:46 2024 +0200

    - new

 lpairs2-icondir.patch | 19 ++++++++++++++++
 lpairs2.spec          | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 80 insertions(+)
---
diff --git a/lpairs2.spec b/lpairs2.spec
new file mode 100644
index 0000000..7147a9e
--- /dev/null
+++ b/lpairs2.spec
@@ -0,0 +1,61 @@
+Summary:	LPairs - a classic memory game for Linux
+Summary(pl.UTF-8):	LPairs - klasyczna gra pamięciowa pod Linuksa
+Name:		lpairs2
+Version:	2.3
+Release:	1
+License:	GPL v3+
+Group:		X11/Applications/Games
+Source0:	https://downloads.sourceforge.net/lgames/%{name}-%{version}.tar.gz
+# Source0-md5:	a40461e91b688617431377502cbe8348
+Patch0:		%{name}-icondir.patch
+URL:		https://lgames.sourceforge.net/LPairs
+BuildRequires:	SDL2-devel >= 2.0
+BuildRequires:	SDL2_image-devel >= 2.0
+BuildRequires:	SDL2_mixer-devel >= 2.0
+BuildRequires:	SDL2_ttf-devel >= 2.0
+BuildRequires:	autoconf >= 2.71
+BuildRequires:	automake
+BuildRequires:	gettext-tools
+BuildRequires:	libstdc++-devel
+BuildRequires:	sed >= 4.0
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+LPairs - a classic memory game for Linux.
+
+%description -l pl.UTF-8
+LPairs - klasyczna gra pamięciowa pod Linuksa.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%{__gettextize}
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+# no translations yet
+#find_lang %{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+# -f %{name}.lang
+%defattr(644,root,root,755)
+%doc ChangeLog README TODO
+%attr(755,root,root) %{_bindir}/lpairs2
+%{_datadir}/lpairs2
+%{_desktopdir}/lpairs2.desktop
+%{_pixmapsdir}/lpairs2.png
diff --git a/lpairs2-icondir.patch b/lpairs2-icondir.patch
new file mode 100644
index 0000000..71e11e6
--- /dev/null
+++ b/lpairs2-icondir.patch
@@ -0,0 +1,19 @@
+--- lpairs2-2.3/Makefile.am.orig	2023-06-10 10:09:19.000000000 +0200
++++ lpairs2-2.3/Makefile.am	2024-06-15 21:36:19.952976105 +0200
+@@ -6,14 +6,14 @@ EXTRA_DIST = gettext.h config.rpath \
+ 
+ desktopdir = $(datadir)/applications
+ desktop_DATA = lpairs2.desktop
+-icondir = $(datadir)/icons
++icondir = $(datadir)/pixmaps
+ icon_DATA = lpairs2.png
+ 
+ # We can't use static desktop file because of icon location. Is this 
+ # the right way to handle it? At least it works... as long as $datadir
+ # does not contain plus signs. :-)
+ lpairs2.desktop:
+-	@sed -e "s+Icon=+Icon=$(datadir)/icons/lpairs2.png+" \
++	@sed -e "s+Icon=+Icon=$(icondir)/lpairs2.png+" \
+ 	< lpairs2.desktop.in > lpairs2.desktop
+ 
+ ACLOCAL_AMFLAGS = -I m4
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/lpairs2.git/commitdiff/3adf1513e4486d631ee89a1a222849e01c394333



More information about the pld-cvs-commit mailing list