From 472a2e97e288ea74e7f802868032da34898f022583b0cc974b18fb8756c74f86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Thu, 30 Oct 2014 17:21:56 +0000 Subject: [PATCH] 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 --- .gitattributes | 23 ++++++++ .gitignore | 1 + asteroid-1.2.1+git0e37197.tar.bz2 | 3 ++ asteroid-1.2.1-CMakeLists.txt.patch | 11 ++++ asteroid.changes | 5 ++ asteroid.spec | 83 +++++++++++++++++++++++++++++ 6 files changed, 126 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 asteroid-1.2.1+git0e37197.tar.bz2 create mode 100644 asteroid-1.2.1-CMakeLists.txt.patch create mode 100644 asteroid.changes create mode 100644 asteroid.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/asteroid-1.2.1+git0e37197.tar.bz2 b/asteroid-1.2.1+git0e37197.tar.bz2 new file mode 100644 index 0000000..d1ecd5e --- /dev/null +++ b/asteroid-1.2.1+git0e37197.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8f97bfbc59fc52426fbe4ead3bff45cdd62625157eef198e678772cce239c259 +size 998884 diff --git a/asteroid-1.2.1-CMakeLists.txt.patch b/asteroid-1.2.1-CMakeLists.txt.patch new file mode 100644 index 0000000..0076fa4 --- /dev/null +++ b/asteroid-1.2.1-CMakeLists.txt.patch @@ -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") + diff --git a/asteroid.changes b/asteroid.changes new file mode 100644 index 0000000..d4cf729 --- /dev/null +++ b/asteroid.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Thu Oct 30 15:23:11 UTC 2014 - nemysis@gmx.ch + +- Initial package creation + diff --git a/asteroid.spec b/asteroid.spec new file mode 100644 index 0000000..73e44e5 --- /dev/null +++ b/asteroid.spec @@ -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