From 7b21aad01952559b348999c9ce4c3b7c9babc75d Mon Sep 17 00:00:00 2001 From: lisu Date: Tue, 14 Dec 2010 09:00:40 +0000 Subject: [PATCH] - first release, nfy Changed files: 0ad.spec -> 1.1 --- 0ad.spec | 79 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 0ad.spec diff --git a/0ad.spec b/0ad.spec new file mode 100644 index 0000000..d2955f5 --- /dev/null +++ b/0ad.spec @@ -0,0 +1,79 @@ +# +# TODO: - use arch dependend compilers +# - check licenses +# - probably BRs +# +%define svn_ver r8832 +Summary: Free, Open-Source, cross-platform RTS game of ancient warfare +Name: 0ad +Version: %{svn_ver} +Release: 0.%{svn_ver}.1 +License: GPL v2+ +Group: X11/Applications/Games +Source0: %{name}-%{version}-alpha-unix-build.tar.gz +# Source0-md5: f38d660d039a37edebb2ea2f0eb6aa6d +URL: http://wildfiregames.com/0ad/ +BuildRequires: boost-devel +BuildRequires: sed >= 4.0 +BuildRequires: wxGTK2-unicode-devel +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%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. + +%prep +%setup -q -n %{name} + +# force link with libboost_*.so not libboost_*-mt.so +%{__sed} -i 's,-mt,,g' build/premake/extern_libs.lua + +# use wx-gtk2-unicode-config instead of wx-config +%{__sed} -i 's,wx-config,wx-gtk2-unicode-config,' build/premake/extern_libs.lua + +%build +export CFLAGS="%{rpmcflags}" +export CPPFLAGS="%{rpmcxxflags}" +cd build/workspaces +./update-workspaces.sh \ + --verbose \ + --bindir %{_bindir} \ + --datadir %{_datadir}/%{name} \ + --libdir %{_libdir}/%{name} + +cd gcc +%{__make} \ + CONFIG=Release + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name},%{_desktopdir},%{_pixmapsdir}} + +# binaries +cp -a build/resources/0ad.sh $RPM_BUILD_ROOT%{_bindir}/0ad +cp -a binaries/system/pyrogenesis $RPM_BUILD_ROOT%{_bindir} + +# libraries +cp -a binaries/system/*.so $RPM_BUILD_ROOT%{_libdir}/%{name} + +# menu icon +cp -a build/resources/0ad.desktop $RPM_BUILD_ROOT%{_desktopdir} +cp -a build/resources/0ad.png $RPM_BUILD_ROOT%{_pixmapsdir} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc README.txt +%attr(755,root,root) %{_bindir}/0ad +%attr(755,root,root) %{_bindir}/pyrogenesis +%dir %{_libdir}/0ad +%{_libdir}/0ad/*.so +%{_desktopdir}/0ad.desktop +%{_pixmapsdir}/0ad.png -- 2.44.0