Blob Blame History Raw
%global nodotver %%(echo %{version} | sed 's/\\.//')

Name:           warsow-data
Version:        2.1
Release:        1%{?dist}
Summary:        Game data for Warsow

# For a breakdown of the licensing, see license.txt
License:        CC-BY-SA and CC-BY-ND
URL:            https://www.warsow.gg
Source0:        http://update.warsow.gg/mirror/warsow_%{nodotver}_unified.tar.gz

BuildArch:      noarch

# Warsow is only ported to these architectures
ExclusiveArch:  %{ix86} x86_64 %{arm} noarch

BuildRequires:  /usr/bin/dos2unix
Requires:       warsow = %{version}

%description
Warsow is a fast paced first person shooter consisting of cel-shaded
cartoon-like graphics with dark, flashy and dirty textures. Warsow is based on
the E-novel "Chasseur de bots" ("Bots hunter" in English) by Fabrice Demurger.
Warsow's codebase is built upon Qfusion, an advanced modification of the Quake
II engine.

This package installs the game data files (textures, maps, sounds, etc.).

%prep
%setup -q -n warsow_%{nodotver}

# Convert to utf-8 and Unix line breaks
dos2unix docs/license.txt

%build
# nothing to build

%install
mkdir -p $RPM_BUILD_ROOT%{_datadir}/warsow
cp -a basewsw $RPM_BUILD_ROOT%{_datadir}/warsow/

%files
%license docs/license.txt
%{_datadir}/warsow/

%changelog
* Wed Feb 01 2017 Pete Walter <pwalter@fedoraproject.org> - 2.1-2
- Add ExclusiveArch

* Wed Jun 08 2016 Pete Walter <pwalter@fedoraproject.org> - 2.1-1
- Initial Fedora package