File unvanquished-data.spec of Package unvanquished-data
#
# spec file for package unvanquished-data
#
# Copyright (c) 2014 SUSE LINUX Products 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: unvanquished-data
Version: 0.42.0
Release: 0
Summary: Sci-fi RTS and FPS game
License: CC-BY-SA-2.5 and CC-BY-SA-3.0
Group: Amusements/Games/Action/Shoot
Url: http://unvanquished.net/
# Note: http://dl.unvanquished.net/release/unvanquished_<version>.zip
# contains which .pk3 are required by upstream
# and note within .zip, the file md5sums<version>
# https://github.com/Unvanquished/Unvanquished/
# http://sourceforge.net/projects/unvanquished/files/Assets/
#
# Previous .pk3 (seemingly) required from 0.25.0 to Current version
Source1: http://dl.unvanquished.net/pkg/unvanquished_0.25.0.pk3
Source2: http://dl.unvanquished.net/pkg/unvanquished_0.26.0.pk3
Source3: http://dl.unvanquished.net/pkg/unvanquished_0.27.0.pk3
Source4: http://dl.unvanquished.net/pkg/unvanquished_0.28.0.pk3
Source5: http://dl.unvanquished.net/pkg/unvanquished_0.29.0.pk3
Source6: http://dl.unvanquished.net/pkg/unvanquished_0.30.0.pk3
Source7: http://dl.unvanquished.net/pkg/unvanquished_0.31.0.pk3
Source8: http://dl.unvanquished.net/pkg/unvanquished_0.32.0.pk3
#
Source9: http://dl.unvanquished.net/pkg/unvanquished_0.33.0.pk3
Source10: http://dl.unvanquished.net/pkg/unvanquished_0.34.0.pk3
Source11: http://dl.unvanquished.net/pkg/unvanquished_0.35.0.pk3
Source12: http://dl.unvanquished.net/pkg/unvanquished_0.36.0.pk3
Source13: http://dl.unvanquished.net/pkg/unvanquished_0.37.0.pk3
Source14: http://dl.unvanquished.net/pkg/unvanquished_0.38.0.pk3
Source15: http://dl.unvanquished.net/pkg/unvanquished_0.39.0.pk3
Source16: http://dl.unvanquished.net/pkg/unvanquished_0.40.0.pk3
Source17: http://dl.unvanquished.net/pkg/unvanquished_0.41.0.pk3
Source17: http://dl.unvanquished.net/pkg/unvanquished_0.42.0.pk3
# Textures
Source20: http://dl.unvanquished.net/pkg/tex-all_1.0.pk3
Source21: http://dl.unvanquished.net/pkg/tex-common_2.0.pk3
Source22: http://dl.unvanquished.net/pkg/tex-ex_1.0.pk3
Source23: http://dl.unvanquished.net/pkg/tex-exm_1.0.pk3
Source24: http://dl.unvanquished.net/pkg/tex-pk01_1.0.pk3
Source25: http://dl.unvanquished.net/pkg/tex-pk02_1.0.pk3
Source26: http://dl.unvanquished.net/pkg/tex-space_1.0.pk3
Source27: http://dl.unvanquished.net/pkg/tex-tech_1.0.pk3
Source28: http://dl.unvanquished.net/pkg/tex-trak5_1.0.pk3
Source29: http://dl.unvanquished.net/pkg/tex-vega_b3.pk3
#
Source30: http://dl.unvanquished.net/pkg/tex-all_2.0.pk3
Source31: http://dl.unvanquished.net/pkg/tex-ej01-clean_1.0.pk3
Source32: http://dl.unvanquished.net/pkg/tex-ej01-common_1.0.pk3
Source33: http://dl.unvanquished.net/pkg/tex-ej01-ice_1.0.pk3
BuildArch: noarch
Requires: unvanquished = %{version}
# Subpackages to split data for updates
# with no changes to older large data files
# so not redownloading all data on version bump.
# (?How to manage when adding later version data, naming? etc)
#
# TODO?: Since .pk3 files are just zip files, if later revisioned game data
# is in later .pk3 files, may be worth unpacking and repacking. Especially the
# unvanquished_0.xx.y.pk3 files. Ask upstream to repack??
# Can this be done in rpm? Would this lose benefit of 'not redownloads'?
# (would think so, but what side effects or added maintenance vs upstream)
# Volume 1: contains version 25 to 32 data
Requires: %{name}-vol1 <= %{version}
# Volume 2: contains version 33 +
Requires: %{name}-vol2 = %{version}
%description
Players fight online in team based combat in a war of aliens against humans.
This package only contains the game files.
# Split for previous version files
%package vol1
Summary: Sci-fi RTS and FPS game
Group: Amusements/Games/Action/Shoot
#
%description vol1
Players fight online in team based combat in a war of aliens against humans.
This package only contains the game files.
-- data files for versions 25 to 32
%package vol2
Summary: Sci-fi RTS and FPS game
Group: Amusements/Games/Action/Shoot
#
%description vol2
Players fight online in team based combat in a war of aliens against humans.
This package only contains the game files.
-- data files for versions 33 to Current
%prep
%build
%install
mkdir -p %{buildroot}%{_datadir}/unvanquished/pkg/
# .pk3 data files
install -m 644 %{_sourcedir}/unvanquished_*.pk3 %{buildroot}%{_datadir}/unvanquished/pkg/
# Textures
install -m 644 %{_sourcedir}/tex-*.pk3 %{buildroot}%{_datadir}/unvanquished/pkg/
%files
%defattr(-,root,root)
%dir %{_datadir}/unvanquished
%dir %{_datadir}/unvanquished/pkg/
%files vol1
%defattr(-,root,root)
%{_datadir}/unvanquished/pkg/tex-all_1.0.pk3
%{_datadir}/unvanquished/pkg/tex-common_2.0.pk3
%{_datadir}/unvanquished/pkg/tex-ex_1.0.pk3
%{_datadir}/unvanquished/pkg/tex-exm_1.0.pk3
%{_datadir}/unvanquished/pkg/tex-pk01_1.0.pk3
%{_datadir}/unvanquished/pkg/tex-pk02_1.0.pk3
%{_datadir}/unvanquished/pkg/tex-space_1.0.pk3
%{_datadir}/unvanquished/pkg/tex-tech_1.0.pk3
%{_datadir}/unvanquished/pkg/tex-trak5_1.0.pk3
%{_datadir}/unvanquished/pkg/unvanquished_0.25.0.pk3
%{_datadir}/unvanquished/pkg/unvanquished_0.26.0.pk3
%{_datadir}/unvanquished/pkg/unvanquished_0.27.0.pk3
%{_datadir}/unvanquished/pkg/unvanquished_0.28.0.pk3
%{_datadir}/unvanquished/pkg/unvanquished_0.29.0.pk3
%{_datadir}/unvanquished/pkg/unvanquished_0.30.0.pk3
%{_datadir}/unvanquished/pkg/unvanquished_0.31.0.pk3
%{_datadir}/unvanquished/pkg/unvanquished_0.32.0.pk3
%files vol2
%defattr(-,root,root)
%{_datadir}/unvanquished/pkg/tex-all_2.0.pk3
%{_datadir}/unvanquished/pkg/tex-ej01-clean_1.0.pk3
%{_datadir}/unvanquished/pkg/tex-ej01-common_1.0.pk3
%{_datadir}/unvanquished/pkg/tex-ej01-ice_1.0.pk3
%{_datadir}/unvanquished/pkg/tex-vega_b3.pk3
%{_datadir}/unvanquished/pkg/unvanquished_0.33.0.pk3
%{_datadir}/unvanquished/pkg/unvanquished_0.34.0.pk3
%{_datadir}/unvanquished/pkg/unvanquished_0.35.0.pk3
%{_datadir}/unvanquished/pkg/unvanquished_0.36.0.pk3
%{_datadir}/unvanquished/pkg/unvanquished_0.37.0.pk3
%{_datadir}/unvanquished/pkg/unvanquished_0.38.0.pk3
%{_datadir}/unvanquished/pkg/unvanquished_0.39.0.pk3
%{_datadir}/unvanquished/pkg/unvanquished_0.40.0.pk3
%{_datadir}/unvanquished/pkg/unvanquished_0.41.0.pk3
%{_datadir}/unvanquished/pkg/unvanquished_0.42.0.pk3
%changelog