7039c407bc
- Update to version 0.0.20 * New maps * Better graphics and Camera See https://play0ad.com/new-release-0-a-d-alpha-20-timosthenes/ OBS-URL: https://build.opensuse.org/request/show/384117 OBS-URL: https://build.opensuse.org/package/show/games/0ad?expand=0&rev=57
175 lines
5.9 KiB
RPMSpec
175 lines
5.9 KiB
RPMSpec
#
|
|
# spec file for package 0ad
|
|
#
|
|
# Copyright (c) 2016 SUSE LINUX 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: 0ad
|
|
Version: 0.0.20
|
|
Release: 0
|
|
Url: http://play0ad.com/
|
|
Source: http://sourceforge.net/projects/zero-ad/files/releases/%{name}-%{version}-alpha-unix-build.tar.xz
|
|
Source99: %{name}.changes
|
|
BuildRequires: boost-devel
|
|
BuildRequires: cmake
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: mozilla-nspr-devel
|
|
BuildRequires: xz
|
|
BuildRequires: pkgconfig(IL)
|
|
BuildRequires: pkgconfig(icu-i18n)
|
|
BuildRequires: pkgconfig(zlib)
|
|
%if 0%{?suse_version} >= 1220
|
|
BuildRequires: libXcursor-devel
|
|
%endif
|
|
BuildRequires: libjpeg-devel
|
|
BuildRequires: libminiupnpc-devel
|
|
BuildRequires: libpng-devel
|
|
BuildRequires: nasm
|
|
BuildRequires: python
|
|
BuildRequires: subversion
|
|
BuildRequires: zip
|
|
BuildRequires: pkgconfig(gloox)
|
|
BuildRequires: pkgconfig(libcurl)
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
|
BuildRequires: pkgconfig(vorbis)
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%if 0%{?suse_version}
|
|
BuildRequires: pkg-config
|
|
BuildRequires: update-desktop-files
|
|
BuildRequires: pkgconfig(libenet)
|
|
BuildRequires: pkgconfig(openal)
|
|
|
|
%if 0%{?suse_version} >= 1140
|
|
BuildRequires: wxWidgets-wxcontainer-devel
|
|
%define _use_internal_dependency_generator 0
|
|
%define __find_requires %wx_requires
|
|
%else
|
|
BuildRequires: wxGTK-devel
|
|
%endif
|
|
|
|
%if 0%{?suse_version} == 1110
|
|
BuildRequires: SDL-devel
|
|
%else
|
|
BuildRequires: libSDL2-devel
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%if 0%{?fedora_version}
|
|
BuildRequires: SDL-devel
|
|
BuildRequires: desktop-file-utils
|
|
BuildRequires: libenet-devel
|
|
BuildRequires: openal-soft-devel
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: wxGTK-devel
|
|
%endif
|
|
|
|
%if 0%{?mandriva_version}
|
|
BuildRequires: libenet-devel
|
|
BuildRequires: libwxgtku2.8-devel
|
|
|
|
%if 0%{?mandriva_version} < 201000
|
|
BuildRequires: libopenal-devel
|
|
BuildRequires: openal-soft-devel
|
|
%endif
|
|
|
|
%if 0%{?mandriva_version} == 201000
|
|
BuildRequires: libopenal1-soft
|
|
%endif
|
|
|
|
%endif
|
|
|
|
Summary: Free, Open-Source, Cross-Platform RTS Game of Ancient Warfare
|
|
License: GPL-2.0+
|
|
Group: Amusements/Games/Strategy/Real Time
|
|
Requires: 0ad-data = %version
|
|
|
|
%description
|
|
0 A.D. (pronounced "zero ey-dee") is a free, open-source, cross-platform real-time
|
|
strategy (RTS) game of ancient warfare. In short, it is a historically-based
|
|
war/economy game that allows players to relive or rewrite the history of Western
|
|
civilizations, focusing on the years between 500 B.C. and 500 A.D. The project is
|
|
highly ambitious, involving state-of-the-art 3D graphics, detailed artwork, sound,
|
|
and a flexible and powerful custom-built game engine.
|
|
|
|
The game has been in development by Wildfire Games (WFG), a group of volunteer,
|
|
hobbyist game developers, since 2001. The code and data are available under the GPL
|
|
license, and the art, sound and documentation are available under CC-BY-SA. In short,
|
|
we consider 0 A.D. an an educational celebration of game development and ancient
|
|
history.
|
|
|
|
%prep
|
|
%setup -q -n %{name}-%{version}-alpha
|
|
modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{SOURCE99}")"
|
|
DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\""
|
|
TIME="\"$(date -d "${modified}" "+%%T")\""
|
|
find . -name '*.[ch]' -o -name '*.cpp' | xargs sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g"
|
|
|
|
%build
|
|
export CFLAGS="%{optflags}"
|
|
export CPPFLAGS="%{optflags} -fpermissive"
|
|
build/workspaces/update-workspaces.sh %{?_smp_mflags} --bindir=%{_bindir} --datadir=%{_datadir}/%{name} --libdir=%{_libdir}/%{name}
|
|
pushd build/workspaces/gcc
|
|
make verbose=1 %{?_smp_mflags}
|
|
popd
|
|
|
|
%install
|
|
install -Dm 0755 binaries/system/pyrogenesis %{buildroot}%{_bindir}/pyrogenesis
|
|
install -Dm 0755 binaries/system/libCollada.so %{buildroot}%{_libdir}/%{name}/libCollada.so
|
|
install -Dm 0755 binaries/system/libAtlasUI.so %{buildroot}%{_libdir}/%{name}/libAtlasUI.so
|
|
#install -Dm 0755 binaries/system/libminiupnpc.so.* %{buildroot}%{_libdir}/%{name}/
|
|
install -Dm 0755 binaries/system/libmozjs31-ps-release.so %{buildroot}%{_libdir}/%{name}/libmozjs31-ps-release.so
|
|
install -Dm 0755 binaries/system/libnvcore.so %{buildroot}%{_libdir}/%{name}/libnvcore.so
|
|
install -Dm 0755 binaries/system/libnvimage.so %{buildroot}%{_libdir}/%{name}/libnvimage.so
|
|
install -Dm 0755 binaries/system/libnvmath.so %{buildroot}%{_libdir}/%{name}/libnvmath.so
|
|
install -Dm 0755 binaries/system/libnvtt.so %{buildroot}%{_libdir}/%{name}/libnvtt.so
|
|
|
|
install -Dm 0644 build/resources/0ad.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
|
|
install -Dm 0644 build/resources/0ad.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
|
|
|
|
%if 0%{?suse_version}
|
|
%suse_update_desktop_file %{name}
|
|
%endif
|
|
|
|
%if 0%{?fedora_version}
|
|
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
|
|
%endif
|
|
|
|
install -Dm 0755 build/resources/0ad.sh %{buildroot}%{_bindir}/0ad
|
|
|
|
mkdir -p %{buildroot}%{_libdir}/%{name}
|
|
mkdir -p %{buildroot}%{_datadir}/%{name}
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc README.txt
|
|
%{_bindir}/0ad
|
|
%{_bindir}/pyrogenesis
|
|
%{_libdir}/%{name}/libCollada.so
|
|
%{_libdir}/%{name}/libAtlasUI.so
|
|
#%{_libdir}/%{name}/libminiupnpc.so.*
|
|
%{_libdir}/%{name}/libmozjs31-ps-release.so
|
|
%{_libdir}/%{name}/libnvcore.so
|
|
%{_libdir}/%{name}/libnvimage.so
|
|
%{_libdir}/%{name}/libnvmath.so
|
|
%{_libdir}/%{name}/libnvtt.so
|
|
%{_datadir}/pixmaps/%{name}.png
|
|
%{_datadir}/applications/%{name}.desktop
|
|
%dir %{_libdir}/%{name}
|
|
%dir %{_datadir}/%{name}
|
|
|
|
%changelog
|