File tsc.spec of Package tsc

#
# spec file for package tsc
#
# Copyright (c) 2017 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 http://bugs.opensuse.org/
#


Name:           tsc
Version:        2.1.0
Release:        0
Summary:        The Secret Chronicles of Dr. M. - a 2D platform game in classic style
License:        GPL-3.0+
Group:          Amusements/Games/Action/Arcade
Url:            https://secretchronicles.org
Source:         https://ftp.secretchronicles.org/releases/TSC-%{version}.tar.gz
BuildRequires:  bison
BuildRequires:  boost-devel
BuildRequires:  libboost_filesystem-devel
BuildRequires:  ruby
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  gettext
BuildRequires:  gperf
BuildRequires:  pkgconfig(sfml-all)
BuildRequires:  pkgconfig
BuildRequires:  rubygem(rake) > 12.3
BuildRequires:  hicolor-icon-theme
BuildRequires:  pkgconfig(CEGUI-0-OPENGL)
BuildRequires:  pkgconfig(IL)
BuildRequires:  pkgconfig(SDL_image)
BuildRequires:  pkgconfig(SDL_mixer)
BuildRequires:  pkgconfig(SDL_ttf)
BuildRequires:  pkgconfig(freetype2)
BuildRequires:  pkgconfig(gl)
BuildRequires:  pkgconfig(glew)
BuildRequires:  pkgconfig(libpcre)
BuildRequires:  pkgconfig(libpng)
BuildRequires:  pkgconfig(libxml++-2.6)
BuildRequires:  pkgconfig(sdl)
BuildRequires:  pkgconfig(x11)
Requires:       %{name}-data >= %{version}

%description
The Secret Chronicles of Dr. M. (TSC) is a 2D sidescrolling platform game,
with a rich set of graphics, music, and an advanced level editor that
allows you to create your own levels. The level editor allows for in-game
scripting so there are no borders apart from your imagination.

%package data
Summary:        Games data for The Secret Chronicles
Group:          Amusements/Games/Action/Arcade
BuildArch:      noarch

%description data
This package contains data files for The Secret Chronicles of Dr. M.,
a 2D sidescrolling platform game.

%prep
%autosetup -n TSC-%{version}

%build
%cmake \
  -DCMAKE_INSTALL_BINDIR=%{_bindir} \
  -DCMAKE_INSTALL_DATADIR=%{_datadir}/%{name} \
  ../tsc
%cmake_build

%install
%cmake_install
%fdupes %{buildroot}%{_datadir}

%files
%defattr(-,root,root)
%license COPYING
%doc README.md
%{_bindir}/%{name}
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_datadir}/applications/%{name}.desktop
%{_datadir}/appdata/%{name}.appdata.xml
%{_mandir}/man6/%{name}.6*
%{_datadir}/doc/%{name}/

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

%changelog
openSUSE Build Service is sponsored by