cvsextras 9665841
Name:           abe
Michael Thomas 0d376e1
Version:        1.1
25d762c
Release:        16%{?dist}
f5113b8
db240e1
Summary:        Scrolling, platform-jumping, ancient pyramid exploring game
cvsextras 9665841
Group:          Amusements/Games
Michael Thomas 922388f
License:        GPL+
cvsextras 9665841
URL:            http://abe.sourceforge.net/
Michael Thomas b68ccf8
Source0:        http://downloads.sourceforge.net/abe/abe-%{version}.tar.gz
a54a37c
Source1:        %{name}.png
Michael Thomas 922388f
Patch0:         abe-1.1-settings.patch
97aa039
Patch1:         abe-1.1-doublefree.patch
97aa039
Patch2:         abe-1.1-format.patch
cvsextras 9665841
db240e1
BuildRequires:  SDL-devel >= 1.2.3, SDL_mixer-devel >= 1.2.3
Michael Thomas 7c77538
BuildRequires:  libXmu-devel libXi-devel
a54a37c
BuildRequires:  desktop-file-utils
cvsextras 9665841
cvsextras 9665841
%description
cvsextras 9665841
A scrolling, platform-jumping, key-collecting, ancient pyramid exploring game,
cvsextras 9665841
vaguely in the style of similar games for the Commodore+4.
cvsextras 9665841
cvsextras 9665841
%prep
Michael Thomas 0d376e1
%setup -q
4f721d4
%patch0 -p1
97aa039
%patch1
97aa039
%patch2
cvsextras 9665841
cvsextras 9665841
%build
Michael Thomas 0d376e1
%configure --with-data-dir=%{_datadir}/%{name}
97aa039
sed -i "s/^CFLAGS =.*/CFLAGS = ${RPM_OPT_FLAGS} \$\(SDL_CFLAGS\)/" src/Makefile
cvsextras 9665841
make %{?_smp_mflags}
cvsextras 9665841
cvsextras 9665841
%install
Michael Thomas 0d376e1
make DESTDIR=$RPM_BUILD_ROOT install
Michael Thomas 0d376e1
Michael Thomas 0d376e1
# make install does not copy the game data files.
cvsextras 9665841
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{name}
cvsextras 9665841
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/applications/
cvsextras 9665841
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/pixmaps/
cvsextras 9665841
cp -p -r images maps sounds $RPM_BUILD_ROOT/%{_datadir}/%{name}
cvsextras 9665841
install -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT/%{_datadir}/pixmaps/
cvsextras 9665841
cvsextras 9665841
cat << EOF > %{name}.desktop
cvsextras 9665841
[Desktop Entry]
cvsextras 9665841
Name=Abe
cvsextras 9665841
Comment="Abe's Amazing Adventure"
cvsextras 9665841
Exec=abe
97aa039
Icon=abe
cvsextras 9665841
Terminal=false
cvsextras 9665841
Type=Application
cvsextras 9665841
Encoding=UTF-8
Michael Thomas b68ccf8
Categories=Game;ArcadeGame;
cvsextras 9665841
EOF
cvsextras 9665841
cvsextras 9665841
desktop-file-install --vendor fedora --dir $RPM_BUILD_ROOT/%{_datadir}/applications/ %{name}.desktop
cvsextras 9665841
97aa039
%post
97aa039
update-desktop-database %{_datadir}/applications &>/dev/null
97aa039
97aa039
%postun
97aa039
if [ $1 -eq 0 ]; then
97aa039
    update-desktop-database %{_datadir}/applications &>/dev/null
97aa039
fi
cvsextras 9665841
cvsextras 9665841
%files
a54a37c
%doc COPYING README
cvsextras 9665841
%{_bindir}/*
Michael Thomas 922388f
%{_datadir}/%{name}
Michael Thomas 922388f
%{_datadir}/applications/*.desktop
Michael Thomas 922388f
%{_datadir}/pixmaps/%{name}.png
cvsextras 9665841
cvsextras 9665841
%changelog
25d762c
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-16
25d762c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
25d762c
bf60a0b
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-15
bf60a0b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
bf60a0b
8b1481e
* Fri Jan  6 2012 Jerry James <loganjerry@gmail.com> - 1.1-14
8b1481e
- Rebuild for GCC 4.7
8b1481e
- Remove bogus script Requires
8b1481e
- Remove unnecessary spec file elements (clean script, etc.)
8b1481e
97aa039
* Mon Mar 14 2011 Jerry James <loganjerry@gmail.com> - 1.1-13
97aa039
- Fix double free (bz 509052)
97aa039
- Fix incorrectly-sized format specifier
97aa039
- Don't use abe's extra optimization and debugging CFLAGS (fixes debuginfo)
97aa039
- Remove filename extension from Icon field in desktop file
97aa039
- Remove BuildRoot tag
97aa039
- Add post/postun scripts, fix Requires for those scripts
97aa039
3201b68
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-12
3201b68
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
3201b68
d82a3b3
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-11
d82a3b3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
d82a3b3
003187e
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-10
003187e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
003187e
Michael Thomas a48895b
* Fri Dec 19 2008 Wart <wart@kobold.org> - 1.1-9
Michael Thomas a48895b
- Add coreutils requirement for rpm post scripts
Michael Thomas a48895b
4f721d4
* Sun Sep 21 2008 Ville Skyttä <ville.skytta at iki.fi> - 1.1-8
4f721d4
- Fix Patch0:/%%patch mismatch.
4f721d4
Michael Thomas 58b8f86
* Fri Feb 8 2008 Wart <wart@kobold.org> 1.1-7
Michael Thomas 58b8f86
- Rebuild for gcc 4.3
Michael Thomas 58b8f86
Michael Thomas 922388f
* Wed Aug 15 2007 Wart <wart@kobold.org> 1.1-6
Michael Thomas 922388f
- License tag clarification
Michael Thomas 922388f
- Simplify %%file section
Michael Thomas 922388f
Michael Thomas b68ccf8
* Fri Jun 1 2007 Wart <wart@kobold.org> 1.1-5
Michael Thomas b68ccf8
- Update desktop category for better game menu integration
Michael Thomas b68ccf8
- Use improved download URL.
Michael Thomas b68ccf8
Michael Thomas 7c77538
* Thu Aug 31 2006 Wart <wart@kobold.org> 1.1-4
Michael Thomas 7c77538
- Add missing BuildRequires
Michael Thomas 7c77538
Michael Thomas a5d467d
* Thu Aug 31 2006 Wart <wart@kobold.org> 1.1-3
Michael Thomas a5d467d
- Rebuild for Fedora Extras
Michael Thomas a5d467d
Michael Thomas ebb92ee
* Sun Apr 2 2006 Wart <wart@kobold.org> 1.1-2
Michael Thomas ebb92ee
- Enable changing the video settings (BZ #187589)
Michael Thomas ebb92ee
Michael Thomas 0d376e1
* Sat Mar 4 2006 Wart <wart@kobold.org> 1.1-1
Michael Thomas 0d376e1
- Update to 1.1
Michael Thomas 0d376e1
Michael Thomas 2da97a7
* Sat Mar 4 2006 Wart <wart@kobold.org> 1.0-6
Michael Thomas 2da97a7
- rebuild for FC5
Michael Thomas 2da97a7
8a92096
* Mon Apr 11 2005 Panu Matilainen <pmatilai@welho.com> 0:1.0-5
8a92096
- fix build on gcc4
8a92096
- patch to fix issues in #149362
8a92096
f5113b8
* Fri Apr  7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
f5113b8
- rebuilt
f5113b8
cvsextras 9665841
* Wed Aug 13 2003 Panu Matilainen <pmatilai@welho.com> 0:1.0-0.fdr.3
cvsextras 9665841
- doh.. remember to update the icon to png in desktop file too
cvsextras 9665841
cvsextras 9665841
* Fri Aug 08 2003 Panu Matilainen <pmatilai@welho.com> 0:1.0-0.fdr.2
cvsextras 9665841
- fix QA issues in #555
cvsextras 9665841
cvsextras 9665841
* Sun Aug 03 2003 Panu Matilainen <pmatilai@welho.com> 0:1.0-0.fdr.1
cvsextras 9665841
- Initial Fedora packaging.