97bd934
%global commit 9ce56f69dec5e185058508cb924b1f597a1380e5 
97bd934
%global shortcommit %(c=%{commit}; echo ${c:0:7})
97bd934
97bd934
Name:           abbayedesmorts-gpl
97bd934
Version:        2.0.1
9f87a40
Release:        11.20170709git%{?dist}
97bd934
Summary:        Platform game set in 13th century
97bd934
97bd934
# Graphics and Sounds are licensed under
97bd934
# Creative Commons 3.0 Attribution license.
97bd934
License:        GPLv3 and CC-BY
97bd934
# Original Windows game by locomalito
97bd934
# https://locomalito.com/abbaye_des_morts.php
97bd934
URL:            https://github.com/nevat/abbayedesmorts-gpl 
97bd934
Source0:        https://github.com/nevat/abbayedesmorts-gpl/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
97bd934
Source1:        abbaye.appdata.xml
97bd934
Patch0:         %{name}-2.0.1-ldflags.patch
97bd934
88e3de4
BuildRequires:  gcc
97bd934
BuildRequires:  SDL2-devel
97bd934
BuildRequires:  SDL2_mixer-devel
97bd934
BuildRequires:  SDL2_image-devel
97bd934
BuildRequires:  libappstream-glib
97bd934
BuildRequires:  desktop-file-utils
97bd934
97bd934
%description
97bd934
In the 13th century, the Cathars, who preach about good Christian beliefs, 
97bd934
were being expelled by the Catholic Church out of the Languedoc region in 
97bd934
France.
97bd934
97bd934
One of them, called Jean Raymond, found an old church in which to hide, not 
97bd934
knowing that beneath its ruins lay buried an ancient evil.
97bd934
97bd934
A style close to Spectrum ZX, with its dark background and bright colors, 
97bd934
proper fit with the story, because it does look old and somewhat horrifying. 
97bd934
Also, the gameplay is directly inspired by Manic Miner and Jet Set Willy.
97bd934
97bd934
97bd934
%prep
97bd934
%autosetup -n %{name}-%{commit}
97bd934
97bd934
97bd934
%build
97bd934
export CFLAGS="%{optflags}"
97bd934
export LDFLAGS="%{__global_ldflags}"
88e3de4
%make_build
97bd934
97bd934
97bd934
%install
97bd934
%make_install
97bd934
97bd934
# Validate desktop file
97bd934
desktop-file-validate %{buildroot}%{_datadir}/applications/abbaye.desktop
97bd934
97bd934
# Install AppData file
88e3de4
install -d %{buildroot}%{_datadir}/metainfo
88e3de4
install -p -m 644 %{SOURCE1} %{buildroot}%{_datadir}/metainfo
88e3de4
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/abbaye.appdata.xml
97bd934
97bd934
97bd934
%files
97bd934
%{_bindir}/abbayev2
97bd934
%{_datadir}/abbayev2
88e3de4
%{_datadir}/metainfo/abbaye.appdata.xml
97bd934
%{_datadir}/applications/abbaye.desktop
97bd934
%{_datadir}/pixmaps/abbaye.png
97bd934
%doc ReadMe.md ChangeLog.md screenshots
97bd934
%license COPYING
97bd934
97bd934
97bd934
%changelog
9f87a40
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-11.20170709git
9f87a40
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
9f87a40
af41e48
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-10.20170709git
af41e48
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
af41e48
5e7f740
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-9.20170709git
5e7f740
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
5e7f740
dc4f121
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-8.20170709git
dc4f121
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
dc4f121
88e3de4
* Wed Feb 21 2018 Andrea Musuruane <musuruan@gmail.com> - 2.0.1-7.20170709git
88e3de4
- Added gcc dependency
88e3de4
- Used new AppData directory
88e3de4
- Spec file clean up
88e3de4
72b4749
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-6.20170709git
72b4749
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
72b4749
9359fa9
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-5.20170709git
9359fa9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
9359fa9
5226dc7
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-4.20170709git
5226dc7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
5226dc7
97bd934
* Sat Jul 15 2017 Andrea Musuruane <musuruan@gmail.com> - 2.0.1-3.20170709git
97bd934
- Fixed AppData file
97bd934
- Fixed LDFLAGS usage
97bd934
97bd934
* Thu Jul 13 2017 Andrea Musuruane <musuruan@gmail.com> - 2.0.1-2.20170709git
97bd934
- Updated to new upstream post-release
97bd934
- Added missing BR
97bd934
97bd934
* Sat Jul 08 2017 Andrea Musuruane <musuruan@gmail.com> - 2.0.1-1
97bd934
- First release
97bd934