diff --git a/_service b/_service
new file mode 100644
index 0000000..e64037c
--- /dev/null
+++ b/_service
@@ -0,0 +1,16 @@
+
+
+
+ git://github.com/chazomaticus/asteroid.git
+ git
+ 1.2.1+git-4efc7fc
+ enable
+
+
+
+ *.tar
+ bz2
+
+
+
+
diff --git a/_servicedata b/_servicedata
new file mode 100644
index 0000000..b4460a8
--- /dev/null
+++ b/_servicedata
@@ -0,0 +1,4 @@
+
+
+ git://github.com/chazomaticus/asteroid.git
+ 64869dfe745800f34f1c68248ba2e350dc95a592
\ No newline at end of file
diff --git a/asteroid-1.2.1+git-4efc7fc.tar.bz2 b/asteroid-1.2.1+git-4efc7fc.tar.bz2
new file mode 100644
index 0000000..915721e
--- /dev/null
+++ b/asteroid-1.2.1+git-4efc7fc.tar.bz2
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:123d2c4e97e5535b4a3b7fb57beac9da564a6924ee308a2a456c2a77f6fcb27c
+size 291007
diff --git a/asteroid-1.2.1+git0e37197.tar.bz2 b/asteroid-1.2.1+git0e37197.tar.bz2
deleted file mode 100644
index d1ecd5e..0000000
--- a/asteroid-1.2.1+git0e37197.tar.bz2
+++ /dev/null
@@ -1,3 +0,0 @@
-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
deleted file mode 100644
index 0076fa4..0000000
--- a/asteroid-1.2.1-CMakeLists.txt.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- 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
index d4cf729..4b36361 100644
--- a/asteroid.changes
+++ b/asteroid.changes
@@ -1,3 +1,37 @@
+-------------------------------------------------------------------
+Sun May 29 21:00:51 UTC 2016 - nemysis@openSUSE.org
+
+- Use -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} instead of -DCMAKE_INSTALL_PREFIX=/usr
+
+-------------------------------------------------------------------
+Sun May 29 14:07:23 UTC 2016 - nemysis@openSUSE.org
+
+- After discussion with Upstream removed asteroid-1.2.1-CMakeLists.txt.patch
+ and sed for path, use cmake . -DCMAKE_INSTALL_PREFIX=/usr
+- Add AUTHORS to Documentation
+- Change generate-service-file.sh to use
+ and more
+- Add _servicedata
+
+-------------------------------------------------------------------
+Wed May 25 21:07:49 UTC 2016 - nemysis@openSUSE.org
+
+- Used "osc service localrun" that works check script
+
+-------------------------------------------------------------------
+Wed May 25 15:43:42 UTC 2016 - nemysis@openSUSE.org
+
+- Add asteroid-1.2.1+git-4efc7fc.tar.bz2 that works
+ "osc service localrun source_validator"
+
+-------------------------------------------------------------------
+Tue May 24 20:48:43 UTC 2016 - nemysis@openSUSE.org
+
+- Rerolled tarball
+- Add %global commit and %global shortcommit
+- Add _service and generate-service-file.sh
+- Remove check %if 0%{?suse_version}, because is only for openSUSE
+
-------------------------------------------------------------------
Thu Oct 30 15:23:11 UTC 2014 - nemysis@gmx.ch
diff --git a/asteroid.spec b/asteroid.spec
index 73e44e5..2a00072 100644
--- a/asteroid.spec
+++ b/asteroid.spec
@@ -1,7 +1,7 @@
#
# spec file for package asteroid
#
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# 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
@@ -16,6 +16,9 @@
#
+%global commit 4efc7fc0a1246f023d6f96b94081678e302ab430
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+
Name: asteroid
Version: 1.2.1
Release: 0
@@ -23,25 +26,20 @@ 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
+Source0: %{name}-%{version}+git-4efc7fc.tar.bz2
+Source1: generate-service-file.sh
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)
-BuildRequires: pkgconfig(sdl)
%description
Asteroid (just one!) is a modern version of the arcade classic Asteroids,
@@ -50,31 +48,26 @@ It features a variety of powerups, taunting aliens, 3D textured asteroids,
face-melting sound effects, and infinite playability.
%prep
-%setup -q -n %{name}
+%setup -q -n %{name}-%{version}+git-%{shortcommit}
-%patch0
-
-# fix include and path
+# fix include
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 .
+cmake . -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix}
make %{?_smp_mflags}
%install
%make_install
-%if 0%{?suse_version}
- %suse_update_desktop_file %{name}
- %fdupes -s %{buildroot}%{_prefix}
-%endif
+%suse_update_desktop_file %{name}
+%fdupes -s %{buildroot}%{_prefix}
%files
%defattr(-,root,root,-)
-%doc COPYING NEWS README.md
+%doc AUTHORS COPYING NEWS README.md
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/
diff --git a/generate-service-file.sh b/generate-service-file.sh
new file mode 100644
index 0000000..e90b487
--- /dev/null
+++ b/generate-service-file.sh
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+commit=4efc7fc0a1246f023d6f96b94081678e302ab430
+shortcommit=$(c=${commit}; echo ${c:0:7})
+version=1.2.1+git
+
+echo -n "Creating _service file ..."
+cat << EOF > _service
+
+
+
+ git://github.com/chazomaticus/asteroid.git
+ git
+ ${version}-${shortcommit}
+ enable
+
+
+
+ *.tar
+ bz2
+
+
+
+
+EOF
+echo done