File unvanquished-maps.spec of Package unvanquished-maps

#
# spec file for package unvanquished-maps
#
# 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-maps
Version:        0.41.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/


# Maps will be automatically downloaded when game connects to game server,
#   however this package provides initial map pak, most servers use.
#
# Note:  http://dl.unvanquished.net/release/unvanquished_<version>.zip
#   contains which .pk3 files are required by upstream
#   and note within .zip, the file md5sums<version>
#
# http://sourceforge.net/projects/unvanquished/files/Assets/
# 
# http://gg.illwieckz.net/dl/unvanquished/pkg/
#
Source1:        http://dl.unvanquished.net/pkg/map-UTCS_trem+1.pk3
Source2:        http://dl.unvanquished.net/pkg/map-arachnid2_trem+1.pk3
Source3:        http://dl.unvanquished.net/pkg/map-karith_trem+1.pk3
Source4:        http://dl.unvanquished.net/pkg/map-methane-beta1_trem+1.pk3
Source5:        http://dl.unvanquished.net/pkg/map-nano_trem+1.pk3
Source6:        http://dl.unvanquished.net/pkg/map-nexus6_trem+1.pk3
Source7:        http://dl.unvanquished.net/pkg/map-niveus_trem+3.pk3
Source8:        http://dl.unvanquished.net/pkg/map-orion_trem+2.pk3
Source9:        http://dl.unvanquished.net/pkg/map-tremor_trem+1.pk3
#
Source10:       http://dl.unvanquished.net/pkg/map-antares_a04.pk3
Source11:       http://dl.unvanquished.net/pkg/map-chasm_b1+2.pk3
Source12:       http://dl.unvanquished.net/pkg/map-forlorn_a11.pk3
Source13:       http://dl.unvanquished.net/pkg/map-parpax_d04.pk3
Source14:       http://dl.unvanquished.net/pkg/map-perseus_b5a+1.pk3
Source15:       http://dl.unvanquished.net/pkg/map-plat23_b13+1.pk3
Source16:       http://dl.unvanquished.net/pkg/map-spacetracks_1.0+1.pk3
Source17:       http://dl.unvanquished.net/pkg/map-station15_1.0.pk3
Source18:       http://dl.unvanquished.net/pkg/map-thunder_b3+2.pk3
Source19:       http://dl.unvanquished.net/pkg/map-yocto_b2c+1.pk3
#
Source20:       http://dl.unvanquished.net/pkg/map-antares_a04+1.pk3
Source21:       http://dl.unvanquished.net/pkg/map-forlorn_a12.pk3
Source22:       http://dl.unvanquished.net/pkg/map-parpax_d05.pk3
#
Source23:       http://dl.unvanquished.net/pkg/map-forlorn_a13~1.pk3
Source24:       http://dl.unvanquished.net/pkg/map-station15_1.0+1.pk3

 
#  https://github.com/Unvanquished/Unvanquished/blob/master/debian/configfiles/maprotation.cfg

BuildArch:      noarch
Requires:       unvanquished

# Subpackages to split data for updates
# so not redownloading all data on version bump.

# Volume 1: contains previous versions
Requires:		%{name}-vol1  <= %{version}	
# Volume 2: contains newer versions
Requires:		%{name}-vol2  = %{version} 

%description
Players fight online in team based combat in a war of aliens against humans.

This package only contains the map pack.

Other maps are available at http://dl.unvanquished.net/pkg/,
or automatically downloaded when connecting to an online game server.

# Split for previous version files
%package vol1
Summary: Sci-fi RTS and FPS game
Group: Amusements/Games/Action/Shoot
#
%description vol1
This package only contains the map pack.

%package vol2
Summary: Sci-fi RTS and FPS game
Group: Amusements/Games/Action/Shoot
#
%description vol2
This package only contains the map pack.


%prep

%build

%install
mkdir -p %{buildroot}%{_datadir}/unvanquished/pkg/

install -m 644 %{_sourcedir}/map-*.pk3 %{buildroot}%{_datadir}/unvanquished/pkg/


%files
%defattr(-,root,root)
%dir %{_datadir}/unvanquished
%dir %{_datadir}/unvanquished/pkg/

%files vol1
%defattr(-,root,root)
%{_datadir}/unvanquished/pkg/map-UTCS_trem+1.pk3
%{_datadir}/unvanquished/pkg/map-arachnid2_trem+1.pk3
%{_datadir}/unvanquished/pkg/map-karith_trem+1.pk3
%{_datadir}/unvanquished/pkg/map-methane-beta1_trem+1.pk3
%{_datadir}/unvanquished/pkg/map-nano_trem+1.pk3
%{_datadir}/unvanquished/pkg/map-nexus6_trem+1.pk3
%{_datadir}/unvanquished/pkg/map-niveus_trem+3.pk3
%{_datadir}/unvanquished/pkg/map-orion_trem+2.pk3
%{_datadir}/unvanquished/pkg/map-tremor_trem+1.pk3
#
%{_datadir}/unvanquished/pkg/map-antares_a04.pk3
%{_datadir}/unvanquished/pkg/map-chasm_b1+2.pk3
%{_datadir}/unvanquished/pkg/map-forlorn_a11.pk3
%{_datadir}/unvanquished/pkg/map-parpax_d04.pk3
%{_datadir}/unvanquished/pkg/map-perseus_b5a+1.pk3
%{_datadir}/unvanquished/pkg/map-plat23_b13+1.pk3
%{_datadir}/unvanquished/pkg/map-spacetracks_1.0+1.pk3
%{_datadir}/unvanquished/pkg/map-station15_1.0.pk3
%{_datadir}/unvanquished/pkg/map-thunder_b3+2.pk3
%{_datadir}/unvanquished/pkg/map-yocto_b2c+1.pk3


%files vol2
%defattr(-,root,root)
%{_datadir}/unvanquished/pkg/map-antares_a04+1.pk3
%{_datadir}/unvanquished/pkg/map-forlorn_a12.pk3
%{_datadir}/unvanquished/pkg/map-parpax_d05.pk3
%{_datadir}/unvanquished/pkg/map-forlorn_a13~1.pk3
%{_datadir}/unvanquished/pkg/map-station15_1.0+1.pk3


%changelog
openSUSE Build Service is sponsored by