File cytopia.spec of Package cytopia

#
# spec file for package cytopia
#
# Copyright (c) 2018 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:           cytopia
Version:        0.2.1
Release:        0
Summary:        A city building simulation game
License:        GPL-3.0
Group:          Amusements/Games/Strategy/Other
Url:            https://www.cytopia.net/
Source0:        https://github.com/CytopiaTeam/Cytopia/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM decrease the cmake version
Patch0:         cmake.patch
# PATCH-FIX-UPSTREAM remove missing module
Patch1:         fetch-content.patch
# PATCH-FIX-UPSTREAM remove a reference of a missing function
Patch2:         compile-definitions.patch
# PATCH-FIX-OPENSUSE install according to FHS
Patch3:         cmake-install.patch
BuildRequires:  cmake >= 3.10
BuildRequires:  gcc-c++
BuildRequires:  ninja
BuildRequires:  doxygen
BuildRequires:  graphviz
BuildRequires:  pkgconfig(sdl2)
BuildRequires:  pkgconfig(SDL2_image)
BuildRequires:  pkgconfig(SDL2_ttf)
BuildRequires:  pkgconfig(SDL2_mixer)
BuildRequires:  libnoise-devel
BuildRequires:  pkgconfig(openal)
BuildRequires:  pkgconfig(vorbis)
BuildRequires:  pkgconfig(zlib)
BuildRequires:  angelscript-devel
BuildRequires:  distribution-release
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Cytopia is a free, open source retro pixel-art city building
game with a big focus on mods. It utilizes a custom isometric
rendering engine based on SDL2.

%prep
%setup -q -n Cytopia-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1

%build
%cmake -DUSE_PACKAGE_MANAGER=OFF -DENABLE_MOFILEREADER=OFF -DBUILD_TEST=OFF -DPACKAGE_MANAGER=pkgconfig
%make_jobs

%install
%cmake_install

%files
%defattr(-, root, root)
%license license.txt
%doc ReleaseNotes.txt README.md credits.txt
%{_bindir}/Cytopia
%{_datadir}/cytopia/

%changelog
openSUSE Build Service is sponsored by