File glestae-data.spec of Package glestae-data

#
# spec file for package glestae-data
#
# Copyright 2011 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:           glestae-data
Version:        to_be_filled_by_service
Release:        0
License:        GPLv2+
Group:          Amusements/Games/Strategy/Real Time
BuildRequires:  cmake
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  libpng-devel
BuildRequires:  libjpeg-devel
BuildRequires:  libvorbis-devel
BuildRequires:  lua-devel
BuildRequires:  openal-soft-devel
BuildRequires:  glew-devel
BuildRequires:  freetype2-devel
BuildRequires:  xorg-x11-Mesa-devel
%if 0%{?suse_version} >= 1140
%define _use_internal_dependency_generator 0
%define __find_requires %wx_requires
BuildRequires:  wxWidgets-devel
%else
BuildRequires:  wxGTK-devel
%endif

%if %{defined suse_version}
BuildRequires:  libSDL-devel
BuildRequires:  libphysfs-devel
BuildRequires:  update-desktop-files
%endif

%if %{defined fedora}
BuildRequires:  SDL-devel
BuildRequires:  physfs-devel
BuildRequires:  desktop-file-utils
%endif

Summary:        Data for glestae
Url:            http://sourceforge.net/apps/trac/glestae/
Source0:        glestae-src-%{version}.tar.gz
Requires:       glestae
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
Data needed to play glestae.

%prep
%setup -q -n glestae-src-%{version}

%build
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
      -DGAE_PKG_ONLY_DATA=ON \
      ..

%install
cd build
%make_install

%if %{defined suse_version}
%fdupes -s %{buildroot}
%endif

%clean
rm -rf %{buildroot}

%files
%defattr(-, root, root)
%{_datadir}/glestae

%changelog
openSUSE Build Service is sponsored by