fb1684
#remove once using %%configure again
fb1684
%global debug_package %{nil}
e51bf2
%define apricotsdir %{_datadir}/apricots
e51bf2
Name: apricots
e51bf2
Version:  0.2.6
e23365
Release:  26%{?dist}
e51bf2
Summary: 2D air combat game
e51bf2
e51bf2
License: GPLv2
e51bf2
URL: http://www.fishies.org.uk/apricots.html
e51bf2
Source0: http://www.fishies.org.uk/apricots-%{version}.tar.gz       
e51bf2
Source1: apricots.png
e51bf2
#Icon created from screenshot on website
e51bf2
Source2: apricots.desktop
e51bf2
Patch0: apricots-0.2.6-alut-apricots.patch
e51bf2
Patch1: apricots-0.2.6-alut-sampleio.patch
e51bf2
Patch2: apricots-0.2.6-alut-configure.patch
e51bf2
# alut patches sent upstream.
e51bf2
Patch3: apricots-0.2.6-path.patch
204217
#Patch4: apricots-0.2.6-alincludes.patch
4ced32
BuildRequires: gcc gcc-c++
e51bf2
BuildRequires: SDL-devel
8606aa
BuildRequires: freealut-devel
e51bf2
BuildRequires: desktop-file-utils
cd297c
BuildRequires: openal-soft-devel
204217
BuildRequires: autoconf automake
72a3fa
ExcludeArch: ppc64le aarch64
e51bf2
e51bf2
%description
e51bf2
It's a game where you fly a little plane around the screen and
e51bf2
shoot things and drop bombs on enemy targets, and it's meant to be quick 
e51bf2
and fun.
e51bf2
e51bf2
%prep
e51bf2
%setup -q
e51bf2
e51bf2
chmod -x apricots/*.cpp
e51bf2
chmod -x apricots/*.h
e51bf2
chmod -x AUTHORS
e51bf2
chmod -x ChangeLog
e51bf2
chmod -x COPYING
e51bf2
chmod -x README
e51bf2
chmod -x TODO
e51bf2
e51bf2
%patch0 -p0
e51bf2
%patch1 -p0
e51bf2
%patch2 -p0
e51bf2
%patch3 -p0
204217
#%patch4 -p0
e51bf2
e51bf2
%build
fb1684
#Use %%configure once --as-needed is fixed, and fix debug at top of spec.
fb1684
./configure
e78649
make
e51bf2
e51bf2
e51bf2
%install
e51bf2
rm -rf %{buildroot}
e51bf2
mkdir -p %{buildroot}%{_bindir}
e51bf2
install -m 755 apricots/apricots %{buildroot}%{_bindir}
e51bf2
mkdir -p %{buildroot}%{_datadir}/apricots
e51bf2
install -m 644 apricots/*.wav %{buildroot}%{_datadir}/apricots
e51bf2
mkdir -p %{buildroot}%{_sysconfdir}
e51bf2
install -m 644 apricots/apricots.cfg %{buildroot}%{_sysconfdir}
e51bf2
ln -s ../../..%{_sysconfdir}/apricots.cfg %{buildroot}%{_datadir}/apricots/apricots.cfg
e51bf2
install -m 644 apricots/*.psf %{buildroot}%{_datadir}/apricots
e51bf2
install -m 644 apricots/*.shapes %{buildroot}%{_datadir}/apricots
e51bf2
e51bf2
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
fe4be0
desktop-file-install            \
e51bf2
  --dir $RPM_BUILD_ROOT%{_datadir}/applications \
e51bf2
  %{SOURCE2}
e51bf2
e51bf2
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/24x24/apps
e51bf2
install -p -m 644 %{SOURCE1} \
e51bf2
  $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/24x24/apps
e51bf2
e51bf2
e51bf2
%files
e51bf2
%doc AUTHORS ChangeLog COPYING README TODO
e51bf2
%{_bindir}/apricots
e51bf2
%{_datadir}/apricots
fe4be0
%{_datadir}/applications/apricots.desktop
e51bf2
%{_datadir}/icons/hicolor/24x24/apps/apricots.png
e51bf2
%config(noreplace) %{_sysconfdir}/apricots.cfg
e51bf2
e51bf2
e51bf2
%changelog
e23365
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.6-26
e23365
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
e23365
fb1684
* Thu Feb 21 2019 Gwyn Ciesla <gwync@protonmail.com> - 0.2.6-25
fb1684
- Fix FTBFS.
fb1684
b3b7b3
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.6-24
b3b7b3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
b3b7b3
4ced32
* Fri Jul 20 2018 Gwyn Ciesla <limburgher@gmail.com> - 0.2.6-23
4ced32
- BR fix.
4ced32
3b778c
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.6-22
3b778c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
3b778c
84407d
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.6-21
84407d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
84407d
ea414b
* Sun Jan 07 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.2.6-20
ea414b
- Remove obsolete scriptlets
ea414b
810706
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.6-19
810706
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
810706
cda711
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.6-18
cda711
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
cda711
42ab71
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.6-17
42ab71
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
42ab71
3c377c
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.6-16
3c377c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
3c377c
e65ae4
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.6-15
e65ae4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
e65ae4
dbc658
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 0.2.6-14
dbc658
- Rebuilt for GCC 5 C++11 ABI change
dbc658
c0be64
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.6-13
c0be64
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
c0be64
71dc62
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.6-12
71dc62
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
71dc62
64704d
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.6-11
64704d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
64704d
fe4be0
* Sat Feb 09 2013 Jon Ciesla <limburgher@gmail.com> - 0.2.6-10
fe4be0
- Drop desktop vendor tag.
fe4be0
02bf10
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.6-9
02bf10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
02bf10
1824fa
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.6-8
1824fa
- Rebuilt for c++ ABI breakage
1824fa
16ba3f
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.6-7
16ba3f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
16ba3f
b6ba42
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.6-6
b6ba42
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
b6ba42
ff768f
* Thu Aug 20 2009 Jon Ciesla <limb@jcomserv.net> - 0.2.6-5
ff768f
- Rebuild for openal-soft.
ff768f
ddb622
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.6-4
ddb622
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
ddb622
27965d
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.6-3
27965d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
27965d
e51bf2
* Tue Sep 09 2008 Jon Ciesla <limb@jcomserv.net> - 0.2.6-2
e51bf2
- Re-base off of pristine tarball, md5 error in review.
e51bf2
e51bf2
* Tue Aug 26 2008 Jon Ciesla <limb@jcomserv.net> - 0.2.6-1
e51bf2
- Initial packaging.