File methane.spec of Package methane
#
# spec file for package methane
#
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define name2 %{name}-help
Name: methane
Version: 2.0.1
Release: 0
Summary: Port of the Amiga platform game of the same name
License: GPL-2.0-or-later
Group: Amusements/Games/Action/Arcade
URL: http://methane.sourceforge.net/
Source0: https://github.com/rombust/Methane/archive/refs/tags/v2.0.1.tar.gz#/Methane-2.0.1.tar.gz
Source1: %{name}.sh
Source2: %{name}.desktop
Source3: %{name2}.desktop
Source4: %{name}.png
Source5: %{name}-help.png
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(clanApp-4.1)
BuildRequires: pkgconfig(clanCore-4.1)
BuildRequires: pkgconfig(clanDisplay-4.1)
BuildRequires: pkgconfig(clanGL-4.1)
BuildRequires: pkgconfig(clanSound-4.1)
BuildRequires: pkgconfig(libmikmod)
%description
Puff and Blow each have a Methane Gas Gun which fires a cloud
of immobilising gas. If this comes into contact with a bad guy
he will be absorbed into the gas and then float around the screen
for a limited time. Bad guys are harmless in this state.
Puff and Blow must suck the floating gas clouds into their guns
and blast them out against a vertical surface. Bad guys then turn
into bonuses which can be collected. Be warned! - the gas cloud
dissolves with time after which baddies become active again and
extremely annoyed.
Super Methane Brothers is a platform game converted from the Amiga by
its original author. It is very similar to the Taito game Bubble
Bobble.
%package doc
Summary: Documentation for the %{name}
Group: Documentation/Other
BuildArch: noarch
%description doc
Puff and Blow each have a Methane Gas Gun which fires a cloud
of immobilising gas. If this comes into contact with a bad guy
he will be absorbed into the gas and then float around the screen
for a limited time. Bad guys are harmless in this state.
Puff and Blow must suck the floating gas clouds into their guns
and blast them out against a vertical surface. Bad guys then turn
into bonuses which can be collected. Be warned! - the gas cloud
dissolves with time after which baddies become active again and
extremely annoyed.
Super Methane Brothers is a platform game converted from the Amiga by
its original author. It is very similar to the Taito game Bubble
Bobble.
Documentation for the %{name}.
%prep
%setup -q -n Methane-%{version}
%build
# otherwise parallel building break
mkdir -p build
%make_build CXXFLAGS="%{optflags}"
%install
# install executable
install -Dm 0755 %{name} %{buildroot}%{_bindir}/%{name}
# install directories
install -dm 0755 %{buildroot}%{_datadir}/%{name}
cp -a resources %{buildroot}%{_datadir}/%{name}/
# install icons
install -Dm 0644 %{SOURCE4} %{buildroot}%{_datadir}/pixmaps/%{name}.png
install -Dm 0644 %{SOURCE5} %{buildroot}%{_datadir}/pixmaps/%{name2}.png
# install Desktop files
install -Dm 0644 %{SOURCE2} %{buildroot}%{_datadir}/applications/%{name}.desktop
install -Dm 0644 %{SOURCE3} %{buildroot}%{_datadir}/applications/%{name2}.desktop
%suse_update_desktop_file %{name} %{name2}
%files
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%files doc
%license copying.txt
%doc docs authors.txt history.txt readme.txt
%{_datadir}/applications/%{name2}.desktop
%{_datadir}/pixmaps/%{name2}.png
%changelog