File retux.spec of Package retux

# spec file for package retux
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2018-2020, Martin Hauke <>
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           retux
Version:        1.6.2
Release:        0
Summary:        An action platformer inspired by the Super Mario games
License:        GPL-3.0-only
Group:          Amusements/Games/Action/Arcade
Source1:        %{name}
BuildRequires:  fdupes
BuildRequires:  python3-base
BuildRequires:  update-desktop-files
Requires:       python3-pygame >= 1.9.1
Requires:       python3-sge-pygame >= 1.7
Requires:       python3-xsge_gui >= 1.2
Requires:       python3-xsge_lighting >= 1.0
Requires:       python3-xsge_path >= 1.0
Requires:       python3-xsge_physics >= 0.12
Requires:       python3-xsge_tiled >= 1.0
BuildArch:      noarch

ReTux (stylized as "reTux" in-game) is a libre 2-D platformer written
in Python and utilizing media from SuperTux.

Although ReTux re-uses the art assets of SuperTux, no code from SuperTux
is used in ReTux. The software portion of ReTux is entirely new, written
in Python and based on the SGE Game Engine.

The main game contains 41 levels split into 5 worldmaps. Each level also
has a Tux doll which can be found for bonus points and 100% completion.

%setup -q
sed -i 's/\r$//' README.txt
sed -i -e '/^#!\//, 1d'
sed -i 's|%{_bindir}/env python3|%{_bindir}/python3|g' data/locale/ data/locale/


install -D -m0755 %{SOURCE1} %{buildroot}/%{_bindir}/%{name}
install -D -m0644 data/images/misc/icon.png %{buildroot}/%{_datadir}/pixmaps/%{name}.png
install -D -m0644 misc/io.github.retux_game.retux.metainfo.xml %{buildroot}/%{_datadir}/metainfo/io.github.retux_game.retux.metainfo.xml
pushd data/locale/
# build language files
install -d %{buildroot}%{_datadir}/%{name}
mv data/ %{buildroot}%{_datadir}/%{name}
install -m0644 %{buildroot}%{_datadir}/%{name}
install -m0755 %{buildroot}%{_datadir}/%{name}/
%suse_update_desktop_file -c %{name} %{name} "ReTux is a 2-D platformer" %{name} %{name} Game ArcadeGame
%fdupes -s %{buildroot}/%{_datadir}
%find_lang %{name}

%files -f %{name}.lang
%doc README.txt
%license COPYING

openSUSE Build Service is sponsored by