[packages/supertux] - up to 0.6.3
mrozowik
mrozowik at pld-linux.org
Fri Nov 24 15:25:56 CET 2023
commit 73e88185529bc6bec2cf6414e6e9d77a33b64237
Author: Krzysztof Mrozowicz <mrozowik at pld-linux.org>
Date: Fri Nov 24 13:41:09 2023 +0000
- up to 0.6.3
supertux-gcc4.patch | 12 --------
supertux.desktop | 10 ------
supertux.spec | 88 +++++++++++++++++++++++++++++++++++++----------------
3 files changed, 61 insertions(+), 49 deletions(-)
---
diff --git a/supertux.spec b/supertux.spec
index 5e9a49f..81bfb35 100644
--- a/supertux.spec
+++ b/supertux.spec
@@ -1,25 +1,42 @@
+%bcond_with discord # Discord integration
+#
Summary: Game similar to the original game Super Mario Bros
Summary(pl.UTF-8): Gra podobna do oryginalnej gry Super Mario Bros
Name: supertux
-Version: 0.1.3
-Release: 3
+Version: 0.6.3
+Release: 1
License: GPL
Group: X11/Applications/Games
-Source0: http://download.berlios.de/supertux/%{name}-%{version}.tar.bz2
-# Source0-md5: f2fc288459f33d5cd8f645fbca737a63
-Source1: %{name}.desktop
-Patch0: %{name}-gcc4.patch
+Source0: https://github.com/SuperTux/supertux/releases/download/v%{version}/SuperTux-v%{version}-Source.tar.gz
+# Source0-md5: 798d5518d3f4672ee0bac92693063c2f
+Patch0: %{name}-0.6.3-missing-headers.patch
URL: http://super-tux.sourceforge.net/
+BuildRequires: GLM
+BuildRequires: OpenAL-devel
BuildRequires: OpenGL-devel
-BuildRequires: SDL-devel >= 1.2.4
-BuildRequires: SDL_image-devel
-BuildRequires: SDL_mixer-devel
-BuildRequires: autoconf >= 2.54
-BuildRequires: automake
+BuildRequires: SDL2-devel >= 2.0.1
+BuildRequires: SDL2_image-devel >= 2.0.0
+BuildRequires: boost-devel
+BuildRequires: cmake
+BuildRequires: curl-devel
+BuildRequires: doxygen
+BuildRequires: freetype-devel
+BuildRequires: fribidi-devel
+BuildRequires: glew-devel
+BuildRequires: graphviz
+BuildRequires: harfbuzz-devel
+BuildRequires: libogg-devel
+BuildRequires: libpng-devel
+BuildRequires: libraqm-devel
+BuildRequires: libvorbis-devel
+BuildRequires: physfs-devel
+BuildRequires: pkgconfig
+BuildRequires: rpmbuild(macros) >= 1.742
+BuildRequires: zlib-devel
Requires: OpenGL
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define _noautoreqdep libGL.so.1 libGLU.so.1
+#%define _noautoreqdep libGL.so.1 libGLU.so.1
%description
Super Mario Bros style game starring Tux the penguin.
@@ -27,36 +44,53 @@ Super Mario Bros style game starring Tux the penguin.
%description -l pl.UTF-8
Gra w stylu Super Mario Bros z pingwinem Tuksem w roli głównej.
+%post
+%update_desktop_database_post
+%update_icon_cache hicolor
+
+%postun
+%update_desktop_database_postun
+%update_icon_cache hicolor
+
%prep
-%setup -q
+%setup -q -n SuperTux-v%{version}-Source
%patch0 -p1
%build
-%{__aclocal} -I mk/autoconf
-%{__autoconf}
-%{__automake}
-%configure \
- %{?debug:--enable-debug}%{!?debug:--disable-debug}
+mkdir -p build
+cd build
+%cmake .. \
+ -DINSTALL_SUBDIR_BIN=bin \
+ %{cmake_on_off discord ENABLE_DISCORD} \
+ -DCMAKE_BUILD_TYPE=RelWithDebInfo
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
-
+cd build
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
-install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
-cp -a data/images/icon.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.xpm
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/supertux2
+
+%if %{with discord}
+%{__rm} $RPM_BUILD_ROOT%{_includedir}/discord_*.h
+%endif
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc AUTHORS ChangeLog LEVELDESIGN README TODO
-%attr(755,root,root) %{_bindir}/*
-%{_datadir}/%{name}
-%{_desktopdir}/*.desktop
-%{_pixmapsdir}/*.xpm
+%doc CODINGSTYLE.md CONTRIBUTING.md NEWS.md README.md
+%attr(755,root,root) %{_bindir}/supertux2
+%{_datadir}/games/supertux2
+%{_desktopdir}/supertux2.desktop
+%{_iconsdir}/hicolor/scalable/apps/supertux2.svg
+%{_datadir}/metainfo/supertux2.appdata.xml
+%{_pixmapsdir}/supertux.png
+%{_pixmapsdir}/supertux.xpm
+%if %{with discord}
+%{_libdir}/libdiscord-rpc.so
+%endif
diff --git a/supertux-gcc4.patch b/supertux-gcc4.patch
deleted file mode 100644
index 5bcf537..0000000
--- a/supertux-gcc4.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -uNr supertux-0.1.3.orig/src/menu.h supertux-0.1.3/src/menu.h
---- supertux-0.1.3.orig/src/menu.h 2005-06-21 23:16:07.000000000 +0200
-+++ supertux-0.1.3/src/menu.h 2006-03-19 15:49:55.277266712 +0100
-@@ -207,7 +207,7 @@
-
- bool isToggled(int id);
-
-- void Menu::get_controlfield_key_into_input(MenuItem *item);
-+ void get_controlfield_key_into_input(MenuItem *item);
-
- void draw ();
- void draw_item(int index, int menu_width, int menu_height);
diff --git a/supertux.desktop b/supertux.desktop
deleted file mode 100644
index 97a29e6..0000000
--- a/supertux.desktop
+++ /dev/null
@@ -1,10 +0,0 @@
-[Desktop Entry]
-Name=SuperTux
-Comment=Game similar to the original game Super Mario Bros
-Comment[pl]=Gra podobna do oryginalnej gry Super Mario Bros
-Exec=supertux
-Terminal=false
-Icon=supertux
-Type=Application
-Categories=Game;ArcadeGame;
-# vi: encoding=utf-8
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/supertux.git/commitdiff/73e88185529bc6bec2cf6414e6e9d77a33b64237
More information about the pld-cvs-commit
mailing list