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
This commit is contained in:
Matthias Mailänder 2014-10-30 17:21:56 +00:00 committed by Git OBS Bridge
commit 472a2e97e2
6 changed files with 126 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8f97bfbc59fc52426fbe4ead3bff45cdd62625157eef198e678772cce239c259
size 998884

View File

@ -0,0 +1,11 @@
--- CMakeLists.txt.orig 2014-10-15 02:25:30.000000000 +0200
+++ CMakeLists.txt 2014-10-20 13:03:19.908402756 +0200
@@ -31,7 +31,7 @@
endif(SDL_FOUND AND SDLMIXER_FOUND)
# Config header
-set(Asteroid_BUILD_RES_INSTALL_PATH "${CMAKE_INSTALL_PREFIX}/share/asteroid")
+SET(CMAKE_INSTALL_PREFIX "")
configure_file("${PROJECT_SOURCE_DIR}/src/config.h.in" "${PROJECT_BINARY_DIR}/include/config.h")
include_directories("${PROJECT_BINARY_DIR}/include")

5
asteroid.changes Normal file
View File

@ -0,0 +1,5 @@
-------------------------------------------------------------------
Thu Oct 30 15:23:11 UTC 2014 - nemysis@gmx.ch
- Initial package creation

83
asteroid.spec Normal file
View File

@ -0,0 +1,83 @@
#
# 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