32de879756
Please accept these changes. OBS-URL: https://build.opensuse.org/request/show/397791 OBS-URL: https://build.opensuse.org/package/show/games/asteroid?expand=0&rev=3
84 lines
2.5 KiB
RPMSpec
84 lines
2.5 KiB
RPMSpec
#
|
|
# spec file for package asteroid
|
|
#
|
|
# Copyright (c) 2016 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/
|
|
#
|
|
|
|
|
|
%global commit 4efc7fc0a1246f023d6f96b94081678e302ab430
|
|
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
|
|
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}+git-4efc7fc.tar.bz2
|
|
Source1: generate-service-file.sh
|
|
# PATCH-FEATURE-UPSTREAM Asteroid not build in openSUSE #1
|
|
Patch0: %{name}-%{version}-CMakeLists.txt.patch
|
|
BuildRequires: cmake
|
|
BuildRequires: fdupes
|
|
BuildRequires: freeglut-devel
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: gtk2-devel
|
|
BuildRequires: hicolor-icon-theme
|
|
BuildRequires: update-desktop-files
|
|
BuildRequires: pkgconfig(SDL_mixer)
|
|
BuildRequires: pkgconfig(glu)
|
|
BuildRequires: pkgconfig(sdl)
|
|
BuildRequires: pkgconfig(xi)
|
|
BuildRequires: pkgconfig(xmu)
|
|
|
|
%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}-%{version}+git-%{shortcommit}
|
|
|
|
%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
|
|
|
|
%suse_update_desktop_file %{name}
|
|
%fdupes -s %{buildroot}%{_prefix}
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc COPYING NEWS README.md
|
|
%{_bindir}/%{name}
|
|
%{_datadir}/applications/%{name}.desktop
|
|
%{_datadir}/icons/hicolor/
|
|
%{_datadir}/%{name}
|
|
|
|
%changelog
|