2012-03-25 15:24:05 +02:00
|
|
|
#
|
|
|
|
# spec file for package 0ad
|
|
|
|
#
|
|
|
|
# Copyright (c) 2012 SUSE LINUX Products 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/
|
|
|
|
#
|
|
|
|
|
2010-07-22 11:28:09 +02:00
|
|
|
|
|
|
|
Name: 0ad
|
2012-12-16 23:06:17 +01:00
|
|
|
Version: 0.0.12
|
2010-07-22 11:28:09 +02:00
|
|
|
Release: 1.0
|
2012-12-16 23:06:17 +01:00
|
|
|
Url: http://play0ad.com/
|
2010-08-15 18:51:34 +02:00
|
|
|
Source: 0ad-%{version}-alpha-unix-build.tar.gz
|
2010-07-22 11:28:09 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: DevIL-devel
|
2012-03-25 15:24:05 +02:00
|
|
|
BuildRequires: boost-devel
|
|
|
|
BuildRequires: cmake
|
2010-07-22 11:28:09 +02:00
|
|
|
BuildRequires: gcc-c++
|
2011-03-11 21:32:59 +01:00
|
|
|
BuildRequires: libcurl-devel
|
2010-07-22 11:28:09 +02:00
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
BuildRequires: libpng-devel
|
|
|
|
BuildRequires: libvorbis-devel
|
|
|
|
BuildRequires: libxml2-devel
|
|
|
|
BuildRequires: nasm
|
2010-07-24 08:21:54 +02:00
|
|
|
BuildRequires: python
|
2010-07-22 11:28:09 +02:00
|
|
|
BuildRequires: subversion
|
|
|
|
BuildRequires: zip
|
|
|
|
|
|
|
|
%if 0%{?suse_version}
|
2011-07-10 14:33:59 +02:00
|
|
|
BuildRequires: libenet-devel
|
2010-07-22 11:28:09 +02:00
|
|
|
BuildRequires: openal-soft-devel
|
|
|
|
BuildRequires: pkg-config
|
2012-03-25 15:24:05 +02:00
|
|
|
BuildRequires: update-desktop-files
|
2011-02-21 01:07:18 +01:00
|
|
|
|
|
|
|
%if 0%{?suse_version} >= 1140
|
2011-02-22 10:26:07 +01:00
|
|
|
BuildRequires: wxWidgets-wxcontainer-devel
|
2011-02-21 01:07:18 +01:00
|
|
|
%define _use_internal_dependency_generator 0
|
|
|
|
%define __find_requires %wx_requires
|
|
|
|
%else
|
2010-07-22 11:28:09 +02:00
|
|
|
BuildRequires: wxGTK-devel
|
2011-02-21 01:07:18 +01:00
|
|
|
%endif
|
2010-07-22 11:28:09 +02:00
|
|
|
|
|
|
|
%if 0%{?suse_version} == 1110
|
|
|
|
BuildRequires: SDL-devel
|
|
|
|
%else
|
|
|
|
BuildRequires: libSDL-devel
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if 0%{?fedora_version}
|
2012-03-25 15:24:05 +02:00
|
|
|
BuildRequires: SDL-devel
|
2010-08-08 23:45:49 +02:00
|
|
|
BuildRequires: desktop-file-utils
|
2011-07-10 14:33:59 +02:00
|
|
|
BuildRequires: libenet-devel
|
2010-07-22 11:28:09 +02:00
|
|
|
BuildRequires: openal-soft-devel
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: wxGTK-devel
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if 0%{?mandriva_version}
|
2011-07-10 14:33:59 +02:00
|
|
|
BuildRequires: libenet-devel
|
2010-07-22 11:28:09 +02:00
|
|
|
BuildRequires: libwxgtku2.8-devel
|
|
|
|
|
|
|
|
%if 0%{?mandriva_version} < 201000
|
|
|
|
BuildRequires: libopenal-devel
|
|
|
|
%else:
|
|
|
|
BuildRequires: openal-soft-devel
|
|
|
|
%endif
|
|
|
|
|
2010-07-23 01:19:19 +02:00
|
|
|
%if 0%{?mandriva_version} == 201000
|
|
|
|
BuildRequires: libopenal1-soft
|
|
|
|
%endif
|
|
|
|
|
2010-07-22 11:28:09 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
Requires: 0ad-data
|
|
|
|
Summary: Free, Open-Source, Cross-Platform RTS Game of Ancient Warfare
|
2012-03-25 15:24:05 +02:00
|
|
|
License: GPL-2.0+
|
|
|
|
Group: Amusements/Games/Strategy/Real Time
|
2010-07-22 11:28:09 +02:00
|
|
|
|
|
|
|
%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
|
2010-08-15 18:51:34 +02:00
|
|
|
%setup -q -n %{name}-%{version}-alpha
|
2010-07-22 11:28:09 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
export CPPFLAGS="%{optflags}"
|
2012-12-16 23:06:17 +01:00
|
|
|
build/workspaces/update-workspaces.sh --bindir=%{_bindir} --datadir=%{_datadir}/%{name} --libdir=%{_libdir}/%{name} --with-system-enet
|
2010-07-22 11:28:09 +02:00
|
|
|
pushd build/workspaces/gcc
|
2011-12-23 21:39:58 +01:00
|
|
|
%__make verbose=1 %{?_smp_mflags}
|
2010-07-22 11:28:09 +02:00
|
|
|
popd
|
|
|
|
|
|
|
|
%check
|
|
|
|
#__make check
|
2010-12-11 22:15:15 +01:00
|
|
|
|
|
|
|
# Disabled for now because of weird failures on OpenSUSE 11.3 i586
|
|
|
|
# (looks like SpiderMonkey doesn't like the OBS environment or something?)
|
|
|
|
#LD_LIBRARY_PATH=binaries/system binaries/system/test -libdir binaries/system
|
2010-07-22 11:28:09 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
#makeinstall
|
2010-08-15 18:51:34 +02: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
|
2011-09-17 14:09:28 +02:00
|
|
|
%__install -Dm 0755 binaries/system/libmozjs185-ps-release.so.1.0 %{buildroot}%{_libdir}/%{name}/libmozjs185-ps-release.so.1.0
|
2010-10-18 18:55:09 +02:00
|
|
|
%__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
|
2010-07-22 11:28:09 +02:00
|
|
|
|
2010-08-15 18:51:34 +02:00
|
|
|
#__install -Dm 0755 binaries/system/ActorEditor %{buildroot}/%{_libexecdir}/%{name}/bin/ActorEditor
|
|
|
|
#__install -Dm 0755 binaries/system/ColourTester %{buildroot}/%{_libexecdir}/%{name}/bin/ColourTester
|
2010-07-22 11:28:09 +02:00
|
|
|
|
2010-08-15 18:51:34 +02:00
|
|
|
%__install -Dm 0644 build/resources/0ad.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
|
|
|
|
%__install -Dm 0644 build/resources/0ad.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
|
2010-07-24 08:21:54 +02:00
|
|
|
|
2010-08-08 23:45:49 +02:00
|
|
|
%if 0%{?suse_version}
|
2010-08-08 22:33:19 +02:00
|
|
|
%suse_update_desktop_file %{name}
|
2010-08-08 23:45:49 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if 0%{?fedora_version}
|
|
|
|
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
|
|
|
|
%endif
|
2010-08-08 22:33:19 +02:00
|
|
|
|
2010-08-15 18:51:34 +02:00
|
|
|
%__install -Dm 0755 build/resources/0ad.sh %{buildroot}%{_bindir}/0ad
|
2010-08-08 22:33:19 +02:00
|
|
|
|
|
|
|
%__mkdir_p %{buildroot}%{_libdir}/%{name}
|
2010-07-22 11:28:09 +02:00
|
|
|
%__mkdir_p %{buildroot}%{_datadir}/%{name}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc README.txt
|
2010-07-24 08:21:54 +02:00
|
|
|
%{_bindir}/0ad
|
2010-08-15 18:51:34 +02:00
|
|
|
%{_bindir}/pyrogenesis
|
|
|
|
%{_libdir}/%{name}/libCollada.so
|
|
|
|
%{_libdir}/%{name}/libAtlasUI.so
|
2011-09-17 14:31:13 +02:00
|
|
|
%{_libdir}/%{name}/libmozjs185-ps-release.so.1.0
|
2010-10-18 18:55:09 +02:00
|
|
|
%{_libdir}/%{name}/libnvcore.so
|
|
|
|
%{_libdir}/%{name}/libnvimage.so
|
|
|
|
%{_libdir}/%{name}/libnvmath.so
|
|
|
|
%{_libdir}/%{name}/libnvtt.so
|
2010-08-08 22:33:19 +02:00
|
|
|
%{_datadir}/pixmaps/%{name}.png
|
|
|
|
%{_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
|