5c90779
Name:           CriticalMass
09100a2
Version:        1.5
8b5eaeb
Release:        21%{?dist}
5c90779
Summary:        SDL/OpenGL space shoot'em up game also known as critter
5c90779
Group:          Amusements/Games
5c90779
License:        GPLv2+
5c90779
URL:            http://criticalmass.sourceforge.net/critter.php
5c90779
Source0:        http://downloads.sourceforge.net/criticalmass/%{name}-%{version}.tar.bz2
5c90779
Source1:        %{name}.desktop
09100a2
Patch0:         CriticalMass-1.0.2-res-change-rh566533.patch
09100a2
Patch1:         CriticalMass-1.5-libpng15.patch
a984297
Patch2:         CriticalMass-1.5-gcc47.patch
b570e3a
Patch3:         CriticalMass-1.5-cflags.patch
3840ef9
Patch4:         CriticalMass-1.5-gcc6.patch
5c90779
BuildRequires:  SDL_image-devel SDL_mixer-devel libpng-devel curl-devel
b570e3a
BuildRequires:  tinyxml-devel desktop-file-utils libtool
5c90779
Requires:       hicolor-icon-theme opengl-games-utils
5c90779
# Also known as critter, so make "yum install critter" work
5c90779
Provides:       critter = %{version}-%{release}
5c90779
5c90779
%description
5c90779
Critical Mass (aka Critter) is an SDL/OpenGL space shoot'em up game. Your
5c90779
world has been infested by an aggressive army of space critters. Overrun and
5c90779
unprepared, your government was unable to defend its precious resources. As
5c90779
a last effort to recapture some of the "goodies", you have been placed into
5c90779
a tiny spacecraft and sent after them.
5c90779
0dea313
5c90779
%prep
5c90779
%setup -q
5c90779
%patch0 -p1
5c90779
%patch1 -p1
a984297
%patch2 -p1
b570e3a
%patch3 -p1
3840ef9
%patch4 -p1
b570e3a
sed -i 's/curl-gnutls/curl/g' configure.in
b570e3a
touch NEWS README AUTHORS ChangeLog
b570e3a
autoreconf -ivf
5c90779
0dea313
5c90779
%build
5c90779
%configure
b570e3a
make %{?_smp_mflags}
5c90779
0dea313
5c90779
%install
8314ca5
%make_install
5c90779
ln -s opengl-game-wrapper.sh $RPM_BUILD_ROOT%{_bindir}/critter-wrapper
5c90779
5c90779
# remove unwanted utility
5c90779
rm $RPM_BUILD_ROOT%{_bindir}/Packer
5c90779
5c90779
# below is the desktop file and icon stuff.
5c90779
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
b570e3a
desktop-file-install --dir $RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE1}
09100a2
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/256x256/apps
5c90779
install -p -m 644 critter.png \
09100a2
  $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/256x256/apps
5c90779
Richard Hughes b7b407a
# Register as an application to be visible in the software center
Richard Hughes b7b407a
#
Richard Hughes b7b407a
# NOTE: It would be *awesome* if this file was maintained by the upstream
Richard Hughes b7b407a
# project, translated and installed into the right place during `make install`.
Richard Hughes b7b407a
#
Richard Hughes b7b407a
# See http://www.freedesktop.org/software/appstream/docs/ for more details.
Richard Hughes b7b407a
#
Richard Hughes b7b407a
mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
Richard Hughes b7b407a
cat > $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml <
Richard Hughes b7b407a
Richard Hughes b7b407a
Richard Hughes b7b407a
Richard Hughes b7b407a
EmailAddress: crittermail2005@telus.net
Richard Hughes b7b407a
SentUpstream: 2014-09-17
Richard Hughes b7b407a
-->
Richard Hughes b7b407a
<application>
Richard Hughes b7b407a
  <id type="desktop">CriticalMass.desktop</id>
Richard Hughes b7b407a
  <metadata_license>CC0-1.0</metadata_license>
Richard Hughes b7b407a
  <summary>A top-down space shoot-em-up game</summary>
Richard Hughes b7b407a
  <description>
Richard Hughes b7b407a
    

Richard Hughes b7b407a
      Critical Mass (also known as Critter) is a top-down shoot-em-up game where your home world
Richard Hughes b7b407a
      has been infested by an aggressive army of space critters and
Richard Hughes b7b407a
      you are required to pilot a small spacecraft to destroy them all.
Richard Hughes b7b407a
    

Richard Hughes b7b407a
  </description>
Richard Hughes b7b407a
  <url type="homepage">http://criticalmass.sourceforge.net/</url>
Richard Hughes b7b407a
  <screenshots>
Richard Hughes b7b407a
    <screenshot type="default">http://criticalmass.sourceforge.net/images-critter/pics.v100/snap09.jpeg</screenshot>
Richard Hughes b7b407a
    <screenshot>http://criticalmass.sourceforge.net/images-critter/pics.v100/snap17.jpeg</screenshot>
Richard Hughes b7b407a
    <screenshot>http://criticalmass.sourceforge.net/images-critter/pics.v100/snap13.jpeg</screenshot>
Richard Hughes b7b407a
    <screenshot>http://criticalmass.sourceforge.net/images-critter/pics.v100/snap04.jpeg</screenshot>
Richard Hughes b7b407a
    <screenshot>http://criticalmass.sourceforge.net/images-critter/pics.v100/snap00.jpeg</screenshot>
Richard Hughes b7b407a
  </screenshots>
Richard Hughes b7b407a
  
Richard Hughes b7b407a
  <updatecontact>someone_who_cares@upstream_project.org</updatecontact>
Richard Hughes b7b407a
   -->
Richard Hughes b7b407a
</application>
Richard Hughes b7b407a
EOF
0dea313
5c90779
%files
d667056
%doc Readme.html TODO
d667056
%license COPYING
5c90779
%{_bindir}/critter*
5c90779
%{_datadir}/Critical_Mass
5c90779
%{_mandir}/man6/critter.6*
Richard Hughes b7b407a
%{_datadir}/appdata/*%{name}.appdata.xml
61f9270
%{_datadir}/applications/*%{name}.desktop
09100a2
%{_datadir}/icons/hicolor/256x256/apps/critter.png
5c90779
5c90779
%changelog
8b5eaeb
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-21
8b5eaeb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
8b5eaeb
e85bb36
* Thu Jan 11 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.5-20
e85bb36
- Remove obsolete scriptlets
e85bb36
669901a
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-19
669901a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
669901a
12ad3e2
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-18
12ad3e2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
12ad3e2
bed20c2
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-17
bed20c2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
bed20c2
d667056
* Tue Feb  2 2016 Hans de Goede <hdegoede@redhat.com> - 1.5-16
3840ef9
- Fix FTBFS with gcc6
d667056
- Add Keywords to .desktop file
d667056
b570e3a
* Thu Jun 18 2015 Hans de Goede <hdegoede@redhat.com> - 1.5-15
b570e3a
- Fix FTBFS with hardening by patching configure to not override the CFLAGS
b570e3a
c0df883
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-14
c0df883
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
c0df883
Richard Hughes b7b407a
* Thu Mar 26 2015 Richard Hughes <rhughes@redhat.com> - 1.5-13
Richard Hughes b7b407a
- Add an AppData file for the software center
Richard Hughes b7b407a
be30970
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-12
be30970
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
be30970
bdc93d7
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-11
bdc93d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
bdc93d7
c0a9757
* Fri Aug 02 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-10
c0a9757
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
c0a9757
0dea313
* Fri May 10 2013 Hans de Goede <hdegoede@redhat.com> - 1.5-9
0dea313
- Remove no longer needed autoreconf call, %%configure from redhat-rpm-config
0dea313
  >= 9.1.0-42 updates config.guess and config.sub for new architecture support
0dea313
61f9270
* Wed May  1 2013 Hans de Goede <hdegoede@redhat.com> - 1.5-8
61f9270
- run autoreconf for aarch64 support (rhbz#925196)
61f9270
8314ca5
* Fri Feb 22 2013 Rahul Sundaram <sundaram@fedoraproject.org> - 1.5-7
8314ca5
- remove vendor tag from desktop file. https://fedorahosted.org/fpc/ticket/247
8314ca5
- clean up spec to follow current guidelines
8314ca5
e0ecc00
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-6
e0ecc00
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
e0ecc00
e656f9d
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-5
e656f9d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
e656f9d
ee59bdb
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-4
ee59bdb
- Rebuilt for c++ ABI breakage
ee59bdb
a984297
* Thu Jan 12 2012 Hans de Goede <hdegoede@redhat.com> - 1.5-3
a984297
- Fix building with gcc-4.7
a984297
e9d11c5
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-2
e9d11c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
e9d11c5
09100a2
* Sat Dec 10 2011 Hans de Goede <hdegoede@redhat.com> - 1.5-1
09100a2
- New upstream release 1.5 (rhbz#766117)
09100a2
96f1842
* Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 1.0.2-10
96f1842
- Rebuild for new libpng
96f1842
3ecd48f
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-9
3ecd48f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
3ecd48f
d6e57f7
* Mon Jul 12 2010 Hans de Goede <hdegoede@redhat.com> 1.0.2-8
d6e57f7
- Fix crash when trying to change resolution to a resolution too big for
d6e57f7
  the monitor (#566533)
d6e57f7
- Fix misdetection of available resolutions (they were all given the width
d6e57f7
  of the highest resolution)
d6e57f7
636ad98
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-7
636ad98
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
636ad98
d16b924
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-6
d16b924
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
d16b924
b90bc09
* Thu Apr  3 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 1.0.2-5
b90bc09
- Force proper use of RPM_OPT_FLAGS during build
b90bc09
7c1ba21
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.0.2-4
7c1ba21
- Autorebuild for GCC 4.3
7c1ba21
1cfc9e8
* Fri Jan  4 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 1.0.2-3
1cfc9e8
- Fix build with gcc 4.3
1cfc9e8
5c90779
* Sat Dec  1 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.0.2-2
5c90779
- Use system version of tinyxml
5c90779
- Some other small specfile cleanups
5c90779
- Use opengl-games-utils wrapper to show error dialog when DRI is missing
5c90779
5c90779
* Thu Nov 29 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.0.2-1
5c90779
- Initial Fedora Package