File openclonk.spec of Package openclonk

# spec file for package openclonk
# 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
# 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

Name:           openclonk
Version:        7.0
Release:        0
Summary:        Fast-paced 2D genre mix
License:        ISC and CC-BY-3.0
Group:          Amusements/Games/Action/Other
Patch0:         appdata.patch
Patch1:         fix-CMakeLists.patch
BuildRequires:  boost-devel
BuildRequires:  cmake >= 2.8.10
BuildRequires:  googletest-devel
BuildRequires:  hicolor-icon-theme
BuildRequires:  libjpeg-devel
BuildRequires:  make
BuildRequires:  pkgconfig
BuildRequires:  readline-devel
BuildRequires:  shared-mime-info
BuildRequires:  tinyxml-devel
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(SDL_mixer)
BuildRequires:  pkgconfig(dri)
BuildRequires:  pkgconfig(freealut)
BuildRequires:  pkgconfig(freetype2)
BuildRequires:  pkgconfig(gl)
BuildRequires:  pkgconfig(glew)
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  pkgconfig(gtksourceview-3.0)
BuildRequires:  pkgconfig(libpng12)
BuildRequires:  pkgconfig(libupnp)
BuildRequires:  pkgconfig(ogg)
BuildRequires:  pkgconfig(sdl)
BuildRequires:  pkgconfig(vorbis)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xpm)
BuildRequires:  pkgconfig(xrandr)
BuildRequires:  pkgconfig(xxf86vm)
BuildRequires:  pkgconfig(zlib)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} == 1315
BuildRequires:  gcc5-c++
BuildRequires:  gcc-c++ >= 4.9

Clonks are witty and nimble human-like creatures.
They build, run, dig and fight: everything in
real-time and in direct control, alone, with or
versus other players.

%setup -q -n %{name}-%{version}-src
%patch0 -p1
%patch1 -p1

rm -rf planet/Tests.c4f

%cmake \
    -DOC_SYSTEM_DATA_DIR=%{_datadir}/%{name} \
    -DOC_SYSTEM_GAMES_DIR=%{_bindir} \
%if 0%{?suse_version} == 1315
    -DCMAKE_C_COMPILER=gcc-5 \

make %{?_smp_mflags}




%if 0%{?suse_version} <= 1320
%dir %{_datadir}/appdata/
%dir %{_datadir}/icons/hicolor/512x512
%dir %{_datadir}/icons/hicolor/512x512/apps
%license COPYING

openSUSE Build Service is sponsored by