# Name is temporary Name: enemy-territory-legacy Version: 2.74 Release: 1%{?dist} # Summary is temporary Summary: Wolfenstein Enemy Territory Legacy License: GPLv3+ URL: http://www.etlegacy.com/ Source0: https://github.com/etlegacy/etlegacy/archive/v%{version}.tar.gz Source1: etlegacy.appdata.xml # http://mirror.etlegacy.com/omnibot/omnibot-linux-latest.tar.gz # Binaries contents built using: # https://github.com/etlegacy/etlegacy-omnibot/tree/master/Omnibot/ET # Data contents from: # https://github.com/etlegacy/etlegacy-omnibot/blob/master/Installer/Files/et/nav # https://github.com/etlegacy/etlegacy-omnibot/blob/master/Installer/Files/et/scripts # https://github.com/etlegacy/etlegacy-omnibot/blob/master/Installer/Files/et/scripts/goals # https://github.com/etlegacy/etlegacy-omnibot/blob/master/Installer/Files/et/scripts/mapgoals # https://github.com/etlegacy/etlegacy-omnibot/tree/master/Installer/Files/et/scripts/weapons # https://github.com/etlegacy/etlegacy-omnibot/blob/master/Installer/Files/et/user # https://github.com/etlegacy/etlegacy-omnibot/tree/master/Installer/Files/global_scripts/goals # https://github.com/etlegacy/etlegacy-omnibot/tree/master/Installer/Files/global_scripts/mapgoals BuildRequires: cmake BuildRequires: desktop-file-utils BuildRequires: freetype-devel BuildRequires: glew-devel BuildRequires: jansson-devel BuildRequires: libappstream-glib BuildRequires: libcurl-devel BuildRequires: libjpeg-turbo-devel BuildRequires: libtheora-devel BuildRequires: libvorbis-devel BuildRequires: libX11-devel BuildRequires: libXext-devel BuildRequires: lua-devel BuildRequires: openal-soft-devel BuildRequires: SDL2-devel # TODO #Requires: /usr/sbin/useradd #Requires(post): systemd #Requires(preun): systemd #Requires(postun): systemd # description is temporary %description Multi player game in which players wage war as Axis or Allies in team based combat. This source release does not contain any game data, the game data is still covered by the original EULA and must be obeyed as usual. ET: Legacy is based on the source code of the Wolfenstein: Enemy Territory which was released under the GPLv3 license. The main goal of this project is to fix bugs, remove old dependencies and make it playable on all major operating systems while still remaining compatible (only for 32-bit) with the ET 2.60b version and as many of its mods as possible. %prep %setup -q -n etlegacy-%{version} find -name "*.dll" -print -delete mkdir build # Correct man6 entries sed -i "s|..SH SYNOPSIS|.SH SYNOPSIS|" docs/linux/man/man6/etl*.6 %build ( cd build # Disable download of omnibot archive %{__cmake} -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ -DBUNDLED_LIBS:BOOL="0" \ -DBUNDLED_CURL:BOOL="0" \ -DBUNDLED_SDL:BOOL="0" \ -DBUNDLED_JPEG:BOOL="0" \ -DBUNDLED_LUA:BOOL="0" \ -DFEATURE_CURL:BOOL="1" \ -DFEATURE_OPENAL:BOOL="1" \ -DFEATURE_FREETYPE:BOOL="1" \ -DFEATURE_TRACKER:BOOL="1" \ -DFEATURE_LUA:BOOL="1" \ -DFEATURE_MULTIVIEW:BOOL="1" \ -DFEATURE_ANTICHEAT:BOOL="1" \ -DFEATURE_GETTEXT:BOOL="1" \ -DFEATURE_JANSSON:BOOL="1" \ -DFEATURE_LIVEAUTH:BOOL="1" \ -DFEATURE_RENDERER2:BOOL="1" \ -DFEATURE_OMNIBOT:BOOL="0" \ -DINSTALL_OMNIBOT:BOOL="0" \ -DINSTALL_DEFAULT_BASEDIR:PATH=%{_libdir}/etlegacy \ %if %{__isa_bits} == 64 -DCROSS_COMPILE32:BOOL="0" \ %endif -DRENDERER_DYNAMIC:BOOL="1" \ .. ) make %{?_smp_mflags} -C build %install make install DESTDIR=%{buildroot} -C build desktop-file-validate %{buildroot}%{_datadir}/applications/etlegacy.desktop mkdir -p %{buildroot}%{_datadir}/appdata install -pm 644 %{SOURCE1} %{buildroot}%{_datadir}/appdata/etlegacy.appdata.xml appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/etlegacy.appdata.xml # TODO %if 0 install -d -m 0755 %{buildroot}%{_sysconfdir}/xdg/etlegacy install -pm 644 misc/etlegacy.conf %{buildroot}%{_sysconfdir}/xdg/etlegacy/ install -d -m 0755 %{buildroot}%{_sharedstatedir}/etlegacy-server # FIXME # Create the webapp directory structure #pushd %%{buildroot}%%{_sharedstatedir}/etlegacy-server #popd # systemd configuration install -d -m 0755 %{buildroot}%{_unitdir} install -pm 644 misc/etlegacy.service %{buildroot}%{_unitdir}/ # TODO # convert misc/etl.ico misc/etl.png # 48x48 # misc/etl-8.png # 256x256 # misc/etl-9.png # convert -fuzz 20%% -transparent white etl.svg -geometry 64x64 etl.png # misc/etl.png %pre # FIXME getent group etlegacy >/dev/null || groupadd -r etlegacy home %{_sharedstatedir}/etlegacy-server etlegacy %preun %systemd_preun etlegacy.service %post %systemd_post etlegacy.service %endif %files %if 0 # FIXME %attr(0755,etlegacy,etlegacy) %dir %{_sharedstatedir}/etlegacy-server %dir %{_sysconfdir}/xdg/etlegacy %config(noreplace) %{_sysconfdir}/xdg/etlegacy/etlegacy.conf %{_unitdir}/etlegacy.service %endif %{_bindir}/etl %{_bindir}/etlded %dir %{_libdir}/etlegacy %license %{_libdir}/etlegacy/COPYING.txt %doc %{_libdir}/etlegacy/INSTALL.txt %dir %{_libdir}/etlegacy/etmain %{_libdir}/etlegacy/etmain/campaigncycle.cfg %{_libdir}/etlegacy/etmain/etl_server.cfg %{_libdir}/etlegacy/etmain/legacy.cfg %{_libdir}/etlegacy/etmain/lmscycle.cfg %{_libdir}/etlegacy/etmain/mapvotecycle.cfg %{_libdir}/etlegacy/etmain/objectivecycle.cfg %dir %{_libdir}/etlegacy/legacy %{_libdir}/etlegacy/legacy/etl_bin_*-dirty.pk3 %{_libdir}/etlegacy/legacy/pak3_*-dirty.pk3 %{_libdir}/etlegacy/legacy/qagame.mp.*.so %{_libdir}/etlegacy/librenderer_opengl1_*.so %{_libdir}/etlegacy/librenderer_opengl2_*.so %{_datadir}/appdata/etlegacy.appdata.xml %{_datadir}/applications/etlegacy.desktop %{_datadir}/icons/hicolor/scalable/apps/etl.svg %{_datadir}/mime/packages/etlegacy.xml %{_mandir}/man6/etl.6.gz %{_mandir}/man6/etlded.6.gz %doc README.md %changelog * Sun Dec 06 2015 gil cattaneo 2.74-1 - initial rpm