File dunedynasty.spec of Package dunedynasty
#
# spec file for package dunedynasty
#
# 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/
#
Summary: A continuation of the classic real-time strategy game Dune II
License: GPL-2.0
Group: Amusements/Games/Strategy/Real Time
Name: dunedynasty
Version: 1.5.7
Release: 0
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Source1: %{name}.desktop
Url: http://dunedynasty.sourceforge.net/
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(allegro-5)
BuildRequires: pkgconfig(allegro_acodec-5)
BuildRequires: pkgconfig(allegro_audio-5)
BuildRequires: pkgconfig(allegro_image-5)
BuildRequires: pkgconfig(allegro_memfile-5)
BuildRequires: pkgconfig(allegro_primitives-5)
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(fluidsynth)
BuildRequires: pkgconfig(gl)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Dune Dynasty is a continuation of the classic real-time strategy game
Dune II by Westwood Studios. It is not a remake. It builds upon the
original game engine as reverse-engineered by the OpenDUNE project.
Note: Original Dune II game files in ~/.local/share/dunedynasty/data/
are needed to play.
%prep
%setup -q
%build
%cmake -DWITH_MAD=OFF
make %{?_smp_mflags}
%install
%cmake_install
install -Dm644 src/video/dune2_32x32.xpm %{buildroot}%{_datadir}/pixmaps/%{name}.xpm
install -Dm644 %{S:1} %{buildroot}%{_datadir}/applications/%{name}.desktop
mkdir -p %{buildroot}%{_docdir}
mv %{buildroot}%{_prefix}/doc/%{name}-1.5/ %{buildroot}%{_docdir}/%{name}
%post
%desktop_database_post
%postun
%desktop_database_postun
%files
%defattr(-,root,root)
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.xpm
%{_docdir}/%{name}
%changelog