File spacezero.spec of Package spacezero
#
# spec file for package spacezero
#
# 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: spacezero
Version: 0.86.01
Release: 0
Summary: A RTS Space Game
License: GPL-3.0+
Group: Amusements/Games/Action/Other
Url: http://spacezero.sourceforge.net/
Source0: http://downloads.sourceforge.net/spacezero/spacezero%200.86/%{name}-%{version}.tar.gz
Source1: %{name}.xpm
Source2: %{name}.desktop
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: hicolor-icon-theme
BuildRequires: pkgconfig(openal)
BuildRequires: pkgconfig(freealut)
BuildRequires: pkgconfig(vorbis)
BuildRequires: pkgconfig(x11)
%description
SpaceZero is a RTS 2D space combat, single and multiplayer (two players by now) net game.
Your objective is to conquer all space.
At the starting point the player owns a spaceship which has landed on a planet.
Your first task is to acquire new spaceships and find new planets in the Galaxy.
%prep
%autosetup -n spacezero
chmod -x changelog COPYING
%build
make spacezero DATADIR=%{_datadir}/%{name}
%install
make install INSTALL_DIR=%{buildroot}%{_bindir} INSTALL_DATA_DIR=%{buildroot}%{_datadir}/%{name}
install -m0644 -D %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/%{name}.xpm
install -m0644 -D %{SOURCE2} %{buildroot}%{_datadir}/applications/%{name}.desktop
%files
%defattr(-,root,root)
%license COPYING
%doc changelog
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/pixmaps/%{name}.xpm
%{_datadir}/applications/%{name}.desktop
%changelog