File marsshooter.spec of Package marsshooter
#
# spec file for package marsshooter
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
Name: marsshooter
Version: 0.7.6
Release: 0
Summary: M.A.R.S. - a ridiculous shooter
License: GPL-3.0+ and CC-BY-3.0 and CC-BY-3.0
Group: Amusements/Games/Action/Shoot
Url: http://mars-game.sourceforge.net/
Source: https://github.com/jwrdegoede/M.A.R.S./archive/%{name}-%{version}/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM https://github.com/thelaui/M.A.R.S./pull/26
Patch1: no-return-in-nonvoid-function.patch
BuildRequires: cmake >= 2.8.0
BuildRequires: dos2unix
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: taglib-devel
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(fribidi) >= 0.19.2
BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(sfml-all) >= 2.0
BuildRequires: pkgconfig(xrandr)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
It is a game for two players, flying with ships in a two-dimensional
space setting, governed by the laws of gravity.
%prep
%setup -q -n M.A.R.S.-%{name}-%{version}
%patch1 -p1
rm -rf ext_libs_for_windows
find data -type f -exec chmod 0644 {} +
dos2unix credits.txt license.txt music-license.eml
%build
%cmake -Dmars_DATA_DEST_DIR=%{_datadir}/%{name} -Dmars_EXE_DEST_DIR=%{_bindir}
make %{?_smp_mflags}
%install
%cmake_install
# let the doc macro put everything in one place
rm -rf %{buildroot}%{_datadir}/doc/marsshooter/
%post
%desktop_database_post
%icon_theme_cache_post
%postun
%icon_theme_cache_postun
%desktop_database_postun
%files
%defattr(-,root,root)
%doc README.md NEWS credits.txt license.txt music-license.eml
%{_bindir}/%{name}
%{_mandir}/man6/marsshooter.6.*
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%dir %{_datadir}/appdata/
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/pixmaps/%{name}.xpm
%dir %{_datadir}/icons/hicolor/512x512/
%dir %{_datadir}/icons/hicolor/512x512/apps/
%{_datadir}/icons/hicolor/*/apps/%{name}.*
%changelog