asteroid/asteroid.spec
Matthias Mailänder 472a2e97e2 Accepting request 259013 from home:nemysis
-------------------------------------------------------------------
Thu Oct 30 15:23:11 UTC 2014 - nemysis@gmx.ch

- Initial package creation

OBS-URL: https://build.opensuse.org/request/show/259013
OBS-URL: https://build.opensuse.org/package/show/games/asteroid?expand=0&rev=1
2014-10-30 17:21:56 +00:00

84 lines
2.4 KiB
RPMSpec

#
# spec file for package asteroid
#
# Copyright (c) 2014 SUSE LINUX Products 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: asteroid
Version: 1.2.1
Release: 0
Summary: Modern version of the classic arcade Game
License: GPL-3.0
Group: Amusements/Games/Action/Arcade
Url: https://chazomaticus.github.io/asteroid/
# Downloaded from https://github.com/chazomaticus/asteroid
# Packed as tar.bz2
Source0: %{name}-%{version}+git0e37197.tar.bz2
# PATCH-FEATURE-UPSTREAM Asteroid not build in openSUSE #1
Patch0: %{name}-%{version}-CMakeLists.txt.patch
%if 0%{?suse_version}
BuildRequires: fdupes
BuildRequires: update-desktop-files
%endif
BuildRequires: cmake
BuildRequires: freeglut-devel
BuildRequires: gcc-c++
BuildRequires: gtk2-devel
BuildRequires: hicolor-icon-theme
BuildRequires: pkgconfig(SDL_mixer)
BuildRequires: pkgconfig(glu)
BuildRequires: pkgconfig(xi)
BuildRequires: pkgconfig(xmu)
BuildRequires: pkgconfig(sdl)
%description
Asteroid (just one!) is a modern version of the arcade classic Asteroids,
using OpenGL, GLUT, and optionally GTK and SDL_mixer.
It features a variety of powerups, taunting aliens, 3D textured asteroids,
face-melting sound effects, and infinite playability.
%prep
%setup -q -n %{name}
%patch0
# fix include and path
sed -i -e 's|${OPENGL_LIBRARIES}|-lm ${OPENGL_LIBRARIES}|' \
-i -e 's|CMAKE_INSTALL_PREFIX ""|CMAKE_INSTALL_PREFIX "/usr"|' \
CMakeLists.txt
%build
# Not works build with %%cmake
cmake .
make %{?_smp_mflags}
%install
%make_install
%if 0%{?suse_version}
%suse_update_desktop_file %{name}
%fdupes -s %{buildroot}%{_prefix}
%endif
%files
%defattr(-,root,root,-)
%doc COPYING NEWS README.md
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/
%{_datadir}/%{name}
%changelog