Sophie

Sophie

distrib > Mageia > cauldron > i586 > by-pkgid > 792a9a40cc0218ff785bda2f246f8dd4 > files > 4

beret-1.2.1-5.20130311.1.mga9.src.rpm

%define rel     5
%define date    20130311
%define daterel 1

Name:           beret
Version:        1.2.1
Release:        %mkrel %{rel}.%{date}.%{daterel}
Summary:        2D puzzle-platformer starring a telekinetic scientist
Group:          Games/Puzzles
License:        LGPLv2
Url:            http://kiwisauce.com/beret
# Source retrieved from https://gitorious.org/beret/beret
Source0:        %{name}-%{version}+%{date}.tar.xz
Patch0:         beret-1.2.1-mga-libmath-and-flags.patch
Patch1:         beret-1.2.1-mga-resource-and-config-paths.patch

BuildRequires:  icoutils
BuildRequires:  pkgconfig(sdl)
BuildRequires:  pkgconfig(SDL_image)
BuildRequires:  pkgconfig(SDL_mixer)
BuildRequires:  pkgconfig(SDL_ttf)
Requires:       %{name}-data >= %{version}-%{release}

%description
Beret is a 2D puzzle-platformer game about a scientist named Beret
who has gained telekinetic abilities through his research at the Evil
Corporation. He decides that the Evil Corporation is too evil for his
liking, and begins his solitary quest to overthrow the corporation
and punish the evil deeds of his employers.

%package data
Summary:        Data files for the Beret game
BuildArch:      noarch

%description data
This package contains arch-independent data needed by the game Beret,
whose binary is shipped in the %{name} package.

%prep
%setup -q -n %{name}-%{version}+%{date}
%autopatch -p1

%build
%make_build OPTFLAGS="%{optflags}" LDFLAGS="%{ldflags}"

%install
install -D -m755 %{name} %{buildroot}%{_gamesbindir}/%{name}

install -d %{buildroot}%{_gamesdatadir}/%{name}
cp -a images music rooms sfx AveriaSans-Regular.ttf \
    %{buildroot}%{_gamesdatadir}/%{name}

install -d %{buildroot}%{_datadir}/applications
cat << EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Name=Beret
GenericName=Puzzle platformer
Comment=%{summary}
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;LogicGame;
EOF

icotool -x images/icon.ico
install -D -m644 icon_3_32x32x8.png %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png

%files
%{_gamesbindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/48x48/apps/%{name}.png

%files data
%{_gamesdatadir}/%{name}/


%changelog
* Mon Mar 14 2022 umeabot <umeabot> 1.2.1-5.20130311.1.mga9
+ Revision: 1791482
- Mageia 9 Mass Rebuild

* Wed Feb 12 2020 umeabot <umeabot> 1.2.1-4.20130311.1.mga8
+ Revision: 1510696
- Mageia 8 Mass Rebuild

* Fri Sep 21 2018 umeabot <umeabot> 1.2.1-3.20130311.1.mga7
+ Revision: 1295413
- Mageia 7 Mass Rebuild

* Tue Feb 09 2016 umeabot <umeabot> 1.2.1-2.20130311.1.mga6
+ Revision: 952196
- Mageia 6 Mass Rebuild

* Sat Jan 24 2015 akien <akien> 1.2.1-1.20130311.1.mga5
+ Revision: 812122
- imported package beret