Accepting request 454769 from home:Mailaender:branches:games

try and avoid osc auto-format breaking the data license

OBS-URL: https://build.opensuse.org/request/show/454769
OBS-URL: https://build.opensuse.org/package/show/games/lugaru?expand=0&rev=15
This commit is contained in:
Adam Mizerski 2017-02-15 11:04:32 +00:00 committed by Git OBS Bridge
parent c41bdad666
commit b6cc6e35f1
6 changed files with 11 additions and 141 deletions

View File

@ -1,13 +0,0 @@
<services>
<service name="tar_scm">
<param name="scm">git</param>
<param name="url">https://gitlab.com/osslugaru/lugaru.git</param>
<param name="revision">refs/tags/1.1</param>
<param name="versionformat">@PARENT_TAG@</param>
</service>
<service name="recompress">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service name="set_version"/>
</services>

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9a6568c78f90f1af6cadcb3de2c5378996709842aae9e74e3d6beb1c29efa14a
size 34386828

View File

@ -1,122 +0,0 @@
#
# spec file for package lugaru
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2016 Neal Gompa <ngompa13@gmail.com>.
#
# 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: lugaru
Version: 1.1
Release: 0
Summary: Third person ninja rabbit fighting game
License: GPL-2.0+
Group: Amusements/Games/Action/Other
Url: https://osslugaru.gitlab.io/
Source: %{name}-%{version}.tar.xz
# 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
Patch0: lugaru-1.1-do-not-install-documentation.patch
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: gcc-c++
# Icon is installed into hicolor-icon-theme path
BuildRequires: hicolor-icon-theme
BuildRequires: libjpeg-devel
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
BuildRequires: xorg-x11-devel
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
%description
Lugaru (pronounced Loo-GAH-roo) is the predecessor to Overgrowth (http://www.wolfire.com/overgrowth).
It is a DRM-free, third-person action game available for Mac, Windows, and Linux. 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
upon himself to fight against their plot and save his fellow rabbits from slavery.
%package data
Summary: Arch-independent data files for the Lugaru game
Group: Amusements/Games/Action/Other
%if 0%{?suse_version} && 0%{?suse_version} <= 1310
License: CC-BY-SA-3.0+
%else
License: CC-BY-SA-3.0 and CC-BY-SA-4.0
%endif
Requires: %{name} = %{version}
BuildArch: noarch
%description data
This package contains arch-independent data files for the game Lugaru.
%prep
%setup -q
%patch0 -p1
%build
# Ensure that it looks in the right place for the game data
%cmake -DSYSTEM_INSTALL=ON \
-DCMAKE_INSTALL_DATADIR=%{_datadir}
make VERBOSE=1 %{?_smp_mflags}
%install
%make_install -C build
%fdupes %{buildroot}%{_datadir}
%if 0%{?suse_version}
%suse_update_desktop_file %{name}
%post
%icon_theme_cache_post
%postun
%icon_theme_cache_postun
%endif
%files
%defattr(-,root,root)
%doc COPYING.txt AUTHORS RELEASE-NOTES.md Docs/*
%{_bindir}/%{name}
%dir %{_datadir}/appdata
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_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}/*
%changelog

3
lugaru-1.1.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5e00f6fc611857926c67443580732b846619f9ff5cfe1801b011c7c5e738b82c
size 34387008

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Feb 5 13:45:08 UTC 2017 - mailaender@opensuse.org
- Use https://en.opensuse.org/SourceUrls
-------------------------------------------------------------------
Sat Dec 17 16:01:51 UTC 2016 - ngompa13@gmail.com

View File

@ -1,7 +1,7 @@
#
# spec file for package lugaru
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2016 Neal Gompa <ngompa13@gmail.com>.
#
# All modifications and additions to the file contributed by third parties
@ -24,7 +24,7 @@ Summary: Third person ninja rabbit fighting game
License: GPL-2.0+
Group: Amusements/Games/Action/Other
Url: https://osslugaru.gitlab.io/
Source: %{name}-%{version}.tar.xz
Source: https://bitbucket.org/osslugaru/lugaru/downloads/%{name}-%{version}.tar.xz
# 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
Patch0: lugaru-1.1-do-not-install-documentation.patch
BuildRequires: cmake
@ -65,12 +65,12 @@ upon himself to fight against their plot and save his fellow rabbits from slaver
%package data
Summary: Arch-independent data files for the Lugaru game
Group: Amusements/Games/Action/Other
%if 0%{?suse_version} && 0%{?suse_version} <= 1310
License: CC-BY-SA-3.0+
%else
License: CC-BY-SA-3.0 and CC-BY-SA-4.0
%endif
Group: Amusements/Games/Action/Other
Requires: %{name} = %{version}
BuildArch: noarch