Name: edgar
Version: 1.24
Release: 1%{?dist}
Summary: A platform game
# edgar now contains sounds licensed under a "good" Fedora license:
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=653813#80
License: GPLv2+ and CC-BY and CC-BY-SA and CC0 and GPLv3
URL: http://www.parallelrealities.co.uk/p/legend-of-edgar.html
Source0: https://github.com/riksweeney/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: SDL_image-devel
BuildRequires: SDL_mixer-devel
BuildRequires: SDL_ttf-devel
BuildRequires: zlib-devel
BuildRequires: gettext
BuildRequires: libappstream-glib
BuildRequires: desktop-file-utils
Requires: hicolor-icon-theme
%description
When his father fails to return home after venturing out one dark and stormy
night, Edgar fears the worst: he has been captured by the evil sorcerer who
lives in a fortress beyond the forbidden swamp.
Donning his armor, Edgar sets off to rescue him, but his quest will not be
easy...
%prep
%setup -q
# Fix Makefile
sed -i 's:$(PREFIX)/share/games/edgar/:$(PREFIX)/share/edgar/:' \
makefile
%build
export CFLAGS="%{optflags}"
make %{?_smp_mflags}
%install
make install DESTDIR=%{buildroot} \
BIN_DIR=%{buildroot}%{_bindir}/ \
DATA_DIR=%{buildroot}%{_datadir}/%{name}/
desktop-file-install \
--delete-original \
--remove-key Encoding \
--dir %{buildroot}%{_datadir}/applications \
%{buildroot}%{_datadir}/applications/%{name}.desktop
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/%{name}.appdata.xml
%find_lang %{name}
%post
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
%postun
if [ $1 -eq 0 ] ; then
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
fi
%posttrans
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%files -f %{name}.lang
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/appdata/*.appdata.xml
%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/*/apps/*
%{_mandir}/man6/%{name}.6*
%doc %{_pkgdocdir}
%changelog
* Tue May 24 2016 Andrea Musuruane <musuruan@gmail.com> - 1.24-1
- Updated to upstream 1.24-1
* Sat Feb 20 2016 Andrea Musuruane <musuruan@gmail.com> - 1.23-1
- Updated to upstream 1.23-1
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.22-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Sat Nov 07 2015 Andrea Musuruane <musuruan@gmail.com> - 1.22-1
- Updated to upstream 1.22-1
- Minor cleanup
* Sun Jun 21 2015 Andrea Musuruane <musuruan@gmail.com> - 1.21-1
- Updated to upstream 1.21-1
- Updated Source0 URL
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.20-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Sat Mar 28 2015 Andrea Musuruane <musuruan@gmail.com> - 1.20-1
- Updated to upstream 1.20-1
- Minor cleanup
* Thu Mar 26 2015 Richard Hughes <rhughes@redhat.com> - 1.19-2
- Add an AppData file for the software center
* Fri Dec 19 2014 Andrea Musuruane <musuruan@gmail.com> - 1.19-1
- Updated to upstream 1.19-1
* Tue Oct 14 2014 Andrea Musuruane <musuruan@gmail.com> - 1.18-1
- Updated to upstream 1.18-1
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.17-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Sun Aug 10 2014 Andrea Musuruane <musuruan@gmail.com> - 1.17-1
- Updated to upstream 1.17-1
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.16-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Sun Jun 01 2014 Andrea Musuruane <musuruan@gmail.com> - 1.16-1
- Updated to upstream 1.16-1
* Sun Mar 02 2014 Andrea Musuruane <musuruan@gmail.com> - 1.15-1
- Updated to upstream 1.15-1
* Thu Jan 02 2014 Andrea Musuruane <musuruan@gmail.com> - 1.14-1
- Updated to upstream 1.14-1
* Mon Oct 28 2013 Andrea Musuruane <musuruan@gmail.com> - 1.13-1
- Updated to upstream 1.13-1
* Sat Aug 31 2013 Andrea Musuruane <musuruan@gmail.com> - 1.12-2
- First import in Fedora
- Dropped no longer needed buildroot cleaning at the beginning of %%install
* Sun Aug 25 2013 Andrea Musuruane <musuruan@gmail.com> - 1.12-1
- Updated to upstream 1.12-1
- Used unversioned docdir
- Sounds are now licensed under a "good" Fedora license
* Wed Jun 19 2013 Andrea Musuruane <musuruan@gmail.com> - 1.09-1
- Updated to upstream 1.09-1
* Thu Apr 04 2013 Andrea Musuruane <musuruan@gmail.com> - 1.08-1
- Updated to upstream 1.08-1
* Sun Mar 03 2013 Andrea Musuruane <musuruan@gmail.com> - 1.07-1
- Updated to upstream 1.07-1
* Fri Feb 08 2013 Andrea Musuruane <musuruan@gmail.com> - 1.06-2
- Updated to upstream 1.06-2
* Sat Jan 26 2013 Andrea Musuruane <musuruan@gmail.com> - 1.06-1
- Updated to upstream 1.06-1
* Thu Dec 06 2012 Andrea Musuruane <musuruan@gmail.com> - 1.05-1
- Updated to upstream 1.05-1
* Sun Oct 28 2012 Andrea Musuruane <musuruan@gmail.com> - 1.04-2
- Fixed license (BZ #2378)
* Sat Sep 22 2012 Andrea Musuruane <musuruan@gmail.com> - 1.04-1
- Updated to upstream 1.04-1
* Wed Aug 08 2012 Andrea Musuruane <musuruan@gmail.com> - 1.03-1
- Updated to upstream 1.03-1
* Sat Jun 23 2012 Andrea Musuruane <musuruan@gmail.com> - 1.02-2
- Updated to upstream 1.02-2
* Sun Jun 17 2012 Andrea Musuruane <musuruan@gmail.com> - 1.02-1
- Updated to upstream 1.02-1
* Wed May 16 2012 Andrea Musuruane <musuruan@gmail.com> - 1.01-1
- Updated to upstream 1.01-2
* Thu Apr 26 2012 Andrea Musuruane <musuruan@gmail.com> - 1.00-1
- First release