|
oddsocks |
468c251 |
Name: asylum
|
|
|
982f044 |
Version: 0.3.2
|
|
|
79289c8 |
Release: 15%{?dist}
|
|
|
71ac6ed |
Summary: Game involving shooting anything that moves & collecting others
|
|
oddsocks |
468c251 |
Group: Amusements/Games
|
|
oddsocks |
468c251 |
# For detailed licensing, see the README
|
|
oddsocks |
468c251 |
License: GPLv3 and Public Domain
|
|
oddsocks |
468c251 |
URL: http://sdl-asylum.sourceforge.net
|
|
oddsocks |
468c251 |
Source0: http://downloads.sourceforge.net/sdl-%{name}/%{name}-%{version}.tar.gz
|
|
oddsocks |
468c251 |
Source1: %{name}.png
|
|
|
71ac6ed |
Patch0: asylum-0.3.2-paths.patch
|
|
|
982f044 |
|
|
oddsocks |
468c251 |
BuildRequires: desktop-file-utils
|
|
oddsocks |
468c251 |
BuildRequires: SDL_mixer-devel
|
|
oddsocks |
468c251 |
Requires: hicolor-icon-theme
|
|
oddsocks |
468c251 |
|
|
oddsocks |
468c251 |
%description
|
|
oddsocks |
468c251 |
SDL Asylum is a C port of the computer game Asylum, which was written by Andy
|
|
oddsocks |
468c251 |
Southgate in 1994 for the Acorn Archimedes and is now public domain. The object
|
|
oddsocks |
468c251 |
is to find things that look like brain cells and shut them down! The game
|
|
oddsocks |
468c251 |
revolves around shooting anything which moves, collecting anything which
|
|
oddsocks |
468c251 |
doesn't move and most importantly, finding your way to each of the eight
|
|
oddsocks |
468c251 |
pulsating neurons scattered through the immense map.
|
|
oddsocks |
468c251 |
|
|
oddsocks |
468c251 |
%prep
|
|
oddsocks |
468c251 |
%setup -q
|
|
oddsocks |
34a7c5c |
|
|
|
63535a1 |
%patch0 -p0
|
|
|
63535a1 |
|
|
oddsocks |
468c251 |
# Character encoding fixes
|
|
oddsocks |
468c251 |
iconv -f iso8859-1 README -t utf8 > README.conv \
|
|
oddsocks |
468c251 |
&& /bin/mv -f README.conv README
|
|
oddsocks |
468c251 |
|
|
oddsocks |
468c251 |
# Delete bundled binary to make absolutely sure we get a new one.
|
|
oddsocks |
468c251 |
rm -f %{name}
|
|
oddsocks |
468c251 |
|
|
oddsocks |
468c251 |
%build
|
|
|
fac2f9f |
make %{?_smp_mflags} CFLAGS="%{optflags}" LDFLAGS="%{?__global_ldflags}"
|
|
oddsocks |
468c251 |
|
|
oddsocks |
468c251 |
# Build desktop icon
|
|
oddsocks |
468c251 |
cat >%{name}.desktop <
|
|
oddsocks |
468c251 |
[Desktop Entry]
|
|
oddsocks |
468c251 |
Name=Asylum
|
|
oddsocks |
7ef8770 |
GenericName=Platform Game
|
|
oddsocks |
468c251 |
Comment=%{summary}
|
|
oddsocks |
468c251 |
Exec=%{name}
|
|
|
fac2f9f |
Icon=%{name}
|
|
oddsocks |
468c251 |
Terminal=false
|
|
oddsocks |
468c251 |
Type=Application
|
|
oddsocks |
468c251 |
StartupNotify=false
|
|
oddsocks |
468c251 |
Categories=Game;ActionGame;
|
|
oddsocks |
468c251 |
EOF
|
|
oddsocks |
468c251 |
|
|
oddsocks |
468c251 |
%install
|
|
oddsocks |
468c251 |
mkdir -p %{buildroot}%{_bindir}
|
|
oddsocks |
468c251 |
mkdir -p %{buildroot}%{_datadir}/%{name}
|
|
oddsocks |
468c251 |
mkdir -p %{buildroot}%{_var}/games/%{name}
|
|
oddsocks |
468c251 |
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/32x32/apps
|
|
oddsocks |
468c251 |
touch %{buildroot}%{_var}/games/%{name}/{EgoHighScores,PsycheHighScores,IdHighScores,ExtendedHighScores}
|
|
oddsocks |
468c251 |
|
|
oddsocks |
468c251 |
install -m0755 %{name} %{buildroot}%{_bindir}
|
|
oddsocks |
468c251 |
cp -a data/* %{buildroot}%{_datadir}/%{name}
|
|
oddsocks |
468c251 |
|
|
oddsocks |
468c251 |
install -m0644 %{SOURCE1} %{buildroot}%{_datadir}/icons/hicolor/32x32/apps
|
|
|
71ac6ed |
desktop-file-install --dir %{buildroot}%{_datadir}/applications %{name}.desktop
|
|
oddsocks |
468c251 |
|
|
Richard Hughes |
72f9c5c |
# Register as an application to be visible in the software center
|
|
Richard Hughes |
72f9c5c |
#
|
|
Richard Hughes |
72f9c5c |
# NOTE: It would be *awesome* if this file was maintained by the upstream
|
|
Richard Hughes |
72f9c5c |
# project, translated and installed into the right place during `make install`.
|
|
Richard Hughes |
72f9c5c |
#
|
|
Richard Hughes |
72f9c5c |
# See http://www.freedesktop.org/software/appstream/docs/ for more details.
|
|
Richard Hughes |
72f9c5c |
#
|
|
Richard Hughes |
72f9c5c |
mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
|
|
Richard Hughes |
72f9c5c |
cat > $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml <
|
|
Richard Hughes |
72f9c5c |
|
|
Richard Hughes |
72f9c5c |
|
|
Richard Hughes |
72f9c5c |
|
|
Richard Hughes |
72f9c5c |
EmailAddress: https://sourceforge.net/u/blotwell/
|
|
Richard Hughes |
72f9c5c |
SentUpstream: 2014-09-24
|
|
Richard Hughes |
72f9c5c |
-->
|
|
Richard Hughes |
72f9c5c |
<application>
|
|
Richard Hughes |
72f9c5c |
<id type="desktop">asylum.desktop</id>
|
|
Richard Hughes |
72f9c5c |
<metadata_license>CC0-1.0</metadata_license>
|
|
Richard Hughes |
72f9c5c |
<summary>A retro platform style game where you enter the surreal world of a brain</summary>
|
|
Richard Hughes |
72f9c5c |
<description>
|
|
Richard Hughes |
72f9c5c |
|
|
Richard Hughes |
72f9c5c |
Asylum is a Linux port of the game "Asylum" written originally for the
|
|
Richard Hughes |
72f9c5c |
Acorn Archimedes.
|
|
Richard Hughes |
72f9c5c |
|
|
Richard Hughes |
72f9c5c |
|
|
Richard Hughes |
72f9c5c |
Enter the surreal world inside a young boy's brain and help destroy
|
|
Richard Hughes |
72f9c5c |
malfunctioning brain cells.
|
|
Richard Hughes |
72f9c5c |
|
|
Richard Hughes |
72f9c5c |
</description>
|
|
Richard Hughes |
72f9c5c |
<url type="homepage">http://sdl-asylum.sourceforge.net</url>
|
|
Richard Hughes |
72f9c5c |
<screenshots>
|
|
Richard Hughes |
72f9c5c |
<screenshot type="default">http://sourceforge.net/p/sdl-asylum/screenshot/134775.jpg</screenshot>
|
|
Richard Hughes |
72f9c5c |
<screenshot>http://sourceforge.net/p/sdl-asylum/screenshot/136451.jpg</screenshot>
|
|
Richard Hughes |
72f9c5c |
</screenshots>
|
|
Richard Hughes |
72f9c5c |
</application>
|
|
Richard Hughes |
72f9c5c |
EOF
|
|
Richard Hughes |
72f9c5c |
|
|
oddsocks |
468c251 |
%post
|
|
oddsocks |
468c251 |
touch --no-create %{_datadir}/icons/hicolor || :
|
|
oddsocks |
468c251 |
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
|
|
oddsocks |
468c251 |
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
|
oddsocks |
468c251 |
fi
|
|
oddsocks |
468c251 |
|
|
oddsocks |
468c251 |
%postun
|
|
oddsocks |
468c251 |
touch --no-create %{_datadir}/icons/hicolor || :
|
|
oddsocks |
468c251 |
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
|
|
oddsocks |
468c251 |
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
|
oddsocks |
468c251 |
fi
|
|
oddsocks |
468c251 |
|
|
oddsocks |
468c251 |
%files
|
|
oddsocks |
468c251 |
# Note the game is SETGID games for the hi-scores.
|
|
oddsocks |
468c251 |
%{_datadir}/%{name}
|
|
Richard Hughes |
72f9c5c |
%{_datadir}/appdata/%{name}.appdata.xml
|
|
|
71ac6ed |
%{_datadir}/applications/%{name}.desktop
|
|
oddsocks |
468c251 |
%attr(0775,root,games) %dir %{_var}/games/%{name}
|
|
oddsocks |
468c251 |
%attr(2755,root,games) %{_bindir}/%{name}
|
|
oddsocks |
468c251 |
%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
|
|
oddsocks |
468c251 |
%doc Instruct README COPYING
|
|
oddsocks |
468c251 |
%ghost %{_var}/games/%{name}/EgoHighScores
|
|
oddsocks |
468c251 |
%ghost %{_var}/games/%{name}/PsycheHighScores
|
|
oddsocks |
468c251 |
%ghost %{_var}/games/%{name}/IdHighScores
|
|
oddsocks |
468c251 |
%ghost %{_var}/games/%{name}/ExtendedHighScores
|
|
oddsocks |
468c251 |
|
|
oddsocks |
468c251 |
|
|
oddsocks |
468c251 |
%changelog
|
|
|
79289c8 |
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-15
|
|
|
79289c8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
79289c8 |
|
|
|
dde26e7 |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-14
|
|
|
dde26e7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
dde26e7 |
|
|
|
a9fc768 |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-13
|
|
|
a9fc768 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
a9fc768 |
|
|
|
b5c5e01 |
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-12
|
|
|
b5c5e01 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
b5c5e01 |
|
|
|
387a20b |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.2-11
|
|
|
387a20b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
387a20b |
|
|
|
bb4028a |
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 0.3.2-10
|
|
|
bb4028a |
- Rebuilt for GCC 5 C++11 ABI change
|
|
|
bb4028a |
|
|
Richard Hughes |
72f9c5c |
* Thu Mar 26 2015 Richard Hughes <rhughes@redhat.com> - 0.3.2-9
|
|
Richard Hughes |
72f9c5c |
- Add an AppData file for the software center
|
|
Richard Hughes |
72f9c5c |
|
|
|
87ce634 |
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.2-8
|
|
|
87ce634 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
87ce634 |
|
|
|
b43d51c |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.2-7
|
|
|
b43d51c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
b43d51c |
|
|
|
8e7dc89 |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.2-6
|
|
|
8e7dc89 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
8e7dc89 |
|
|
|
71ac6ed |
* Sun Feb 10 2013 Rahul Sundaram <sundaram@fedoraproject.org> - 0.3.2-5
|
|
|
71ac6ed |
- remove vendor tag from desktop file. https://fedorahosted.org/fpc/ticket/247
|
|
|
71ac6ed |
- clean up spec to follow current guidelines
|
|
|
71ac6ed |
|
|
|
63535a1 |
* Thu Jul 19 2012 Jon Ciesla <limburgher@gmail.com> - 0.3.2-4
|
|
|
63535a1 |
- Fixed data path.
|
|
|
63535a1 |
|
|
|
8fd74be |
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.2-3
|
|
|
8fd74be |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
8fd74be |
|
|
|
fac2f9f |
* Fri May 4 2012 Ville Skyttä <ville.skytta@iki.fi> - 0.3.2-2
|
|
|
fac2f9f |
- Build with RPM_OPT_FLAGS and RPM_LD_FLAGS.
|
|
|
fac2f9f |
- Fix desktop entry warnings.
|
|
|
fac2f9f |
|
|
|
982f044 |
* Fri Apr 27 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 0.3.2-1
|
|
|
982f044 |
- Update 0.3.2 - Fix FTBFS, drop not needed patch
|
|
|
982f044 |
|
|
|
39543b8 |
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-4
|
|
|
39543b8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
39543b8 |
|
|
|
50b0e84 |
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-3
|
|
|
50b0e84 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
50b0e84 |
|
|
|
2cecd41 |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-2
|
|
|
2cecd41 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
2cecd41 |
|
|
Michael Fleming |
e655af6 |
* Fri Jun 12 2009 Michael Fleming <mfleming+rpm@thatfleminggent.com> - 0.3.0-1
|
|
Michael Fleming |
e655af6 |
- Update to 0.3.0
|
|
Michael Fleming |
e655af6 |
|
|
|
b593f70 |
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.4-4
|
|
|
b593f70 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
b593f70 |
|
|
|
e957b2a |
* Fri Sep 26 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.2.4-3
|
|
|
e957b2a |
- fix makefile patch to apply properly
|
|
|
e957b2a |
|
|
Michael Fleming |
87337b7 |
* Fri Aug 29 2008 Michael Fleming <mfleming+rpm@enlartenment.com> - 0.2.4-2
|
|
Michael Fleming |
87337b7 |
- New builders don't like Patch0 declaration, adjust make it happy
|
|
Michael Fleming |
87337b7 |
|
|
Michael Fleming |
2a5f547 |
* Fri Aug 29 2008 Michael Fleming <mfleming+rpm@enlartenment.com> - 0.2.4-1
|
|
Michael Fleming |
2a5f547 |
- Upgrade to 0.2.4
|
|
Michael Fleming |
2a5f547 |
|
|
|
27861a4 |
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.2.3-3
|
|
|
27861a4 |
- Autorebuild for GCC 4.3
|
|
|
27861a4 |
|
|
oddsocks |
7ef8770 |
* Tue Nov 27 2007 Ian Chapman <packages[AT]amiga-hardware.com> 0.2.3-2
|
|
oddsocks |
7ef8770 |
- Enable ppc/ppc64 build. Endian issues seem resolved (BZ 319541)
|
|
oddsocks |
7ef8770 |
|
|
oddsocks |
34a7c5c |
* Sun Nov 25 2007 Ian Chapman <packages[AT]amiga-hardware.com> 0.2.3-1
|
|
oddsocks |
34a7c5c |
- Upgrade to 0.2.3
|
|
oddsocks |
34a7c5c |
- Removed asylum-0.2.2-fixsound.patch - fixed upstream
|
|
oddsocks |
34a7c5c |
|
|
oddsocks |
67e58f0 |
* Fri Oct 05 2007 Ian Chapman <packages[AT]amiga-hardware.com> 0.2.2-2
|
|
oddsocks |
67e58f0 |
- Release bump
|
|
oddsocks |
67e58f0 |
|
|
oddsocks |
468c251 |
* Sun Sep 09 2007 Ian Chapman <packages[AT]amiga-hardware.com> 0.2.2-1
|
|
oddsocks |
468c251 |
- Initial release
|