File solarus.spec of Package solarus
#
# spec file for package solarus
#
# 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: solarus
Version: 1.5.1
Release: 0
Summary: Zelda-like game engine
License: GPL-3.0+
Group: Amusements/Games/RPG
Url: http://www.solarus-engine.org/
Source: http://www.solarus-games.org/downloads/solarus/%{name}-%{version}-src.tar.gz
# PATCH-FIX-UPSTREAM https://github.com/solarus-games/solarus/pull/1020
Patch1: luajit-5_1-2.1.patch
# PATCH-FIX-UPSTREAM https://github.com/solarus-games/solarus/pull/1021
Patch2: icons-desktop-man.patch
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: physfs-devel
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Help)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(SDL2_image)
BuildRequires: pkgconfig(SDL2_ttf)
BuildRequires: pkgconfig(libmodplug)
BuildRequires: pkgconfig(luajit)
BuildRequires: pkgconfig(openal)
BuildRequires: pkgconfig(sdl2)
BuildRequires: pkgconfig(vorbis)
%description
Solarus is a Zelda-like game engine written in C++.
%package -n libsolarus1
Summary: Zelda-like game engine
Group: System/Libraries
%description -n libsolarus1
Solarus is a Zelda-like game engine written in C++.
%package devel
Summary: Development files for solarus
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
%description devel
Development files for solarus, including header-files.
%prep
%setup -q
%patch1 -p1
%patch2 -p1
%build
%cmake
make %{?_smp_mflags}
%install
%cmake_install
%post
%icon_theme_cache_post
%desktop_database_post
%postun
%icon_theme_cache_postun
%desktop_database_postun
%post -n libsolarus1 -p /sbin/ldconfig
%postun -n libsolarus1 -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc changelog.txt license.txt README.md
%{_bindir}/solarus
%{_libdir}/libsolarus-gui.so
%{_bindir}/solarus-run
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_datadir}/applications/%{name}.desktop
%{_mandir}/man6/solarus.*
%files -n libsolarus1
%defattr(-,root,root)
%{_libdir}/libsolarus.so.*
%files devel
%defattr(-,root,root,-)
%{_includedir}/solarus
%{_libdir}/libsolarus.so
%changelog