a63bb0d
Name:           methane
00e4f58
Version:        1.5.1
ce8e6a7
Release:        30%{?dist}
a63bb0d
Summary:        Super Methane Brothers
32d6d44
License:        GPLv2+
a63bb0d
URL:            http://methane.sourceforge.net/
32d6d44
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tgz
a63bb0d
Source1:        %{name}.desktop
ec99eb8
Source2:        %{name}.png
a63bb0d
Patch1:         methane-highscore.patch
a63bb0d
Patch2:         methane-fullscreen.patch
00e4f58
Patch3:         methane-1.5.1-clanlib-23.patch
87d0913
Patch4:         methane-1.5.1-gcc5.patch
b2e01a6
BuildRequires: make
53c2e6e
BuildRequires:  gcc gcc-c++
00e4f58
BuildRequires:  ClanLib-devel >= 2.3 desktop-file-utils
6ce41b7
Requires:       hicolor-icon-theme opengl-games-utils
a63bb0d
a63bb0d
%description
a63bb0d
Super Methane Brothers is a platform game converted from the Amiga by
5970e11
its original author.
a63bb0d
a63bb0d
a63bb0d
%prep
53c2e6e
%autosetup -p1
a63bb0d
a63bb0d
a63bb0d
%build
a63bb0d
make CXXFLAGS="$RPM_OPT_FLAGS"
a63bb0d
a63bb0d
a63bb0d
%install
a63bb0d
mkdir -p $RPM_BUILD_ROOT%{_bindir}
b56aa01
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}
a63bb0d
mkdir -p $RPM_BUILD_ROOT%{_var}/games
b56aa01
install -m 755 %{name} $RPM_BUILD_ROOT%{_bindir}
b56aa01
cp -a resources $RPM_BUILD_ROOT%{_datadir}/%{name}
6ce41b7
ln -s opengl-game-wrapper.sh $RPM_BUILD_ROOT%{_bindir}/%{name}-wrapper
dbabb34
touch $RPM_BUILD_ROOT%{_var}/games/%{name}.scores
a63bb0d
a63bb0d
# below is the desktop file and icon stuff.
a63bb0d
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
87d0913
desktop-file-install --dir $RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE1}
00e4f58
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/128x128/apps
ec99eb8
install -p -m 644 %{SOURCE2} \
00e4f58
  $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/128x128/apps
a63bb0d
Richard Hughes 765857a
# Register as an application to be visible in the software center
Richard Hughes 765857a
#
Richard Hughes 765857a
# NOTE: It would be *awesome* if this file was maintained by the upstream
Richard Hughes 765857a
# project, translated and installed into the right place during `make install`.
Richard Hughes 765857a
#
Richard Hughes 765857a
# See http://www.freedesktop.org/software/appstream/docs/ for more details.
Richard Hughes 765857a
#
Richard Hughes 765857a
mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
Richard Hughes 765857a
cat > $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml <
Richard Hughes 765857a
Richard Hughes 765857a
Richard Hughes 765857a
Richard Hughes 765857a
UpstreamURL:  Upstream is dead, private email
Richard Hughes 765857a
SentUpstream: 2014-09-24
Richard Hughes 765857a
-->
Richard Hughes 765857a
<application>
Richard Hughes 765857a
  <id type="desktop">methane.desktop</id>
Richard Hughes 765857a
  <metadata_license>CC0-1.0</metadata_license>
Richard Hughes 765857a
  <summary>Platform Arcade Game similar to Bubble Bubble</summary>
Richard Hughes 765857a
  <description>
Richard Hughes 765857a
    

Richard Hughes 765857a
      Super Methane Brothers is a platform arcade game Puff and Blow each have a
Richard Hughes 765857a
      Methane Gas Gun which fires a cloud of immobilising gas.
Richard Hughes 765857a
      If this comes into contact with a bad guy, he will be absorbed into the gas
Richard Hughes 765857a
      and then float around the screen for a limited time.
Richard Hughes 765857a
      Bad guys are harmless in this state.
Richard Hughes 765857a
      Puff and Blow must suck the floating gas clouds into their guns and blast
Richard Hughes 765857a
      them out against a vertical surface.
Richard Hughes 765857a
      bThe Bad guys then turn into bonuses which can be collected.
Richard Hughes 765857a
    

Richard Hughes 765857a
  </description>
Richard Hughes 765857a
  <url type="homepage">http://methane.sourceforge.net/</url>
Richard Hughes 765857a
  <screenshots>
Richard Hughes 765857a
    <screenshot type="default">http://methane.sourceforge.net/gamepic.gif</screenshot>
Richard Hughes 765857a
  </screenshots>
Richard Hughes 765857a
</application>
Richard Hughes 765857a
EOF
a63bb0d
a63bb0d
%files
53c2e6e
%doc authors.txt docs history.txt readme.txt
53c2e6e
%license copying.txt
a63bb0d
%attr(2755,root,games) %{_bindir}/%{name}
6ce41b7
%{_bindir}/%{name}-wrapper
b56aa01
%{_datadir}/%{name}
Richard Hughes 765857a
%{_datadir}/appdata/%{name}.appdata.xml
ec99eb8
%{_datadir}/applications/%{name}.desktop
00e4f58
%{_datadir}/icons/hicolor/128x128/apps/%{name}.png
dbabb34
%verify(not md5 size mtime) %config(noreplace) %attr(664,root,games) %{_var}/games/%{name}.scores
a63bb0d
a63bb0d
a63bb0d
%changelog
ce8e6a7
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-30
ce8e6a7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
ce8e6a7
318ae78
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-29
318ae78
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
318ae78
84aa3c6
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-28
84aa3c6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
84aa3c6
058cb5c
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-27
058cb5c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
058cb5c
2871e2e
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-26
2871e2e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
2871e2e
47de823
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-25
47de823
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
47de823
a011b20
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-24
a011b20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
a011b20
ceb190b
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-23
ceb190b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
ceb190b
53c2e6e
* Wed Aug 15 2018 Hans de Goede <hdegoede@redhat.com> - 1.5.1-22
53c2e6e
- Fix FTBFS (rhbz#1606822)
53c2e6e
1404164
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-21
1404164
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
1404164
1f215b5
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-20
1f215b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
1f215b5
bc8c6df
* Thu Jan 18 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.5.1-19
bc8c6df
- Remove obsolete scriptlets
bc8c6df
3171652
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-18
3171652
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
3171652
e7e6c6f
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-17
e7e6c6f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
e7e6c6f
b8e7a7b
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-16
b8e7a7b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
b8e7a7b
6850788
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-15
6850788
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
6850788
ec99eb8
* Fri Jun 19 2015 Hans de Goede <hdegoede@redhat.com> - 1.5.1-14
ec99eb8
- Drop the help .desktop file, having 2 menu entries for methane is
ec99eb8
  undesirable, and methane was the only app with a separate help .desktop
ec99eb8
87d0913
* Fri Jun 19 2015 Hans de Goede <hdegoede@redhat.com> - 1.5.1-13
87d0913
- Fix FTBFS
87d0913
- Fix help .desktop file not working
87d0913
45fd19a
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.1-12
45fd19a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
45fd19a
Richard Hughes 765857a
* Thu Mar 26 2015 Richard Hughes <rhughes@redhat.com> - 1.5.1-11
Richard Hughes 765857a
- Add an AppData file for the software center
Richard Hughes 765857a
875e9f0
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
875e9f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
875e9f0
6d26fdb
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.1-9
6d26fdb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
6d26fdb
5e08df1
* Thu Aug  1 2013 Hans de Goede <hdegoede@redhat.com> - 1.5.1-8
5e08df1
- Don't request no-decorations in fullscreen mode, as this breaks fullscreen
5e08df1
65cc9d0
* Thu Feb 14 2013 Toshio Kuratomi <toshio@fedoraproject.org> - 1.5.1-7
65cc9d0
- Remove the --vendor flag for desktop-file-install
65cc9d0
1b8accf
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.1-6
1b8accf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
1b8accf
Adam Tkac 8cecf02
* Mon Jan 21 2013 Adam Tkac <atkac redhat com> - 1.5.1-5
Adam Tkac 8cecf02
- rebuild due to "jpeg8-ABI" feature drop
Adam Tkac 8cecf02
b4587f9
* Fri Dec 21 2012 Adam Tkac <atkac redhat com> - 1.5.1-4
b4587f9
- rebuild against new libjpeg
b4587f9
83fc15f
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.1-3
83fc15f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
83fc15f
e425dd7
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.1-2
e425dd7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
e425dd7
00e4f58
* Sun Dec 11 2011 Hans de Goede <hdegoede@redhat.com> - 1.5.1-1
00e4f58
- New upstream release 1.5.1
00e4f58
- Improve (make high res) icons
00e4f58
b8e5a1e
* Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 1.5.0-4
b8e5a1e
- Rebuild for new libpng
b8e5a1e
c2b808f
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.0-3
c2b808f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
c2b808f
7501b3b
* Mon Nov 16 2009 Hans de Goede <hdegoede@redhat.com> 1.5.0-2
2b89bba
- Hide cursor in fullscreen mode
7501b3b
- Add support for OpenGL 1 (versus 2)
7501b3b
- Disable opengl support by default, even the OpenGL 1 code is having issues
7501b3b
  with foss drivers
2b89bba
b56aa01
* Wed Nov 11 2009 Hans de Goede <hdegoede@redhat.com> 1.5.0-1
b56aa01
- New upstream release 1.5.0
dbabb34
- Hiscore save file format has changed, this means all
dbabb34
  highscores will be reset to 0 when updating from 1.4.7
b56aa01
5c9544d
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.7-8
5c9544d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
5c9544d
aaed33a
* Mon May 18 2009 Hans de Goede <hdegoede@redhat.com> 1.4.7-7
aaed33a
- Rebuild for new ClanLib
aaed33a
c118f76
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.7-6
c118f76
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
c118f76
5970e11
* Fri Jan 30 2009 Hans de Goede <hdegoede@redhat.com> 1.4.7-5
5970e11
- Update description for new trademark guidelines
5970e11
473ee7a
* Sun Feb 17 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 1.4.7-4
473ee7a
- Rebuild for new libmikmod
473ee7a
- Rebuild with gcc 4.3
473ee7a
- Try pulseaudio (esd) before oss (mikmod doesn't support alsa)
473ee7a
6ce41b7
* Tue Sep 25 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.4.7-3
6ce41b7
- Use opengl-games-utils wrapper to show error dialog when DRI is missing
6ce41b7
32d6d44
* Wed Aug 15 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.4.7-2
32d6d44
- Update License tag for new Licensing Guidelines compliance
32d6d44
a63bb0d
* Thu Jan 25 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.4.7-1
a63bb0d
- Initial Fedora Extras package, based on the SUSE srpm