Group: Games/Other
# BEGIN SourceDeps(oneline):
BuildRequires: /usr/bin/desktop-file-install gcc-c++ unzip zlib-devel
# END SourceDeps(oneline)
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: raidem
Version: 0.3.1
Release: alt2_41
Summary: 2d top-down shoot'em up
License: zlib
URL: http://home.exetel.com.au/tjaden/raidem/
# This is an exacy copy of the upstream src except that lib/almp3 which is
# an included mp3 decoder has been removed.
Source0: %{name}-%{version}-src.zip
Source1: raidem.png
Source2: raidem.desktop
Patch0: raidem-0.3.1-syslibs.patch
Patch1: raidem-0.3.1-zziplib.patch
Patch2: raidem-libpng15.patch
Patch3: raidem-gcc4.7-stdio.patch
Patch4: raidem-new-api.patch
Patch5: raidem-0.3.1-format-security.patch
Patch6: raidem-0.3.1-system-flags.patch
Patch7: raidem-0.3.1-Makefile-race-condition.patch
Patch8: raidem-0.3.1-enum.patch
Patch9: raidem-0.3.1-counter-dup.patch
BuildRequires: gcc-objc glyph-keeper-allegro-devel libfreetype-devel libadime-devel
BuildRequires: zziplib-devel libpng-devel libAllegroOGG-devel
BuildRequires: automake desktop-file-utils gnustep-base-devel
Requires: icon-theme-hicolor
Source44: import.info
%description
Raid'em is a 2d top-down shoot'em up. It began as a remake of Raid II
(abandoned long ago), but has turned out very differently.
Features: Neat looking graphics, LOTS of explosions and scrap
metal, Eye candy a-plenty, Many different powerups, A desert. And a space
platform. And some snow, 2 player mode, Demo recording and playback, Loads of
fun.
%prep
%setup -q -n %{name}-%{version}-src
%patch0 -p1 -z .syslibs
%patch1 -p1
%patch2 -z .libpng
%patch3 -p0 -z .gcc47
%patch4 -p0 -z .newapi
%patch5 -p1 -z .format-security
%patch6 -p1 -z .system-flags
%patch7 -p1 -z .race-condition
%patch8 -p0 -z .enum
%patch9 -p0 -z .counter
# remove all included system libs, to avoid using the included system headers.
mv lib/loadpng .
rm -fr lib/*
mv loadpng lib
aclocal
autoconf
%build
# override _datadir otherwise it expects its datafile directly under /use/share
%configure --datadir=%{_datadir}/%{name} --disable-id3
%make_build
%install
# DIY, since the Makefile uses install -s and install -g games, etc.
# Fixable but this is easier
mkdir -p $RPM_BUILD_ROOT%{_bindir}
install -m 755 %{name} $RPM_BUILD_ROOT%{_bindir}/%{name}
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}
cp -a data demos maps $RPM_BUILD_ROOT%{_datadir}/%{name}
# below is the desktop file and icon stuff.
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
desktop-file-install \
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
%{SOURCE2}
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps
install -p -m 644 %{SOURCE1} \
$RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps
%files
%doc ChangeLog docs/README.txt docs/damages.txt
%doc --no-dereference docs/LICENCE.txt
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
%changelog
* Tue Feb 25 2020 Igor Vlasenko <viy@altlinux.ru> 0.3.1-alt2_41
- update to new release by fcimport
* Sat Feb 03 2018 Igor Vlasenko <viy@altlinux.ru> 0.3.1-alt2_35
- update to new release by fcimport
* Wed Sep 27 2017 Igor Vlasenko <viy@altlinux.ru> 0.3.1-alt2_34
- update to new release by fcimport
* Thu Aug 03 2017 Igor Vlasenko <viy@altlinux.ru> 0.3.1-alt2_32
- update to new release by fcimport
* Thu Mar 16 2017 Igor Vlasenko <viy@altlinux.ru> 0.3.1-alt2_29
- update to new release by fcimport
* Wed Feb 17 2016 Igor Vlasenko <viy@altlinux.ru> 0.3.1-alt2_28
- update to new release by fcimport
* Sun Sep 20 2015 Igor Vlasenko <viy@altlinux.ru> 0.3.1-alt2_27
- update to new release by fcimport
* Wed Aug 27 2014 Igor Vlasenko <viy@altlinux.ru> 0.3.1-alt2_26
- update to new release by fcimport
* Tue Jul 01 2014 Igor Vlasenko <viy@altlinux.ru> 0.3.1-alt2_25
- update to new release by fcimport
* Mon Aug 12 2013 Igor Vlasenko <viy@altlinux.ru> 0.3.1-alt2_24
- update to new release by fcimport
* Tue Feb 26 2013 Igor Vlasenko <viy@altlinux.ru> 0.3.1-alt2_23
- update to new release by fcimport
* Fri Feb 22 2013 Igor Vlasenko <viy@altlinux.ru> 0.3.1-alt2_22
- update to new release by fcimport
* Mon Dec 31 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.3.1-alt2_21.2
- Rebuilt with libobjc2 instead of libibjc
* Sun Dec 09 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.3.1-alt2_21.1
- Built with gcc 4.7 & libgnustep-objc2 instead of libobjc
* Tue Oct 02 2012 Igor Vlasenko <viy@altlinux.ru> 0.3.1-alt2_21
- gcc46 build
* Fri Jul 27 2012 Igor Vlasenko <viy@altlinux.ru> 0.3.1-alt1_21
- update to new release by fcimport
* Thu Jun 07 2012 Igor Vlasenko <viy@altlinux.ru> 0.3.1-alt1_20
- update to new release by fcimport
* Wed Jan 11 2012 Igor Vlasenko <viy@altlinux.ru> 0.3.1-alt1_19
- update to new release by fcimport
* Tue Nov 08 2011 Igor Vlasenko <viy@altlinux.ru> 0.3.1-alt1_17
- update to new release by fcimport
* Wed Jul 20 2011 Igor Vlasenko <viy@altlinux.ru> 0.3.1-alt1_16
- initial release by fcimport