Blame 0ad-data.spec

e9ad02
#
e9ad02
# spec file for package 0ad-data
e9ad02
#
e9ad02
# Copyright (c) 2021 SUSE LLC
e9ad02
#
e9ad02
# All modifications and additions to the file contributed by third parties
e9ad02
# remain the property of their copyright owners, unless otherwise agreed
e9ad02
# upon. The license for this file, and modifications and additions to the
e9ad02
# file, is the same license as for the pristine package itself (unless the
e9ad02
# license for the pristine package is not an Open Source License, in which
e9ad02
# case the license is the MIT License). An "Open Source License" is a
e9ad02
# license that conforms to the Open Source Definition (Version 1.9)
e9ad02
# published by the Open Source Initiative.
e9ad02
e9ad02
# Please submit bugfixes or comments via https://bugs.opensuse.org/
e9ad02
#
e9ad02
e9ad02
e9ad02
Name:           0ad-data
e9ad02
Version:        0.0.25b
e9ad02
Release:        0
e9ad02
Summary:        The Data Files for 0 AD
e9ad02
# When openSUSE supports full spdx 2.2, replace GPL-3.0+ with (GPL-3.0+ with Font-exception-2.0)
e9ad02
License:        CC-BY-SA-3.0 AND LPPL-1.3c+ AND GPL-3.0-or-later
e9ad02
Group:          Amusements/Games/Strategy/Real Time
e9ad02
URL:            https://play0ad.com/
e9ad02
# SF tarball is currently broken. Upstreamed notified and confirmed. Lets use their site for now.
e9ad02
Source:         https://releases.wildfiregames.com/0ad-%{version}-alpha-unix-data.tar.xz
e9ad02
BuildRequires:  dejavu-fonts
e9ad02
BuildRequires:  fdupes
e9ad02
BuildRequires:  gnu-free-fonts
e9ad02
Requires:       dejavu-fonts
e9ad02
Requires:       gnu-free-fonts
e9ad02
BuildArch:      noarch
e9ad02
e9ad02
%description
e9ad02
0 A.D. (pronounced "zero ey-dee") is a free, open-source, cross-platform real-time
e9ad02
strategy (RTS) game of ancient warfare. In short, it is a historically-based
e9ad02
war/economy game that allows players to relive or rewrite the history of Western
e9ad02
civilizations, focusing on the years between 500 B.C. and 500 A.D. The project is
e9ad02
highly ambitious, involving state-of-the-art 3D graphics, detailed artwork, sound,
e9ad02
and a flexible and powerful custom-built game engine.
e9ad02
e9ad02
The game has been in development by Wildfire Games (WFG), a group of volunteer,
e9ad02
hobbyist game developers, since 2001. The code and data are available under the GPL
e9ad02
license, and the art, sound and documentation are available under CC-BY-SA.
e9ad02
e9ad02
%prep
e9ad02
%setup -q -n 0ad-%{version}-alpha
e9ad02
e9ad02
%build
e9ad02
e9ad02
%install
e9ad02
mkdir -p %{buildroot}%{_datadir}
e9ad02
mv binaries/data %{buildroot}%{_datadir}/0ad
e9ad02
mkdir -p %{buildroot}%{_datadir}/0ad/l10n
e9ad02
e9ad02
# Replace fonts with system provided ones
e9ad02
cd %{buildroot}%{_datadir}/0ad/tools/fontbuilder/fonts
e9ad02
for font in {Free,Deja}*.ttf; do
e9ad02
    rm "$font"
e9ad02
    ln -s %{_datadir}/fonts/truetype/"$font" "$font"
e9ad02
done
e9ad02
e9ad02
%fdupes %{buildroot}%{_datadir}/0ad
e9ad02
e9ad02
%files
e9ad02
%defattr(-,root,root)
e9ad02
%{_datadir}/0ad
e9ad02
e9ad02
%changelog