2012-03-25 13:24:05 +00:00
|
|
|
#
|
|
|
|
# spec file for package 0ad
|
|
|
|
#
|
2022-03-13 12:07:39 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2012-03-25 13:24:05 +00: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 06:14:35 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-03-25 13:24:05 +00:00
|
|
|
#
|
|
|
|
|
2021-09-01 06:46:27 +00:00
|
|
|
|
2021-04-26 22:40:05 +00:00
|
|
|
# Enable NVTT only on arch supported by nvidia-texture-tools
|
|
|
|
%ifarch %{ix86} x86_64 ppc
|
2021-04-26 22:44:27 +00:00
|
|
|
%bcond_without nvtt
|
2021-04-26 22:40:05 +00:00
|
|
|
%else
|
2021-04-26 22:44:27 +00:00
|
|
|
%bcond_with nvtt
|
2021-04-26 22:40:05 +00:00
|
|
|
%endif
|
2022-02-24 14:48:49 +00:00
|
|
|
# We can use the system mozjs on Tumbleweed and Leap 15.4.
|
|
|
|
%if 0%{?suse_version} > 1500 || 0%{?sle_version} >= 150400
|
Accepting request 824972 from home:StefanBruens:branches:games
- Fix build on ix86 in combination with LTO, the bundled mbedtls
from premake5 creates duplicate symbols from inline asm.
Add avoid_duplicate_global_symbol_from_asm.patch
- Add 0001-Fix-ODR-violation-for-ShaderModelRendererInternals.patch
- Clean up dozens of unnecessary build dependencies.
- Disable --with-system-mozjs38 option on systems which lack the mozjs38 package
- Include the libmozjs38-ps-release.so binary on systems which lack the mozjs38 package
- Require more build dependencies on systems which lack the mozjs38 package
- Add 0001-fix-fcollada-error.patch to fix a build failure with gcc10
- Disable LTO on i586.
- Add _constraints to avoid build failures due to OOM
- Spec file cleanup:
* Use https for Url and Source tags
* Remove defattr
* Remove __DATE__ mangling, handled by GCC + SOURCE_DATE_EPOCH
* Remove support for Leap 42.x, unresolvable anyway
- Update to 0.0.23b:
See https://play0ad.com/re-release-of-0-a-d-alpha-23-ken-wood/
- Update to 0.0.23:
See https://play0ad.com/new-release-0-a-d-alpha-23-ken-wood/
- Remove fix_abs_of_unsigned_char_on_arm.patch: upstreamed
- Remove system-tinygettext.patch:
Upstream thinks this might lead to problems
See https://trac.wildfiregames.com/ticket/4192
- Add BuildReq libsodium and remove tinygettext to use shipped one
- Keep fix_abs_of_unsigned_char_on_arm.patch intact and disable
the conflicting/irrelevant hunk in the spec file
- Revert the changes to use bundled mozjs38 on Leap 42.3 again
(no changelog entry), it does not build on 42.3. Use fixed
mozjs38 from distribution instead.
- Add fix_abs_of_unsigned_char_on_arm.patch, fixes build on 32/64
bit ARM (and probably PPC)
- Enable nvidia-texture-tools only on supported archs
- Use system mozjs38, bundled one fails to build on TW
- Remove special handling for Leap 42.1
- Pass compiler flags to bundled Collada
- Stop depending on boost-devel (boo#1062766)
- Build with system nvidia-texture-tools (boo#1053393)
- Update to version 0.0.22:
+ Remake of many models, animations and textures, two new music
tracks.
+ Configuration-free Multiplayer Hosting.
+ Capture the Relic Gamemode.
+ Aura and Heal Range Visualization.
+ Twelve new maps, including scripted enemies, rising water and a
tutorial.
+ Espionage Technology, Team Bonuses and Hero Auras.
+ Petra AI Diplomacy and Attack Strategies.
+ Summary Screen Graphs.
+ Cinema Path Editing.
+ Buddy System.
- Drop 0ad-desktop.patch: fixed upstream.
- Install the upstream provided appdata.xml file.
- Update to version 0.0.21
See: https://play0ad.com/new-release-0-a-d-alpha-21-ulysses/
- Add patch 0ad-desktop.patch because of rpmlint-error invalid-
desktopfile invalid key URL
- Drop patch fix-c++14-compat.patch because now in upstream
- Rebase patch system-tinygettext.patch
- Added system-tinygettext.patch
- Removed code for other distributions from spec file, sine we just
build for openSUSE.
- Update License field and trim filler words from description.
- Fixed build with gcc6 (Tumbleweed), added fix-c++14-compat.patch
- Build with wxWidgets 3 and reenable dependency generation
- Update to version 0.0.20
* New maps
* Better graphics and Camera
See https://play0ad.com/new-release-0-a-d-alpha-20-timosthenes/
- use changelog time instead of build time to fix build-compare
- Update to version 0.0.19
- Use xz archive instead of gz
- update to version 0.0.18
- use libminiupnpc-devel instead of builtin libminiupnpc
- update to version 0.0.17
- use builtin libminiupnpc to work inspite of incompatible OS version
- require same versioned data package
- build using external libicu
- Update to version 0.0.16.
- Update to version 0.0.15.
- Update to version 0.0.14.
- Adhere to https://en.opensuse.org/SourceUrls
- Update to version 0.0.13.
- Added BuildRequires libXcursor-devel as they are not
automatically installed for openSUSE > 12.2
- Update to 0.0.12
- Remove obsolete unused Debian build scripts
- Update to 0.0.11
- New version number scheme
- Remove fam/gamin dependency
- Update to r11863
- Update to r11339
- Update to r10803
- Update to r10288
- Update to r9786
- libenet0-devel -> libenet-devel
- Update to r9530
- libenet-devel -> libenet0-devel
- Update to r9049
- wxGTK -> wxWidgets migration
- Update to r8832
- Update to r8413
- Update to r7970
- Compile in Release mode
- Initial package
OBS-URL: https://build.opensuse.org/request/show/824972
OBS-URL: https://build.opensuse.org/package/show/games/0ad?expand=0&rev=103
2020-08-08 09:43:19 +00:00
|
|
|
%bcond_without system_mozjs
|
2020-07-26 06:14:35 +00:00
|
|
|
%else
|
2021-04-08 10:21:47 +00:00
|
|
|
%bcond_with system_mozjs
|
2020-07-26 06:14:35 +00:00
|
|
|
%endif
|
2021-04-26 22:44:27 +00:00
|
|
|
# Use provided library
|
|
|
|
%bcond_without system_nvtt
|
2010-07-22 09:28:09 +00:00
|
|
|
Name: 0ad
|
2021-09-01 06:46:27 +00:00
|
|
|
Version: 0.0.25b
|
2013-04-03 16:00:59 +00:00
|
|
|
Release: 0
|
2016-09-06 04:58:47 +00:00
|
|
|
Summary: A real-time strategy game of ancient warfare
|
2022-03-13 12:07:39 +00:00
|
|
|
License: BSD-3-Clause AND CC-BY-SA-3.0 AND GPL-2.0-or-later AND LGPL-3.0-or-later AND MIT AND ISC AND MPL-2.0
|
2016-09-06 04:58:47 +00:00
|
|
|
Group: Amusements/Games/Strategy/Real Time
|
2020-07-26 06:14:35 +00:00
|
|
|
URL: https://play0ad.com/
|
|
|
|
Source: https://releases.wildfiregames.com/%{name}-%{version}-alpha-unix-build.tar.xz
|
Accepting request 824972 from home:StefanBruens:branches:games
- Fix build on ix86 in combination with LTO, the bundled mbedtls
from premake5 creates duplicate symbols from inline asm.
Add avoid_duplicate_global_symbol_from_asm.patch
- Add 0001-Fix-ODR-violation-for-ShaderModelRendererInternals.patch
- Clean up dozens of unnecessary build dependencies.
- Disable --with-system-mozjs38 option on systems which lack the mozjs38 package
- Include the libmozjs38-ps-release.so binary on systems which lack the mozjs38 package
- Require more build dependencies on systems which lack the mozjs38 package
- Add 0001-fix-fcollada-error.patch to fix a build failure with gcc10
- Disable LTO on i586.
- Add _constraints to avoid build failures due to OOM
- Spec file cleanup:
* Use https for Url and Source tags
* Remove defattr
* Remove __DATE__ mangling, handled by GCC + SOURCE_DATE_EPOCH
* Remove support for Leap 42.x, unresolvable anyway
- Update to 0.0.23b:
See https://play0ad.com/re-release-of-0-a-d-alpha-23-ken-wood/
- Update to 0.0.23:
See https://play0ad.com/new-release-0-a-d-alpha-23-ken-wood/
- Remove fix_abs_of_unsigned_char_on_arm.patch: upstreamed
- Remove system-tinygettext.patch:
Upstream thinks this might lead to problems
See https://trac.wildfiregames.com/ticket/4192
- Add BuildReq libsodium and remove tinygettext to use shipped one
- Keep fix_abs_of_unsigned_char_on_arm.patch intact and disable
the conflicting/irrelevant hunk in the spec file
- Revert the changes to use bundled mozjs38 on Leap 42.3 again
(no changelog entry), it does not build on 42.3. Use fixed
mozjs38 from distribution instead.
- Add fix_abs_of_unsigned_char_on_arm.patch, fixes build on 32/64
bit ARM (and probably PPC)
- Enable nvidia-texture-tools only on supported archs
- Use system mozjs38, bundled one fails to build on TW
- Remove special handling for Leap 42.1
- Pass compiler flags to bundled Collada
- Stop depending on boost-devel (boo#1062766)
- Build with system nvidia-texture-tools (boo#1053393)
- Update to version 0.0.22:
+ Remake of many models, animations and textures, two new music
tracks.
+ Configuration-free Multiplayer Hosting.
+ Capture the Relic Gamemode.
+ Aura and Heal Range Visualization.
+ Twelve new maps, including scripted enemies, rising water and a
tutorial.
+ Espionage Technology, Team Bonuses and Hero Auras.
+ Petra AI Diplomacy and Attack Strategies.
+ Summary Screen Graphs.
+ Cinema Path Editing.
+ Buddy System.
- Drop 0ad-desktop.patch: fixed upstream.
- Install the upstream provided appdata.xml file.
- Update to version 0.0.21
See: https://play0ad.com/new-release-0-a-d-alpha-21-ulysses/
- Add patch 0ad-desktop.patch because of rpmlint-error invalid-
desktopfile invalid key URL
- Drop patch fix-c++14-compat.patch because now in upstream
- Rebase patch system-tinygettext.patch
- Added system-tinygettext.patch
- Removed code for other distributions from spec file, sine we just
build for openSUSE.
- Update License field and trim filler words from description.
- Fixed build with gcc6 (Tumbleweed), added fix-c++14-compat.patch
- Build with wxWidgets 3 and reenable dependency generation
- Update to version 0.0.20
* New maps
* Better graphics and Camera
See https://play0ad.com/new-release-0-a-d-alpha-20-timosthenes/
- use changelog time instead of build time to fix build-compare
- Update to version 0.0.19
- Use xz archive instead of gz
- update to version 0.0.18
- use libminiupnpc-devel instead of builtin libminiupnpc
- update to version 0.0.17
- use builtin libminiupnpc to work inspite of incompatible OS version
- require same versioned data package
- build using external libicu
- Update to version 0.0.16.
- Update to version 0.0.15.
- Update to version 0.0.14.
- Adhere to https://en.opensuse.org/SourceUrls
- Update to version 0.0.13.
- Added BuildRequires libXcursor-devel as they are not
automatically installed for openSUSE > 12.2
- Update to 0.0.12
- Remove obsolete unused Debian build scripts
- Update to 0.0.11
- New version number scheme
- Remove fam/gamin dependency
- Update to r11863
- Update to r11339
- Update to r10803
- Update to r10288
- Update to r9786
- libenet0-devel -> libenet-devel
- Update to r9530
- libenet-devel -> libenet0-devel
- Update to r9049
- wxGTK -> wxWidgets migration
- Update to r8832
- Update to r8413
- Update to r7970
- Compile in Release mode
- Initial package
OBS-URL: https://build.opensuse.org/request/show/824972
OBS-URL: https://build.opensuse.org/package/show/games/0ad?expand=0&rev=103
2020-08-08 09:43:19 +00:00
|
|
|
# PATCH-FIX-UPSTREAM
|
|
|
|
Patch0: avoid_duplicate_global_symbol_from_asm.patch
|
2022-01-09 18:09:21 +00:00
|
|
|
# PATCH-FIX-OPENSUSE -- Disable the mozjs version check
|
|
|
|
Patch1: no-version-check.patch
|
|
|
|
# PATCH-FIX-OPENSUSE -- Use the newer variant of this function (related to mozjs78 upgrade)
|
|
|
|
Patch2: PrepareZoneForGC.patch
|
2022-02-24 14:48:49 +00:00
|
|
|
# PATCH-FIX-UPSTREAM -- Don't define M_PIf if glibc already provides it
|
|
|
|
Patch3: glibc-2.35.patch
|
2012-03-25 13:24:05 +00:00
|
|
|
BuildRequires: cmake
|
2010-07-22 09:28:09 +00:00
|
|
|
BuildRequires: gcc-c++
|
2013-01-13 23:10:06 +00:00
|
|
|
BuildRequires: libXcursor-devel
|
2020-07-26 06:14:35 +00:00
|
|
|
BuildRequires: libboost_filesystem-devel
|
|
|
|
BuildRequires: libboost_system-devel
|
2010-07-22 09:28:09 +00:00
|
|
|
BuildRequires: libjpeg-devel
|
2015-04-03 11:54:02 +00:00
|
|
|
BuildRequires: libminiupnpc-devel
|
2010-07-22 09:28:09 +00:00
|
|
|
BuildRequires: libpng-devel
|
2016-09-06 04:58:47 +00:00
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: update-desktop-files
|
2021-04-08 10:21:47 +00:00
|
|
|
BuildRequires: wxWidgets-3_0-nostl-devel
|
2016-09-06 04:58:47 +00:00
|
|
|
BuildRequires: pkgconfig(IL)
|
2021-04-08 10:21:47 +00:00
|
|
|
BuildRequires: pkgconfig(fmt)
|
2015-07-11 15:04:42 +00:00
|
|
|
BuildRequires: pkgconfig(gloox)
|
2021-04-08 10:21:47 +00:00
|
|
|
BuildRequires: pkgconfig(gnutls)
|
2016-09-06 04:58:47 +00:00
|
|
|
BuildRequires: pkgconfig(icu-i18n)
|
2015-07-11 15:04:42 +00:00
|
|
|
BuildRequires: pkgconfig(libcurl)
|
2016-09-06 04:58:47 +00:00
|
|
|
BuildRequires: pkgconfig(libenet)
|
2021-04-08 10:21:47 +00:00
|
|
|
BuildRequires: pkgconfig(libidn)
|
2020-07-26 06:14:35 +00:00
|
|
|
BuildRequires: pkgconfig(libsodium) >= 1.0.13
|
2013-01-13 23:10:06 +00:00
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
2016-09-06 04:58:47 +00:00
|
|
|
BuildRequires: pkgconfig(openal)
|
|
|
|
BuildRequires: pkgconfig(sdl2)
|
2015-07-11 15:04:42 +00:00
|
|
|
BuildRequires: pkgconfig(vorbis)
|
2016-09-06 04:58:47 +00:00
|
|
|
BuildRequires: pkgconfig(zlib)
|
|
|
|
Requires: 0ad-data = %{version}
|
2021-04-27 12:34:30 +00:00
|
|
|
%if %{with nvtt} && %{with system_nvtt}
|
2021-04-08 10:21:47 +00:00
|
|
|
BuildRequires: nvidia-texture-tools >= 2.1
|
|
|
|
%endif
|
|
|
|
%if %{with system_mozjs}
|
|
|
|
#FIXME: Depends on source/scriptinterface/ScriptTypes.h
|
2022-01-09 18:09:21 +00:00
|
|
|
# This is "fixed" by disabling the version check.
|
|
|
|
BuildRequires: pkgconfig(mozjs-78) >= 78.7
|
2021-04-08 10:21:47 +00:00
|
|
|
%else
|
|
|
|
BuildRequires: cargo
|
|
|
|
BuildRequires: rust
|
|
|
|
%endif
|
2010-07-22 09:28:09 +00:00
|
|
|
|
|
|
|
%description
|
2016-07-29 09:34:14 +00: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 09:28:09 +00:00
|
|
|
|
|
|
|
%prep
|
2010-08-15 16:51:34 +00:00
|
|
|
%setup -q -n %{name}-%{version}-alpha
|
Accepting request 824972 from home:StefanBruens:branches:games
- Fix build on ix86 in combination with LTO, the bundled mbedtls
from premake5 creates duplicate symbols from inline asm.
Add avoid_duplicate_global_symbol_from_asm.patch
- Add 0001-Fix-ODR-violation-for-ShaderModelRendererInternals.patch
- Clean up dozens of unnecessary build dependencies.
- Disable --with-system-mozjs38 option on systems which lack the mozjs38 package
- Include the libmozjs38-ps-release.so binary on systems which lack the mozjs38 package
- Require more build dependencies on systems which lack the mozjs38 package
- Add 0001-fix-fcollada-error.patch to fix a build failure with gcc10
- Disable LTO on i586.
- Add _constraints to avoid build failures due to OOM
- Spec file cleanup:
* Use https for Url and Source tags
* Remove defattr
* Remove __DATE__ mangling, handled by GCC + SOURCE_DATE_EPOCH
* Remove support for Leap 42.x, unresolvable anyway
- Update to 0.0.23b:
See https://play0ad.com/re-release-of-0-a-d-alpha-23-ken-wood/
- Update to 0.0.23:
See https://play0ad.com/new-release-0-a-d-alpha-23-ken-wood/
- Remove fix_abs_of_unsigned_char_on_arm.patch: upstreamed
- Remove system-tinygettext.patch:
Upstream thinks this might lead to problems
See https://trac.wildfiregames.com/ticket/4192
- Add BuildReq libsodium and remove tinygettext to use shipped one
- Keep fix_abs_of_unsigned_char_on_arm.patch intact and disable
the conflicting/irrelevant hunk in the spec file
- Revert the changes to use bundled mozjs38 on Leap 42.3 again
(no changelog entry), it does not build on 42.3. Use fixed
mozjs38 from distribution instead.
- Add fix_abs_of_unsigned_char_on_arm.patch, fixes build on 32/64
bit ARM (and probably PPC)
- Enable nvidia-texture-tools only on supported archs
- Use system mozjs38, bundled one fails to build on TW
- Remove special handling for Leap 42.1
- Pass compiler flags to bundled Collada
- Stop depending on boost-devel (boo#1062766)
- Build with system nvidia-texture-tools (boo#1053393)
- Update to version 0.0.22:
+ Remake of many models, animations and textures, two new music
tracks.
+ Configuration-free Multiplayer Hosting.
+ Capture the Relic Gamemode.
+ Aura and Heal Range Visualization.
+ Twelve new maps, including scripted enemies, rising water and a
tutorial.
+ Espionage Technology, Team Bonuses and Hero Auras.
+ Petra AI Diplomacy and Attack Strategies.
+ Summary Screen Graphs.
+ Cinema Path Editing.
+ Buddy System.
- Drop 0ad-desktop.patch: fixed upstream.
- Install the upstream provided appdata.xml file.
- Update to version 0.0.21
See: https://play0ad.com/new-release-0-a-d-alpha-21-ulysses/
- Add patch 0ad-desktop.patch because of rpmlint-error invalid-
desktopfile invalid key URL
- Drop patch fix-c++14-compat.patch because now in upstream
- Rebase patch system-tinygettext.patch
- Added system-tinygettext.patch
- Removed code for other distributions from spec file, sine we just
build for openSUSE.
- Update License field and trim filler words from description.
- Fixed build with gcc6 (Tumbleweed), added fix-c++14-compat.patch
- Build with wxWidgets 3 and reenable dependency generation
- Update to version 0.0.20
* New maps
* Better graphics and Camera
See https://play0ad.com/new-release-0-a-d-alpha-20-timosthenes/
- use changelog time instead of build time to fix build-compare
- Update to version 0.0.19
- Use xz archive instead of gz
- update to version 0.0.18
- use libminiupnpc-devel instead of builtin libminiupnpc
- update to version 0.0.17
- use builtin libminiupnpc to work inspite of incompatible OS version
- require same versioned data package
- build using external libicu
- Update to version 0.0.16.
- Update to version 0.0.15.
- Update to version 0.0.14.
- Adhere to https://en.opensuse.org/SourceUrls
- Update to version 0.0.13.
- Added BuildRequires libXcursor-devel as they are not
automatically installed for openSUSE > 12.2
- Update to 0.0.12
- Remove obsolete unused Debian build scripts
- Update to 0.0.11
- New version number scheme
- Remove fam/gamin dependency
- Update to r11863
- Update to r11339
- Update to r10803
- Update to r10288
- Update to r9786
- libenet0-devel -> libenet-devel
- Update to r9530
- libenet-devel -> libenet0-devel
- Update to r9049
- wxGTK -> wxWidgets migration
- Update to r8832
- Update to r8413
- Update to r7970
- Compile in Release mode
- Initial package
OBS-URL: https://build.opensuse.org/request/show/824972
OBS-URL: https://build.opensuse.org/package/show/games/0ad?expand=0&rev=103
2020-08-08 09:43:19 +00:00
|
|
|
%patch0 -p1
|
2022-02-24 14:48:49 +00:00
|
|
|
%patch3 -p1
|
2022-01-09 18:09:21 +00:00
|
|
|
%if %{with system_mozjs}
|
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
|
|
|
%endif
|
2010-07-22 09:28:09 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
export CFLAGS="%{optflags}"
|
2020-07-26 06:14:35 +00:00
|
|
|
# bundled Collada uses CCFLAGS
|
|
|
|
export CCFLAGS="%{optflags}"
|
2015-07-11 15:04:42 +00:00
|
|
|
export CPPFLAGS="%{optflags} -fpermissive"
|
2016-09-06 04:58:47 +00:00
|
|
|
build/workspaces/update-workspaces.sh \
|
|
|
|
%{?_smp_mflags} \
|
|
|
|
--bindir=%{_bindir} \
|
|
|
|
--datadir=%{_datadir}/%{name} \
|
|
|
|
--libdir=%{_libdir}/%{name} \
|
2022-01-13 19:24:12 +00:00
|
|
|
--without-tests \
|
2021-04-26 22:44:27 +00:00
|
|
|
%if %{with nvtt}
|
2021-04-08 10:21:47 +00:00
|
|
|
%if %{with system_nvtt}
|
2020-07-26 06:14:35 +00:00
|
|
|
--with-system-nvtt \
|
2021-04-08 10:21:47 +00:00
|
|
|
%endif
|
2021-04-26 22:44:27 +00:00
|
|
|
%else
|
2020-08-03 12:36:21 +00:00
|
|
|
--without-nvtt \
|
2020-07-26 06:14:35 +00:00
|
|
|
%endif
|
Accepting request 824972 from home:StefanBruens:branches:games
- Fix build on ix86 in combination with LTO, the bundled mbedtls
from premake5 creates duplicate symbols from inline asm.
Add avoid_duplicate_global_symbol_from_asm.patch
- Add 0001-Fix-ODR-violation-for-ShaderModelRendererInternals.patch
- Clean up dozens of unnecessary build dependencies.
- Disable --with-system-mozjs38 option on systems which lack the mozjs38 package
- Include the libmozjs38-ps-release.so binary on systems which lack the mozjs38 package
- Require more build dependencies on systems which lack the mozjs38 package
- Add 0001-fix-fcollada-error.patch to fix a build failure with gcc10
- Disable LTO on i586.
- Add _constraints to avoid build failures due to OOM
- Spec file cleanup:
* Use https for Url and Source tags
* Remove defattr
* Remove __DATE__ mangling, handled by GCC + SOURCE_DATE_EPOCH
* Remove support for Leap 42.x, unresolvable anyway
- Update to 0.0.23b:
See https://play0ad.com/re-release-of-0-a-d-alpha-23-ken-wood/
- Update to 0.0.23:
See https://play0ad.com/new-release-0-a-d-alpha-23-ken-wood/
- Remove fix_abs_of_unsigned_char_on_arm.patch: upstreamed
- Remove system-tinygettext.patch:
Upstream thinks this might lead to problems
See https://trac.wildfiregames.com/ticket/4192
- Add BuildReq libsodium and remove tinygettext to use shipped one
- Keep fix_abs_of_unsigned_char_on_arm.patch intact and disable
the conflicting/irrelevant hunk in the spec file
- Revert the changes to use bundled mozjs38 on Leap 42.3 again
(no changelog entry), it does not build on 42.3. Use fixed
mozjs38 from distribution instead.
- Add fix_abs_of_unsigned_char_on_arm.patch, fixes build on 32/64
bit ARM (and probably PPC)
- Enable nvidia-texture-tools only on supported archs
- Use system mozjs38, bundled one fails to build on TW
- Remove special handling for Leap 42.1
- Pass compiler flags to bundled Collada
- Stop depending on boost-devel (boo#1062766)
- Build with system nvidia-texture-tools (boo#1053393)
- Update to version 0.0.22:
+ Remake of many models, animations and textures, two new music
tracks.
+ Configuration-free Multiplayer Hosting.
+ Capture the Relic Gamemode.
+ Aura and Heal Range Visualization.
+ Twelve new maps, including scripted enemies, rising water and a
tutorial.
+ Espionage Technology, Team Bonuses and Hero Auras.
+ Petra AI Diplomacy and Attack Strategies.
+ Summary Screen Graphs.
+ Cinema Path Editing.
+ Buddy System.
- Drop 0ad-desktop.patch: fixed upstream.
- Install the upstream provided appdata.xml file.
- Update to version 0.0.21
See: https://play0ad.com/new-release-0-a-d-alpha-21-ulysses/
- Add patch 0ad-desktop.patch because of rpmlint-error invalid-
desktopfile invalid key URL
- Drop patch fix-c++14-compat.patch because now in upstream
- Rebase patch system-tinygettext.patch
- Added system-tinygettext.patch
- Removed code for other distributions from spec file, sine we just
build for openSUSE.
- Update License field and trim filler words from description.
- Fixed build with gcc6 (Tumbleweed), added fix-c++14-compat.patch
- Build with wxWidgets 3 and reenable dependency generation
- Update to version 0.0.20
* New maps
* Better graphics and Camera
See https://play0ad.com/new-release-0-a-d-alpha-20-timosthenes/
- use changelog time instead of build time to fix build-compare
- Update to version 0.0.19
- Use xz archive instead of gz
- update to version 0.0.18
- use libminiupnpc-devel instead of builtin libminiupnpc
- update to version 0.0.17
- use builtin libminiupnpc to work inspite of incompatible OS version
- require same versioned data package
- build using external libicu
- Update to version 0.0.16.
- Update to version 0.0.15.
- Update to version 0.0.14.
- Adhere to https://en.opensuse.org/SourceUrls
- Update to version 0.0.13.
- Added BuildRequires libXcursor-devel as they are not
automatically installed for openSUSE > 12.2
- Update to 0.0.12
- Remove obsolete unused Debian build scripts
- Update to 0.0.11
- New version number scheme
- Remove fam/gamin dependency
- Update to r11863
- Update to r11339
- Update to r10803
- Update to r10288
- Update to r9786
- libenet0-devel -> libenet-devel
- Update to r9530
- libenet-devel -> libenet0-devel
- Update to r9049
- wxGTK -> wxWidgets migration
- Update to r8832
- Update to r8413
- Update to r7970
- Compile in Release mode
- Initial package
OBS-URL: https://build.opensuse.org/request/show/824972
OBS-URL: https://build.opensuse.org/package/show/games/0ad?expand=0&rev=103
2020-08-08 09:43:19 +00:00
|
|
|
%if %{with system_mozjs}
|
2021-04-08 10:21:47 +00:00
|
|
|
--with-system-mozjs
|
|
|
|
%else
|
|
|
|
export CARGO_PROFILE_RELEASE_LTO=true
|
2020-08-03 12:36:21 +00:00
|
|
|
%endif
|
2016-09-06 04:58:47 +00:00
|
|
|
|
2010-07-22 09:28:09 +00:00
|
|
|
pushd build/workspaces/gcc
|
2021-04-08 10:21:47 +00:00
|
|
|
%make_build verbose=1
|
2010-07-22 09:28:09 +00:00
|
|
|
popd
|
|
|
|
|
|
|
|
%install
|
2021-04-10 18:33:39 +00:00
|
|
|
mkdir -p %{buildroot}%{_libdir}/%{name}
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/%{name}
|
|
|
|
# Install binaries and wrapper
|
2016-12-08 20:45:59 +00:00
|
|
|
install -Dm 0755 binaries/system/ActorEditor %{buildroot}%{_bindir}/ActorEditor
|
2013-01-13 23:10:06 +00:00
|
|
|
install -Dm 0755 binaries/system/pyrogenesis %{buildroot}%{_bindir}/pyrogenesis
|
2021-04-10 18:33:39 +00:00
|
|
|
install -Dm 0755 build/resources/0ad.sh %{buildroot}%{_bindir}/0ad
|
|
|
|
# Install game libraries
|
|
|
|
install -m 0644 binaries/system/libCollada.so %{buildroot}%{_libdir}/%{name}/libCollada.so
|
|
|
|
install -m 0644 binaries/system/libAtlasUI.so %{buildroot}%{_libdir}/%{name}/libAtlasUI.so
|
|
|
|
# If without system mozjs we need to install the bundled one
|
Accepting request 824972 from home:StefanBruens:branches:games
- Fix build on ix86 in combination with LTO, the bundled mbedtls
from premake5 creates duplicate symbols from inline asm.
Add avoid_duplicate_global_symbol_from_asm.patch
- Add 0001-Fix-ODR-violation-for-ShaderModelRendererInternals.patch
- Clean up dozens of unnecessary build dependencies.
- Disable --with-system-mozjs38 option on systems which lack the mozjs38 package
- Include the libmozjs38-ps-release.so binary on systems which lack the mozjs38 package
- Require more build dependencies on systems which lack the mozjs38 package
- Add 0001-fix-fcollada-error.patch to fix a build failure with gcc10
- Disable LTO on i586.
- Add _constraints to avoid build failures due to OOM
- Spec file cleanup:
* Use https for Url and Source tags
* Remove defattr
* Remove __DATE__ mangling, handled by GCC + SOURCE_DATE_EPOCH
* Remove support for Leap 42.x, unresolvable anyway
- Update to 0.0.23b:
See https://play0ad.com/re-release-of-0-a-d-alpha-23-ken-wood/
- Update to 0.0.23:
See https://play0ad.com/new-release-0-a-d-alpha-23-ken-wood/
- Remove fix_abs_of_unsigned_char_on_arm.patch: upstreamed
- Remove system-tinygettext.patch:
Upstream thinks this might lead to problems
See https://trac.wildfiregames.com/ticket/4192
- Add BuildReq libsodium and remove tinygettext to use shipped one
- Keep fix_abs_of_unsigned_char_on_arm.patch intact and disable
the conflicting/irrelevant hunk in the spec file
- Revert the changes to use bundled mozjs38 on Leap 42.3 again
(no changelog entry), it does not build on 42.3. Use fixed
mozjs38 from distribution instead.
- Add fix_abs_of_unsigned_char_on_arm.patch, fixes build on 32/64
bit ARM (and probably PPC)
- Enable nvidia-texture-tools only on supported archs
- Use system mozjs38, bundled one fails to build on TW
- Remove special handling for Leap 42.1
- Pass compiler flags to bundled Collada
- Stop depending on boost-devel (boo#1062766)
- Build with system nvidia-texture-tools (boo#1053393)
- Update to version 0.0.22:
+ Remake of many models, animations and textures, two new music
tracks.
+ Configuration-free Multiplayer Hosting.
+ Capture the Relic Gamemode.
+ Aura and Heal Range Visualization.
+ Twelve new maps, including scripted enemies, rising water and a
tutorial.
+ Espionage Technology, Team Bonuses and Hero Auras.
+ Petra AI Diplomacy and Attack Strategies.
+ Summary Screen Graphs.
+ Cinema Path Editing.
+ Buddy System.
- Drop 0ad-desktop.patch: fixed upstream.
- Install the upstream provided appdata.xml file.
- Update to version 0.0.21
See: https://play0ad.com/new-release-0-a-d-alpha-21-ulysses/
- Add patch 0ad-desktop.patch because of rpmlint-error invalid-
desktopfile invalid key URL
- Drop patch fix-c++14-compat.patch because now in upstream
- Rebase patch system-tinygettext.patch
- Added system-tinygettext.patch
- Removed code for other distributions from spec file, sine we just
build for openSUSE.
- Update License field and trim filler words from description.
- Fixed build with gcc6 (Tumbleweed), added fix-c++14-compat.patch
- Build with wxWidgets 3 and reenable dependency generation
- Update to version 0.0.20
* New maps
* Better graphics and Camera
See https://play0ad.com/new-release-0-a-d-alpha-20-timosthenes/
- use changelog time instead of build time to fix build-compare
- Update to version 0.0.19
- Use xz archive instead of gz
- update to version 0.0.18
- use libminiupnpc-devel instead of builtin libminiupnpc
- update to version 0.0.17
- use builtin libminiupnpc to work inspite of incompatible OS version
- require same versioned data package
- build using external libicu
- Update to version 0.0.16.
- Update to version 0.0.15.
- Update to version 0.0.14.
- Adhere to https://en.opensuse.org/SourceUrls
- Update to version 0.0.13.
- Added BuildRequires libXcursor-devel as they are not
automatically installed for openSUSE > 12.2
- Update to 0.0.12
- Remove obsolete unused Debian build scripts
- Update to 0.0.11
- New version number scheme
- Remove fam/gamin dependency
- Update to r11863
- Update to r11339
- Update to r10803
- Update to r10288
- Update to r9786
- libenet0-devel -> libenet-devel
- Update to r9530
- libenet-devel -> libenet0-devel
- Update to r9049
- wxGTK -> wxWidgets migration
- Update to r8832
- Update to r8413
- Update to r7970
- Compile in Release mode
- Initial package
OBS-URL: https://build.opensuse.org/request/show/824972
OBS-URL: https://build.opensuse.org/package/show/games/0ad?expand=0&rev=103
2020-08-08 09:43:19 +00:00
|
|
|
%if %{without system_mozjs}
|
2021-04-10 18:33:39 +00:00
|
|
|
install -m 0644 binaries/system/libmozjs*-ps-release.so %{buildroot}%{_libdir}/%{name}/
|
2020-08-03 12:36:21 +00:00
|
|
|
%endif
|
2021-04-10 18:33:39 +00:00
|
|
|
# Install appdata
|
2013-01-13 23:10:06 +00:00
|
|
|
install -Dm 0644 build/resources/0ad.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
|
2020-07-26 06:14:35 +00:00
|
|
|
install -Dm 0644 build/resources/0ad.appdata.xml %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml
|
2013-01-13 23:10:06 +00:00
|
|
|
install -Dm 0644 build/resources/0ad.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
|
2010-07-24 06:21:54 +00:00
|
|
|
|
2010-08-08 20:33:19 +00:00
|
|
|
%suse_update_desktop_file %{name}
|
|
|
|
|
2010-07-22 09:28:09 +00:00
|
|
|
%files
|
|
|
|
%doc README.txt
|
2016-12-13 11:16:49 +00:00
|
|
|
%license LICENSE.txt license_gpl-2.0.txt license_lgpl-2.1.txt license_mit.txt
|
2010-07-24 06:21:54 +00:00
|
|
|
%{_bindir}/0ad
|
2010-08-15 16:51:34 +00:00
|
|
|
%{_bindir}/pyrogenesis
|
2016-12-08 20:45:59 +00:00
|
|
|
%{_bindir}/ActorEditor
|
2020-07-26 06:14:35 +00:00
|
|
|
%{_libdir}/%{name}/
|
2010-08-08 20:33:19 +00:00
|
|
|
%{_datadir}/pixmaps/%{name}.png
|
2020-07-26 06:14:35 +00:00
|
|
|
%{_datadir}/appdata/%{name}.appdata.xml
|
2010-08-08 20:33:19 +00:00
|
|
|
%{_datadir}/applications/%{name}.desktop
|
2010-07-24 06:21:54 +00:00
|
|
|
%dir %{_datadir}/%{name}
|
2012-03-25 13:24:05 +00:00
|
|
|
|
|
|
|
%changelog
|