|
|
89e6913 |
Name: alex4
|
|
|
89e6913 |
Version: 1.0
|
|
|
c538221 |
Release: 7%{?dist}
|
|
|
89e6913 |
Summary: Alex the Allegator 4 - Platform game
|
|
|
89e6913 |
Group: Amusements/Games
|
|
|
4aa059d |
License: GPL+
|
|
|
89e6913 |
URL: http://allegator.sourceforge.net/
|
|
|
89e6913 |
Source0: http://dl.sf.net/sourceforge/allegator/alex4src_data.zip
|
|
|
89e6913 |
Source1: alex4.desktop
|
|
|
89e6913 |
Source2: alex4.png
|
|
|
89e6913 |
Patch0: alex4-unix.patch
|
|
|
0dbfb8c |
Patch1: alex4-allegro-4.2.patch
|
|
|
0dbfb8c |
Patch2: alex4-dot-files-endian-clean.patch
|
|
|
0dbfb8c |
Patch3: alex4-fsf-address.patch
|
|
|
89e6913 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
89e6913 |
BuildRequires: allegro-devel dumb-devel desktop-file-utils ImageMagick
|
|
|
89e6913 |
Requires: hicolor-icon-theme
|
|
|
89e6913 |
|
|
|
89e6913 |
%description
|
|
|
89e6913 |
In the latest installment of the series Alex travels through the jungle in
|
|
|
89e6913 |
search of his kidnapped girlfriend. Plenty of classic platforming in four
|
|
|
89e6913 |
nice colors guaranteed!
|
|
|
89e6913 |
|
|
|
89e6913 |
|
|
|
89e6913 |
%prep
|
|
|
89e6913 |
%setup -q -n alex4src
|
|
|
0dbfb8c |
%patch0 -p1
|
|
|
0dbfb8c |
%patch1 -p1
|
|
|
0dbfb8c |
%patch2 -p1
|
|
|
0dbfb8c |
%patch3 -p1
|
|
|
89e6913 |
sed -i 's/\r//' *.txt
|
|
|
89e6913 |
|
|
|
89e6913 |
|
|
|
89e6913 |
%build
|
|
|
89e6913 |
pushd src
|
|
|
89e6913 |
make %{?_smp_mflags} PREFIX=%{_prefix} \
|
|
|
89e6913 |
CFLAGS="$RPM_OPT_FLAGS -Wno-deprecated-declarations"
|
|
|
89e6913 |
popd
|
|
|
89e6913 |
|
|
|
89e6913 |
|
|
|
89e6913 |
%install
|
|
|
89e6913 |
rm -rf $RPM_BUILD_ROOT
|
|
|
89e6913 |
pushd src
|
|
|
89e6913 |
make install PREFIX=$RPM_BUILD_ROOT%{_prefix}
|
|
|
89e6913 |
popd
|
|
|
89e6913 |
|
|
|
89e6913 |
# below is the desktop file and icon stuff.
|
|
|
89e6913 |
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
|
|
|
89e6913 |
desktop-file-install --vendor fedora \
|
|
|
89e6913 |
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
|
|
|
89e6913 |
%{SOURCE1}
|
|
|
89e6913 |
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps
|
|
|
89e6913 |
install -p -m 644 %{SOURCE2} \
|
|
|
89e6913 |
$RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps
|
|
|
89e6913 |
|
|
|
89e6913 |
|
|
|
89e6913 |
%clean
|
|
|
89e6913 |
rm -rf $RPM_BUILD_ROOT
|
|
|
89e6913 |
|
|
|
89e6913 |
|
|
|
89e6913 |
%post
|
|
|
89e6913 |
touch --no-create %{_datadir}/icons/hicolor || :
|
|
|
4aa059d |
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
|
|
|
4aa059d |
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
|
|
4aa059d |
fi
|
|
|
89e6913 |
|
|
|
89e6913 |
%postun
|
|
|
89e6913 |
touch --no-create %{_datadir}/icons/hicolor || :
|
|
|
4aa059d |
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
|
|
|
4aa059d |
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
|
|
4aa059d |
fi
|
|
|
89e6913 |
|
|
|
89e6913 |
|
|
|
89e6913 |
%files
|
|
|
89e6913 |
%defattr(-,root,root,-)
|
|
|
89e6913 |
%doc license.txt readme.txt
|
|
|
89e6913 |
%{_bindir}/%{name}
|
|
|
89e6913 |
%{_datadir}/%{name}
|
|
|
89e6913 |
%{_datadir}/applications/fedora-%{name}.desktop
|
|
|
89e6913 |
%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
|
|
|
89e6913 |
|
|
|
89e6913 |
|
|
|
89e6913 |
%changelog
|
|
|
c538221 |
* Sun Sep 7 2008 Hans de Goede <hdegoede@redhat.com> 1.0-7
|
|
|
c538221 |
- Fix patch fuzz build failure
|
|
|
c538221 |
|
|
|
184005a |
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.0-6
|
|
|
184005a |
- Autorebuild for GCC 4.3
|
|
|
184005a |
|
|
|
0dbfb8c |
* Wed Jan 30 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 1.0-5
|
|
|
0dbfb8c |
- Several patches from Debian (Thanks Peter De Wachter)
|
|
|
0dbfb8c |
- endian clean dot-files code
|
|
|
0dbfb8c |
- fsf address corrected
|
|
|
0dbfb8c |
- no longer use deprecated allegro functions
|
|
|
0dbfb8c |
|
|
|
4aa059d |
* Thu Aug 2 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.0-4
|
|
|
4aa059d |
- Update License tag for new Licensing Guidelines compliance
|
|
|
4aa059d |
|
|
|
667b119 |
* Sat Mar 10 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.0-3
|
|
|
667b119 |
- Fixup .desktop file categories for games-menus usage
|
|
|
667b119 |
|
|
|
89e6913 |
* Fri Nov 3 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 1.0-2
|
|
|
89e6913 |
- Updated alex4-unix.patch to take big endian machines into account when
|
|
|
89e6913 |
loading maps
|
|
|
89e6913 |
|
|
|
89e6913 |
* Thu Nov 2 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 1.0-1
|
|
|
89e6913 |
- Initial Fedora Extras package
|