Package lbreakouthd: Specfile

Name: lbreakouthd
Version: 1.1.8
Release: alt1
Summary: Classic Breakout-Style Game
License: GPLv2+
Group: Games/Arcade
Packager: Ilya Mashkin <oddity@altlinux.ru>
Url: http://lgames.sourceforge.net/LBreakoutHD/
Source: https://downloads.sourceforge.net/project/lgames/%name/%name-%version.tar.gz
Source1: https://sourceforge.net/projects/lgames/files/add-ons/lbreakout2/lbreakout2-levelsets-20160512.tar.gz
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: pkgconfig(SDL2_image)
BuildRequires: pkgconfig(SDL2_mixer)
BuildRequires: pkgconfig(SDL2_ttf)
BuildRequires: pkgconfig(sdl2)

%description
LBreakoutHD is a scaleable 16:9 remake of LBreakout2, a Breakout-style
arcade game for Linux featuring a number of added graphical enhancements
and effects. You control a paddle at the bottom of the playing field
and must destroy bricks at the top by bouncing balls against them.

%prep
%setup

%build
%configure \
    --bindir=%_gamesbindir \
    --datadir=%_gamesdatadir \
    --localstatedir=%_localstatedir/games
%make_build

%install
%make_install DESTDIR=%buildroot install

mkdir -p %buildroot%_datadir/%name/levels
tar -xf %SOURCE1 -C %buildroot%_datadir/%name/levels

mkdir -p %buildroot%_datadir/applications
cp %buildroot%_datadir/games/applications/%name.desktop %buildroot%_datadir/applications/%name.desktop
%find_lang %name

%files -f %name.lang
%doc Changelog README TODO
#_datadir/games/icons/lbreakouthd256.gif
%_datadir/games/icons/lbreakouthd.png
%dir %_datadir/games/%name/themes/
%_datadir/games/%name/themes/*
%dir %_datadir/games/%name/levels/
%dir %_datadir/games/%name/levels/*
%attr(2711,root,games) %_gamesbindir/%name
%_gamesbindir/%name
%_datadir/%name
%_datadir/applications/%name.desktop
%_datadir/games/applications/%name.desktop
%attr(664,games,games) %_localstatedir/games/%name.hscr

%changelog
* Sat May 04 2024 Ilya Mashkin <oddity@altlinux.ru> 1.1.8-alt1
- 1.1.8

* Tue Apr 09 2024 Ilya Mashkin <oddity@altlinux.ru> 1.1.7-alt1
- 1.1.7
- Copy desktop file to standard location (Closes: #49005)

* Tue Jan 23 2024 Ilya Mashkin <oddity@altlinux.ru> 1.1.6-alt1
- 1.1.6

* Tue Dec 12 2023 Ilya Mashkin <oddity@altlinux.ru> 1.1.5-alt1
- 1.1.5

* Mon Oct 02 2023 Ilya Mashkin <oddity@altlinux.ru> 1.1.4-alt1
- 1.1.4

* Sun May 28 2023 Ilya Mashkin <oddity@altlinux.ru> 1.1.3-alt1
- 1.1.3

* Tue Apr 04 2023 Ilya Mashkin <oddity@altlinux.ru> 1.1.2-alt1
- 1.1.2

* Thu Dec 29 2022 Ilya Mashkin <oddity@altlinux.ru> 1.1.1-alt1
- 1.1.1

* Wed Nov 23 2022 Ilya Mashkin <oddity@altlinux.ru> 1.1-alt1
- 1.1

* Sun May 01 2022 Ilya Mashkin <oddity@altlinux.ru> 1.0.10-alt1
- 1.0.10

* Tue Mar 08 2022 Ilya Mashkin <oddity@altlinux.ru> 1.0.9-alt1
- 1.0.9

* Sun Feb 13 2022 Ilya Mashkin <oddity@altlinux.ru> 1.0.8-alt1
- Initial build