[packages/lbreakouthd] - new, lbreakout/lbreakout2 successor

qboosh qboosh at pld-linux.org
Sun Jun 16 14:28:48 CEST 2024


commit b25db8624f519347f2bb1d923efd88ea2f931842
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Jun 16 13:41:35 2024 +0200

    - new, lbreakout/lbreakout2 successor

 lbreakouthd-desktop.patch | 12 +++++++++
 lbreakouthd-format.patch  | 11 ++++++++
 lbreakouthd.spec          | 68 +++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 91 insertions(+)
---
diff --git a/lbreakouthd.spec b/lbreakouthd.spec
new file mode 100644
index 0000000..07faef0
--- /dev/null
+++ b/lbreakouthd.spec
@@ -0,0 +1,68 @@
+Summary:	Breakout/Arkanoid style arcade game
+Summary(pl.UTF-8):	Gra w stylu Breakouta/Arkanoida
+Name:		lbreakouthd
+Version:	1.1.8
+Release:	1
+License:	GPL v3+
+Group:		X11/Applications/Games
+Source0:	https://downloads.sourceforge.net/lgames/%{name}-%{version}.tar.gz
+# Source0-md5:	d0af6085ca948059cb46145285c57b18
+Patch0:		%{name}-format.patch
+Patch1:		%{name}-desktop.patch
+URL:		https://lgames.sourceforge.net/LBreakout2
+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:	rpmbuild(macros) >= 1.268
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		_localstatedir	/var/games
+
+%description
+LBreakout is a breakout game with nice graphics, effects and sound.
+You can play it either with mouse or keyboard and you can create your
+own levels.
+
+%description -l pl.UTF-8
+LBreakout to gra breakout z przyjemną grafiką, efektami i dźwiękiem.
+Można grać myszą lub klawiaturą oraz tworzyć własne poziomy.
+
+%prep
+%setup -q
+%patch0 -p1
+%patch1 -p1
+
+%{__sed} -i -e 's,\$(datadir)/icons,$(datadir)/pixmaps,' Makefile.am
+
+%build
+%{__aclocal}
+%{__autoconf}
+%{__automake}
+%configure
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%find_lang %{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files -f %{name}.lang
+%defattr(644,root,root,755)
+%doc Changelog README TODO
+%attr(2755,root,games) %{_bindir}/lbreakouthd
+%{_datadir}/lbreakouthd
+%attr(664,root,games) %config(noreplace) %verify(not md5 mtime size) /var/games/lbreakouthd.hscr
+%{_desktopdir}/lbreakouthd.desktop
+%{_pixmapsdir}/lbreakouthd.png
diff --git a/lbreakouthd-desktop.patch b/lbreakouthd-desktop.patch
new file mode 100644
index 0000000..e23f593
--- /dev/null
+++ b/lbreakouthd-desktop.patch
@@ -0,0 +1,12 @@
+--- lbreakouthd-1.1.8/lbreakouthd.desktop.orig	2024-04-02 18:01:23.000000000 +0200
++++ lbreakouthd-1.1.8/lbreakouthd.desktop	2024-06-16 13:37:01.027374268 +0200
+@@ -1,7 +1,8 @@
+ [Desktop Entry]
+ Name=LBreakoutHD
+ Comment=A ball-and-paddle game with nice graphics.
++Comment[pl]=Gra z piłeczką i paletką, z ładną grafiką.
+ Exec=lbreakouthd
+ Icon=lbreakouthd
+ Type=Application
+-Categories=Game;
++Categories=Game;ArcadeGame;
diff --git a/lbreakouthd-format.patch b/lbreakouthd-format.patch
new file mode 100644
index 0000000..93cc35f
--- /dev/null
+++ b/lbreakouthd-format.patch
@@ -0,0 +1,11 @@
+--- lbreakouthd-1.1.8/configure.ac.orig	2024-04-28 10:18:24.000000000 +0200
++++ lbreakouthd-1.1.8/configure.ac	2024-06-15 22:00:47.661691511 +0200
+@@ -55,7 +55,7 @@ debugflags="-O0 -g -DWITH_BUG_REPORT")
+ AC_SUBST(datdir)
+ AC_SUBST(hiscoredir)
+ 
+-CFLAGS="$CFLAGS -Wno-int-conversion -Wno-format -Wno-implicit-function-declaration"
++CFLAGS="$CFLAGS -Wno-int-conversion"
+ CFLAGS="$CFLAGS $debugflags -DSRC_DIR=\\\"$datdir\\\" -DCONFIG_DIR_NAME=\\\"$configdir\\\""
+ CXXFLAGS="$CXXFLAGS -std=c++11 -Wall $debugflags -DLOCALEDIR=\\\"$localedir\\\" -DCONFIGDIR=\\\"$configdir\\\" -DDATADIR=\\\"$datdir\\\" -DHISCOREDIR=\\\"$hiscoredir\\\""
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/lbreakouthd.git/commitdiff/b25db8624f519347f2bb1d923efd88ea2f931842



More information about the pld-cvs-commit mailing list