2012-03-25 15:24:05 +02:00
|
|
|
#
|
|
|
|
# spec file for package 0ad
|
|
|
|
#
|
2020-07-26 08:14:35 +02:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2012-03-25 15:24:05 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2020-07-26 08:14:35 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-03-25 15:24:05 +02:00
|
|
|
#
|
|
|
|
|
2010-07-22 11:28:09 +02:00
|
|
|
|
2020-07-26 08:14:35 +02:00
|
|
|
# Enable NVTT only on arch supported by nvidia-texture-tools
|
|
|
|
%ifarch %{ix86} x86_64 ppc
|
|
|
|
%bcond_without enable_nvtt
|
|
|
|
%else
|
|
|
|
%bcond_with enable_nvtt
|
|
|
|
%endif
|
|
|
|
|
2010-07-22 11:28:09 +02:00
|
|
|
Name: 0ad
|
2020-07-26 08:14:35 +02:00
|
|
|
Version: 0.0.23b
|
2013-04-03 18:00:59 +02:00
|
|
|
Release: 0
|
2016-09-06 06:58:47 +02:00
|
|
|
Summary: A real-time strategy game of ancient warfare
|
2020-07-26 08:14:35 +02:00
|
|
|
License: GPL-2.0-or-later AND LGPL-3.0-or-later AND CC-BY-SA-3.0 AND MIT AND ISC AND MPL-2.0 AND BSD-3-Clause
|
2016-09-06 06:58:47 +02:00
|
|
|
Group: Amusements/Games/Strategy/Real Time
|
2020-07-26 08:14:35 +02:00
|
|
|
URL: https://play0ad.com/
|
|
|
|
#Source: http://sourceforge.net/projects/zero-ad/files/releases/%{name}-%{version}-alpha-unix-build.tar.xz
|
|
|
|
# SF is repeatedly not up to date. Let's use their site
|
|
|
|
Source: https://releases.wildfiregames.com/%{name}-%{version}-alpha-unix-build.tar.xz
|
2012-03-25 15:24:05 +02:00
|
|
|
BuildRequires: cmake
|
2010-07-22 11:28:09 +02:00
|
|
|
BuildRequires: gcc-c++
|
2013-01-14 00:10:06 +01:00
|
|
|
BuildRequires: libXcursor-devel
|
2020-07-26 08:14:35 +02:00
|
|
|
BuildRequires: libboost_filesystem-devel
|
|
|
|
BuildRequires: libboost_system-devel
|
2010-07-22 11:28:09 +02:00
|
|
|
BuildRequires: libjpeg-devel
|
2015-04-03 13:54:02 +02:00
|
|
|
BuildRequires: libminiupnpc-devel
|
2010-07-22 11:28:09 +02:00
|
|
|
BuildRequires: libpng-devel
|
|
|
|
BuildRequires: nasm
|
2020-07-26 08:14:35 +02:00
|
|
|
%if %{with enable_nvtt}
|
|
|
|
BuildRequires: nvidia-texture-tools
|
|
|
|
%endif
|
2016-09-06 06:58:47 +02:00
|
|
|
BuildRequires: pkgconfig
|
2010-07-24 08:21:54 +02:00
|
|
|
BuildRequires: python
|
2016-09-06 06:58:47 +02:00
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
BuildRequires: wxWidgets-3_0-devel
|
|
|
|
BuildRequires: pkgconfig(IL)
|
2015-07-11 17:04:42 +02:00
|
|
|
BuildRequires: pkgconfig(gloox)
|
2016-09-06 06:58:47 +02:00
|
|
|
BuildRequires: pkgconfig(icu-i18n)
|
2015-07-11 17:04:42 +02:00
|
|
|
BuildRequires: pkgconfig(libcurl)
|
2016-09-06 06:58:47 +02:00
|
|
|
BuildRequires: pkgconfig(libenet)
|
2020-07-26 08:14:35 +02:00
|
|
|
BuildRequires: pkgconfig(libsodium) >= 1.0.13
|
2013-01-14 00:10:06 +01:00
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
2020-07-26 08:14:35 +02:00
|
|
|
BuildRequires: pkgconfig(mozjs-38)
|
2016-09-06 06:58:47 +02:00
|
|
|
BuildRequires: pkgconfig(openal)
|
|
|
|
BuildRequires: pkgconfig(sdl2)
|
2015-07-11 17:04:42 +02:00
|
|
|
BuildRequires: pkgconfig(vorbis)
|
2016-09-06 06:58:47 +02:00
|
|
|
BuildRequires: pkgconfig(zlib)
|
|
|
|
Requires: 0ad-data = %{version}
|
2010-07-22 11:28:09 +02:00
|
|
|
|
|
|
|
%description
|
2016-07-29 11:34:14 +02:00
|
|
|
0 A.D. (pronounced "zero ey-dee") is a real-time strategy (RTS) game
|
|
|
|
of ancient warfare. 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 contains 3D graphics, detailed artwork, sound, and a
|
|
|
|
flexible game engine.
|
2010-07-22 11:28:09 +02:00
|
|
|
|
|
|
|
%prep
|
2010-08-15 18:51:34 +02:00
|
|
|
%setup -q -n %{name}-%{version}-alpha
|
2010-07-22 11:28:09 +02:00
|
|
|
|
|
|
|
%build
|
2020-07-26 08:14:35 +02:00
|
|
|
%ifarch %ix86
|
|
|
|
%define _lto_cflags %{nil}
|
|
|
|
%endif
|
2010-07-22 11:28:09 +02:00
|
|
|
export CFLAGS="%{optflags}"
|
2020-07-26 08:14:35 +02:00
|
|
|
# bundled Collada uses CCFLAGS
|
|
|
|
export CCFLAGS="%{optflags}"
|
2015-07-11 17:04:42 +02:00
|
|
|
export CPPFLAGS="%{optflags} -fpermissive"
|
2016-09-06 06:58:47 +02:00
|
|
|
build/workspaces/update-workspaces.sh \
|
|
|
|
%{?_smp_mflags} \
|
|
|
|
--bindir=%{_bindir} \
|
|
|
|
--datadir=%{_datadir}/%{name} \
|
|
|
|
--libdir=%{_libdir}/%{name} \
|
2020-07-26 08:14:35 +02:00
|
|
|
%if %{with enable_nvtt}
|
|
|
|
--with-system-nvtt \
|
|
|
|
%else
|
|
|
|
--without-nvtt \
|
|
|
|
%endif
|
|
|
|
--with-system-mozjs38 \
|
2016-09-06 06:58:47 +02:00
|
|
|
|
2010-07-22 11:28:09 +02:00
|
|
|
pushd build/workspaces/gcc
|
2013-01-14 00:10:06 +01:00
|
|
|
make verbose=1 %{?_smp_mflags}
|
2010-07-22 11:28:09 +02:00
|
|
|
popd
|
|
|
|
|
|
|
|
%install
|
2016-12-08 21:45:59 +01:00
|
|
|
install -Dm 0755 binaries/system/ActorEditor %{buildroot}%{_bindir}/ActorEditor
|
2013-01-14 00:10:06 +01:00
|
|
|
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
|
2010-07-22 11:28:09 +02:00
|
|
|
|
2013-01-14 00:10:06 +01:00
|
|
|
install -Dm 0644 build/resources/0ad.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
|
2020-07-26 08:14:35 +02:00
|
|
|
install -Dm 0644 build/resources/0ad.appdata.xml %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml
|
2013-01-14 00:10:06 +01:00
|
|
|
install -Dm 0644 build/resources/0ad.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
|
2010-07-24 08:21:54 +02:00
|
|
|
|
2010-08-08 22:33:19 +02:00
|
|
|
%suse_update_desktop_file %{name}
|
|
|
|
|
2013-01-14 00:10:06 +01:00
|
|
|
install -Dm 0755 build/resources/0ad.sh %{buildroot}%{_bindir}/0ad
|
2010-08-08 22:33:19 +02:00
|
|
|
|
2013-01-14 00:10:06 +01:00
|
|
|
mkdir -p %{buildroot}%{_libdir}/%{name}
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/%{name}
|
2010-07-22 11:28:09 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%doc README.txt
|
2016-12-13 12:16:49 +01:00
|
|
|
%license LICENSE.txt license_gpl-2.0.txt license_lgpl-2.1.txt license_mit.txt
|
2010-07-24 08:21:54 +02:00
|
|
|
%{_bindir}/0ad
|
2010-08-15 18:51:34 +02:00
|
|
|
%{_bindir}/pyrogenesis
|
2016-12-08 21:45:59 +01:00
|
|
|
%{_bindir}/ActorEditor
|
2020-07-26 08:14:35 +02:00
|
|
|
%{_libdir}/%{name}/
|
2010-08-08 22:33:19 +02:00
|
|
|
%{_datadir}/pixmaps/%{name}.png
|
2020-07-26 08:14:35 +02:00
|
|
|
%{_datadir}/appdata/%{name}.appdata.xml
|
2010-08-08 22:33:19 +02:00
|
|
|
%{_datadir}/applications/%{name}.desktop
|
2010-08-08 23:45:49 +02:00
|
|
|
%dir %{_libdir}/%{name}
|
2010-07-24 08:21:54 +02:00
|
|
|
%dir %{_datadir}/%{name}
|
2012-03-25 15:24:05 +02:00
|
|
|
|
|
|
|
%changelog
|