File wyrmgus.spec of Package wyrmgus
#
# spec file for package wyrmgus
#
# 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: wyrmgus
Version: 2.8.1
Release: 0
Summary: Game engine for Wyrmsun
License: GPL-2.0
Group: Amusements/Games/Strategy/Real Time
Url: https://andrettin.github.io/
Source: https://github.com/Andrettin/Wyrmgus/archive/v%{version}/Wyrmgus-%{version}.tar.gz
BuildRequires: SDL-devel
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: libbz2-devel
BuildRequires: libmikmod-devel
BuildRequires: libmng-devel
BuildRequires: libogg-devel
BuildRequires: libphysfs-devel
BuildRequires: libpng-devel
BuildRequires: libtheora-devel
BuildRequires: libvorbis-devel
BuildRequires: lua51-devel
BuildRequires: oaml-devel
BuildRequires: sqlite3-devel
BuildRequires: zlib-devel
%if 0%{?suse_version} <= 1320
BuildRequires: pkgconfig(tolua++)
%else
BuildRequires: libtolua++-5_1-devel
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Modified Stratagus engine for Wyrmsun
%package devel
Summary: Real-time strategy gaming engine development files
Group: Development/Languages/C and C++
Requires: wyrmgus
%description devel
These are the development files for Wyrmsun which is based on the Stratagus engine.
%prep
%setup -q -n Wyrmgus-%{version}
%build
%cmake -DWITH_BZIP2=ON -DWITH_PHYSFS=ON \
-DGAMEDIR=%{_bindir} -DENABLE_USEGAMEDIR=OFF
make %{?_smp_mflags}
%install
%cmake_install
install -D -m 0644 doc/stratagus.6 %{buildroot}%{_mandir}/man6/wyrmgus.6
install -Dm644 gameheaders/stratagus-game-launcher.h %{buildroot}%{_includedir}/wyrmgus-game-launcher.h
mv %{buildroot}%{_bindir}/stratagus %{buildroot}%{_bindir}/wyrmgus
mv %{buildroot}%{_bindir}/png2stratagus %{buildroot}%{_bindir}/png2wyrmgus
%files
%defattr(-,root,root)
%doc COPYING README.MD
%{_bindir}/wyrmgus
%{_mandir}/man6/wyrmgus.6*
%{_bindir}/png2wyrmgus
%files devel
%defattr(-,root,root)
%{_includedir}/wyrmgus-game-launcher.h
%changelog