File cubosphere-data.spec of Package cubosphere-data
#
# spec file for package cubosphere-data
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright Vincent Petry <PVince81@opensuse.org>
#
# 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/
#
%define _basename cubosphere
Name: %{_basename}-data
Version: 0.1
Release: 0
Summary: Data files for Cubosphere
License: GPL-3.0
Group: Amusements/Games/3D/Other
Url: http://sourceforge.net/projects/cubosphere/
# Sources downloaded from SourceForge:
# http://kent.dl.sourceforge.net/project/cubosphere/cubosphere_beta_0.1_unix.tar
# Extracted into cubosphere-data-0.1 (beware, it's a tarbomb!)
# Removed all files except "data" subdir
# Music in "data/music" converted to OGG using oggenc with default
# settings. ID3 tags were copied manually from MP3 to OGG using kid3.
# Repacked as tar.bz2 archive.
Source: %{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%if 0%{?suse_version}
BuildRequires: update-desktop-files
%endif
%if 0%{?suse_version} > 1020
BuildRequires: fdupes
%endif
Recommends: cubosphere >= %{version}
%description
3d Puzzle similar to Kula World / Roll Away
Roll your ball trough a 3d maze, collect all keys and proceed to the exit. The strange physics - where gravity acts always relative to your position and orientation - makes Cubosphere to a challenging puzzle where no "up", "down", "left", "right", "front" and "back" exist.
The game comes with an internal level editor!
This package contains the data files for this game.
%prep
%setup -q -n %{_basename}-%{version}
# Clean up backup files
find . -iname \*~ -delete
# Fix permissions
find data -perm 755 -type f -exec chmod a-x \{\} \;
%build
%install
install -d -m 0755 "%{buildroot}%{_datadir}/%{_basename}"
cp -R data/* "%{buildroot}%{_datadir}/%{_basename}/"
%if 0%{?suse_version} > 1020
%fdupes %{buildroot}
%endif
%files
%defattr(-,root,root,-)
%dir %{_datadir}/%{_basename}/
%{_datadir}/%{_basename}/*
%changelog