File wyrmsun.spec of Package wyrmsun
#
# spec file for package wyrmsun
#
# 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: wyrmsun
Version: 2.5.3
Release: 0
Summary: Strategy game based on history, mythology and fiction
License: GPL-2.0 and CC-BY-SA-3.0
Group: Amusements/Games/Strategy/Real Time
Url: https://andrettin.github.io/
Source: https://github.com/Andrettin/Wyrmsun/archive/v%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: hicolor-icon-theme
BuildRequires: update-desktop-files
BuildArch: noarch
Requires: wyrmgus = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
In the Wyrmsun universe a myriad of inhabited planets exist. Humans dwell on Earth,
while dwarves inhabit Nidavellir and elves nourish the world of Alfheim. These
peoples struggle to carve a place for themselves with their tools of stone, bronze
and iron. And perhaps one day they will meet one another, beyond the stars...
%prep
%setup -q -n Wyrmsun-%{version}
%build
%install
mkdir -p %{buildroot}%{_datadir}/wyrmsun
cp -r * %{buildroot}%{_datadir}/wyrmsun
install -Dm644 graphics/ui/icons/wyrmsun_icon_32.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/wyrmsun.png
install -Dm644 graphics/ui/icons/wyrmsun_icon_128.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/wyrmsun.png
install -Dm644 linux/wyrmsun.desktop %{buildroot}%{_datadir}/applications/wyrmsun.desktop
install -Dm644 linux/wyrmsun.appdata.xml %{buildroot}%{_datadir}/appdata/wyrmsun.appdata.xml
%fdupes -s %{buildroot}%{_prefix}
%post
%desktop_database_post
%icon_theme_cache_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%files
%defattr(-,root,root)
%doc license.txt readme.txt
%{_datadir}/wyrmsun
%{_datadir}/icons/hicolor/*/apps/wyrmsun.png
%{_datadir}/applications/wyrmsun.desktop
%dir %{_datadir}/appdata/
%{_datadir}/appdata/wyrmsun.appdata.xml
%changelog