2012-03-25 02:02:11 +00:00
#
# spec file for package lugaru
#
2018-02-13 21:36:06 +00:00
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
2017-06-03 16:34:11 +00:00
# Copyright (c) 2017 Neal Gompa <ngompa13@gmail.com>.
2012-03-25 02:02:11 +00:00
#
# 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/
#
2010-05-13 11:51:50 +00:00
Name : lugaru
2017-06-03 16:34:11 +00:00
Version : 1.2
2010-05-13 11:51:50 +00:00
Release : 0
2017-02-22 11:12:41 +00:00
Summary : Third-person ninja rabbit fighting game
2016-12-17 15:33:02 +00:00
License : GPL-2.0+
Group : Amusements/Games/Action/Other
Url : https://osslugaru.gitlab.io/
2017-02-15 11:04:32 +00:00
Source : https://bitbucket.org/osslugaru/lugaru/downloads/%{name} -%{version} .tar.xz
2017-06-03 16:34:11 +00:00
# PATCH-FIX-UPSTREAM 0001-CMake-Define-build-type-before-configuring-version-h.patch rverschelde@gmail.com -- Define build type before configuring version header
Patch0001 : 0001-CMake-Define-build-type-before-configuring-version-h.patch
# PATCH-FIX-UPSTREAM 0002-ImageIO-fix-invalid-conversion.patch romain.naour@gmail.com -- ImageIO: fix invalid conversion
Patch0002 : 0002-ImageIO-fix-invalid-conversion.patch
# PATCH-FIX-UPSTREAM 0003-Dist-Linux-Add-content-ratings-to-AppStream-appdata-.patch ngompa13@gmail.com -- Add content ratings to AppStream data
Patch0003 : 0003-Dist-Linux-Add-content-ratings-to-AppStream-appdata-.patch
2016-12-17 15:33:02 +00:00
# PATCH-FIX-OPENSUSE lugaru-1.1-do-not-install-documentation.patch ngompa13@gmail.com -- Don't try to install docs, as we're doing it ourselves
2017-06-03 16:34:11 +00:00
Patch1000 : lugaru-1.1-do-not-install-documentation.patch
# For autosetup
BuildRequires : git-core
2012-03-25 02:02:11 +00:00
BuildRequires : cmake
BuildRequires : fdupes
BuildRequires : gcc-c++
2016-12-17 15:33:02 +00:00
# Icon is installed into hicolor-icon-theme path
BuildRequires : hicolor-icon-theme
2012-03-25 02:02:11 +00:00
BuildRequires : libjpeg-devel
2016-12-17 15:33:02 +00:00
BuildRequires : pkgconfig
2012-03-25 02:02:11 +00:00
BuildRequires : update-desktop-files
2018-02-13 21:36:06 +00:00
BuildRequires : pkgconfig(gl)
2016-12-17 15:33:02 +00:00
BuildRequires : pkgconfig(glu)
BuildRequires : pkgconfig(libpng)
BuildRequires : pkgconfig(ogg)
BuildRequires : pkgconfig(openal)
BuildRequires : pkgconfig(sdl2)
BuildRequires : pkgconfig(vorbis)
BuildRequires : pkgconfig(vorbisfile)
BuildRequires : pkgconfig(zlib)
Requires : hicolor-icon-theme
# Require Lugaru game content
Requires : %{name} -data = %{version}
BuildRoot : %{_tmppath} /%{name} -%{version} -build
%if 0%{?suse_version}
# Ensure cache is updated
Requires(post) : hicolor-icon-theme
Requires(postun) : hicolor-icon-theme
%endif
2010-05-13 11:51:50 +00:00
%description
2017-02-22 11:12:41 +00:00
Lugaru is the predecessor to Overgrowth (http://www.wolfire.com/overgrowth).
2017-06-03 16:34:11 +00:00
It is a third-person action game. The main character, Turner, is an anthropomorphic
rebel bunny rabbit with impressive combat skills. In his quest to find those responsible
for slaughtering his village, he uncovers a far-reaching conspiracy involving the corrupt
leaders of the rabbit republic and the starving wolves from a nearby den. Turner takes it
2010-05-13 12:31:12 +00:00
upon himself to fight against their plot and save his fellow rabbits from slavery.
2010-05-13 11:51:50 +00:00
2016-12-17 15:33:02 +00:00
%package data
Summary : Arch-independent data files for the Lugaru game
2017-02-22 11:12:41 +00:00
License : CC-BY-SA-3.0 and CC-BY-SA-4.0
Group : Amusements/Games/Action/Other
2016-12-17 15:33:02 +00:00
Requires : %{name} = %{version}
BuildArch : noarch
%description data
This package contains arch-independent data files for the game Lugaru.
2010-05-13 11:51:50 +00:00
%prep
2017-06-03 16:34:11 +00:00
%autosetup -S git
2012-03-25 02:02:11 +00:00
%build
2016-12-17 15:33:02 +00:00
# Ensure that it looks in the right place for the game data
%cmake -DSYSTEM_INSTALL=ON \
2016-12-17 18:30:43 +00:00
-DCMAKE_INSTALL_DATADIR=%{_datadir}
2016-12-17 15:33:02 +00:00
2018-02-13 21:36:06 +00:00
%make_jobs
2010-05-13 11:51:50 +00:00
%install
2018-02-13 21:36:06 +00:00
%cmake_install
2016-12-17 15:33:02 +00:00
%fdupes %{buildroot} %{_datadir}
2010-05-13 12:31:12 +00:00
%if 0%{?suse_version}
%suse_update_desktop_file %{name}
2016-12-17 15:33:02 +00:00
%post
%icon_theme_cache_post
%postun
%icon_theme_cache_postun
2010-05-13 12:31:12 +00:00
%endif
2010-05-13 11:51:50 +00:00
%files
%defattr (-,root,root)
2016-12-17 15:33:02 +00:00
%doc COPYING.txt AUTHORS RELEASE-NOTES.md Docs/*
2010-05-13 11:51:50 +00:00
%{_bindir} /%{name}
2016-12-17 15:33:02 +00:00
%dir %{_datadir} /appdata
%{_datadir} /appdata/%{name} .appdata.xml
2010-05-13 11:51:50 +00:00
%{_datadir} /applications/%{name} .desktop
2016-12-17 15:33:02 +00:00
%{_datadir} /icons/hicolor/128x128/apps/%{name} .png
%{_mandir} /man6/%{name} .6*
%files data
%defattr (-,root,root)
%doc CONTENT-LICENSE.txt
%dir %{_datadir} /%{name}
%{_datadir} /%{name} /*
2010-05-13 11:51:50 +00:00
%changelog