cvsextras 9665841
Name:           abe
Michael Thomas 0d376e1
Version:        1.1
36f117d
Release:        26%{?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/
Jerry James 6443e6a
Source0:        http://downloads.sourceforge.net/abe/%{name}-%{version}.tar.gz
Jerry James ee6d5a7
Source1:        %{name}-icons.tar.xz
a3eec48
Source2:        %{name}.appdata.xml
Jerry James 6443e6a
# Enable changing the video settings.  Sent upstream 2 Apr 2006:
Jerry James 6443e6a
# https://sourceforge.net/tracker/?func=detail&aid=1463202&group_id=70141&atid=526743
Jerry James 6443e6a
Patch0:         %{name}-1.1-settings.patch
Jerry James 6443e6a
# Fix a double free() bug.  Sent upstream 15 Mar 2011:
Jerry James 6443e6a
# https://sourceforge.net/tracker/?func=detail&aid=3214269&group_id=70141&atid=526745
Jerry James 6443e6a
Patch1:         %{name}-1.1-doublefree.patch
Jerry James e09f18d
# Fix an incorrect printf format specifier.  Sent upstream 15 Mar 2011:
Jerry James 6443e6a
# https://sourceforge.net/tracker/?func=detail&aid=3214270&group_id=70141&atid=526745
Jerry James 6443e6a
Patch2:         %{name}-1.1-format.patch
Jerry James 6443e6a
# Add support for aarch64.  Sent upstream 25 Mar 2013:
Jerry James 6443e6a
# https://sourceforge.net/tracker/?func=detail&aid=3609029&group_id=70141&atid=526743
Jerry James 6443e6a
Patch3:         %{name}-1.1-aarch64.patch
Jerry James 9a8375a
# Fix build failure with -Werror=format-security
Jerry James 9a8375a
Patch4:         %{name}-1.1-format-security.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
Jerry James ee6d5a7
Requires:       hicolor-icon-theme
Jerry James ee6d5a7
Jerry James ee6d5a7
%global icondir %{_datadir}/icons/hicolor
Jerry James ee6d5a7
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
Jerry James 6443e6a
%patch0
97aa039
%patch1
97aa039
%patch2
Jerry James 9a8375a
%patch3
Jerry James 9a8375a
%patch4
cvsextras 9665841
Jerry James 6443e6a
# Fix the FSF's address
Jerry James 6443e6a
sed 's/59 Temple Place, Suite 330, Boston, MA  02111-1307/51 Franklin Street, Suite 500, Boston, MA  02110-1335/' COPYING > COPYING.new
Jerry James 6443e6a
touch -r COPYING COPYING.new
Jerry James 6443e6a
mv -f COPYING.new COPYING
Jerry James 6443e6a
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}
a3eec48
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/appdata/
cvsextras 9665841
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/applications/
Jerry James ee6d5a7
mkdir -p $RPM_BUILD_ROOT/%{icondir}
cvsextras 9665841
cp -p -r images maps sounds $RPM_BUILD_ROOT/%{_datadir}/%{name}
Jerry James ee6d5a7
tar xJf %{SOURCE1} -C $RPM_BUILD_ROOT%{icondir}
a3eec48
install -p -m 644 %{SOURCE2} $RPM_BUILD_ROOT/%{_datadir}/appdata/
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
Michael Thomas b68ccf8
Categories=Game;ArcadeGame;
cvsextras 9665841
EOF
cvsextras 9665841
bff28c2
desktop-file-install --dir $RPM_BUILD_ROOT/%{_datadir}/applications/ %{name}.desktop
cvsextras 9665841
97aa039
%post
Jerry James ee6d5a7
update-desktop-database %{_datadir}/applications &>/dev/null || :
Jerry James ee6d5a7
touch --no-create %{icondir} >&/dev/null ||:
Jerry James ee6d5a7
gtk-update-icon-cache %{icondir} >&/dev/null ||:
97aa039
97aa039
%postun
Jerry James ee6d5a7
update-desktop-database %{_datadir}/applications &>/dev/null
Jerry James ee6d5a7
touch --no-create %{icondir} >&/dev/null ||:
Jerry James ee6d5a7
gtk-update-icon-cache %{icondir} >&/dev/null ||:
cvsextras 9665841
cvsextras 9665841
%files
Jerry James e1260a4
%doc README
Jerry James e1260a4
%license COPYING
cvsextras 9665841
%{_bindir}/*
Michael Thomas 922388f
%{_datadir}/%{name}
a3eec48
%{_datadir}/appdata/%{name}.appdata.xml
bff28c2
%{_datadir}/applications/%{name}.desktop
Jerry James ee6d5a7
%{_datadir}/icons/hicolor/*/apps/%{name}.png
cvsextras 9665841
cvsextras 9665841
%changelog
36f117d
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-26
36f117d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
36f117d
aca251c
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-25
aca251c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
aca251c
Jerry James e09f18d
* Wed Aug 13 2014 Jerry James <loganjerry@gmail.com> - 1.1-24
Jerry James e09f18d
- Drop unused abe.png file
Jerry James e09f18d
- Update -aarch64 patch with newer config.{guess,sub}
Jerry James e09f18d
Jerry James ee6d5a7
* Mon Jul 21 2014 Jerry James <loganjerry@gmail.com> - 1.1-23
Jerry James ee6d5a7
- Add icons of varying sizes
Jerry James e1260a4
- Use the new license macro
Jerry James ee6d5a7
04d8171
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-22
04d8171
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
04d8171
Jerry James 9a8375a
* Wed Nov 20 2013 Jerry James <loganjerry@gmail.com> - 1.1-21
Jerry James 9a8375a
- Add -format-security patch
Jerry James 9a8375a
a3eec48
* Fri Nov  8 2013 Jerry James <loganjerry@gmail.com> - 1.1-20
a3eec48
- Add an AppData file
a3eec48
207d86d
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-19
207d86d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
207d86d
Jerry James 6443e6a
* Mon Mar 25 2013 Jerry James <loganjerry@gmail.com> - 1.1-18
Jerry James 6443e6a
- Add aarch64 support (bz 924964)
Jerry James 6443e6a
- Fix the FSF's address in COPYING
Jerry James 6443e6a
- Add comments on the upstream status of each patch
Jerry James 6443e6a
- Remove deprecated "Encoding" key from desktop file
Jerry James 6443e6a
bff28c2
* Sat Feb 09 2013 Rahul Sundaram <sundaram@fedoraproject.org> - 1.1-17
bff28c2
- Remove vendor tag from desktop file. https://fedorahosted.org/fpc/ticket/247
bff28c2
 
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
a3eec48
* Thu 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.