Group :: Jogos/Outros
RPM: dd2
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Group: Games/Other
# BEGIN SourceDeps(oneline):
BuildRequires: /usr/bin/desktop-file-install libSDL-devel
# END SourceDeps(oneline)
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: dd2
Version: 0.2.2
Release: alt2_32
Summary: Dodgin' Diamond 2 - Shoot'em up arcade game
License: GPLv2+
URL: http://www.usebox.net/jjm/dd2/
Source0: http://www.usebox.net/jjm/dd2/releases/dd2-%{version}.tar.gz
Source1: %{name}.desktop
Source2: %{name}.png
Patch0: dd2-0.2.1-glob-highscore.patch
Patch1: dd2-0.2.1-640x480-fullscreen.patch
Patch2: dd2-0.2.2-configure-c99.patch
BuildRequires: gcc
BuildRequires: libSDL_mixer-devel desktop-file-utils
Requires: icon-theme-hicolor
Source44: import.info
%description
This is a little shoot'em up arcade game for one or two players. It aims to
be an 'old school' arcade game with low resolution graphics, top-down scroll
action, energy based gameplay and different weapons with several levels of
power.
%prep
%setup -q
%patch0 -p1 -z .highscore
%patch1 -p1 -z .fs
%patch2 -p1 -z .configure-c99
#stop autoxxx from rerunning
touch src/data/Makefile.in
%build
%configure
%make_build
%install
%makeinstall_std
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/%{name}
mkdir -p $RPM_BUILD_ROOT%{_var}/games
mv $RPM_BUILD_ROOT%{_datadir}/%{name}/%{name}-hiscore \
$RPM_BUILD_ROOT%{_var}/games
# below is the desktop file and icon stuff.
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
desktop-file-install \
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
%{SOURCE1}
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/24x24/apps
install -p -m 644 %{SOURCE2} \
$RPM_BUILD_ROOT%{_datadir}/icons/hicolor/24x24/apps/%{name}.png
%files
%doc AUTHORS ChangeLog COPYING NEWS README TODO
%attr(2711,root,games) %{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/24x24/apps/%{name}.png
%config(noreplace) %attr (0664,root,games) %{_var}/games/%{name}-hiscore
%changelog
…
Todas as alterações você pod ver aqui
# BEGIN SourceDeps(oneline):
BuildRequires: /usr/bin/desktop-file-install libSDL-devel
# END SourceDeps(oneline)
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: dd2
Version: 0.2.2
Release: alt2_32
Summary: Dodgin' Diamond 2 - Shoot'em up arcade game
License: GPLv2+
URL: http://www.usebox.net/jjm/dd2/
Source0: http://www.usebox.net/jjm/dd2/releases/dd2-%{version}.tar.gz
Source1: %{name}.desktop
Source2: %{name}.png
Patch0: dd2-0.2.1-glob-highscore.patch
Patch1: dd2-0.2.1-640x480-fullscreen.patch
Patch2: dd2-0.2.2-configure-c99.patch
BuildRequires: gcc
BuildRequires: libSDL_mixer-devel desktop-file-utils
Requires: icon-theme-hicolor
Source44: import.info
%description
This is a little shoot'em up arcade game for one or two players. It aims to
be an 'old school' arcade game with low resolution graphics, top-down scroll
action, energy based gameplay and different weapons with several levels of
power.
%prep
%setup -q
%patch0 -p1 -z .highscore
%patch1 -p1 -z .fs
%patch2 -p1 -z .configure-c99
#stop autoxxx from rerunning
touch src/data/Makefile.in
%build
%configure
%make_build
%install
%makeinstall_std
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/%{name}
mkdir -p $RPM_BUILD_ROOT%{_var}/games
mv $RPM_BUILD_ROOT%{_datadir}/%{name}/%{name}-hiscore \
$RPM_BUILD_ROOT%{_var}/games
# below is the desktop file and icon stuff.
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
desktop-file-install \
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
%{SOURCE1}
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/24x24/apps
install -p -m 644 %{SOURCE2} \
$RPM_BUILD_ROOT%{_datadir}/icons/hicolor/24x24/apps/%{name}.png
%files
%doc AUTHORS ChangeLog COPYING NEWS README TODO
%attr(2711,root,games) %{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/24x24/apps/%{name}.png
%config(noreplace) %attr (0664,root,games) %{_var}/games/%{name}-hiscore
%changelog
…
Todas as alterações você pod ver aqui