# If we have a prerelease version we can define it here Name: etlegacy-sucs Version: 2.71rc2 Release: 2%{?dist} Summary: Free software World War II themed first person shooting game. Group: Amusements/Games License: GPLv3 URL: http://www.etlegacy.com/ Source0: https://github.com/etlegacy/etlegacy/archive/v%{version}.tar.gz #Patch0: http://sucs.org/~grepwood/etlegacy/patches/etlegacy_fedora_new.patch BuildRequires: SDL-devel, glew-devel, lua-devel, libjpeg-turbo-devel, libcurl-devel, libvorbis-devel, libogg-devel, zip, desktop-file-utils, cmake, gzip Requires: SDL, libGLEW, lua, libjpeg-turbo, libcurl, libvorbis, libogg, libtxc_dxtn %description ET:Legacy is a maintained and updated version of Wolfenstein: Enemy Territory. %package docs Summary: Documentation for ET:Legacy Group: Documentation BuildArch: noarch Requires: etl = %{version}-%{release} %description docs Documentation for ET:Legacy. %prep %setup -q -n etlegacy-%{version} %build export CFLAGS="$RPM_OPT_FLAGS -pipe -march=core2 -mtune=core2" export CXXFLAGS="$RPM_OPT_FLAGS -pipe -march=core2 -mtune=core2" # there is no known amd64 version of omnibot yet so we disable that wget http://sucs.org/~grepwood/etlegacy/patches/etlegacy_fedora_new.patch md5sum etlegacy_fedora_new.patch patch -p0 -i etlegacy_fedora_new.patch mkdir build cd build cmake .. \ -DINSTALL_DEFAULT_BASEDIR=%{_prefix}/share/etlegacy \ -DBUILD_CLIENT=ON \ -DBUILD_MOD=ON \ -DBUILD_MOD_PK3=ON \ -DBUILD_PAK3_PK3=ON \ -DBUILD_SERVER=OFF \ -DBUNDLED_LIBS=OFF \ -DCMAKE_CXX_FLAGS="-march=core2 -mtune=core2 -O2" \ -DCMAKE_C_FLAGS="-march=core2 -mtune=core2 -O2" \ -DCROSS_COMPILE32=OFF \ -DINSTALL_OMNIBOT=OFF \ -DFEATURE_OMNIBOT=OFF \ -DCMAKE_INSTALL_PREFIX=$RPM_BUILD_ROOT/usr make %install cd build make install # install documentation mkdir -p $RPM_BUILD_ROOT/usr/share/man/man6 #install -dpm 755 $RPM_BUILD_ROOT/docs/linux/man/man6/etl.6 cp ../docs/linux/man/man6/etl.6 $RPM_BUILD_ROOT/usr/share/man/man6/etl.6 gzip -9 $RPM_BUILD_ROOT/usr/share/man/man6/etl.6 desktop-file-install --dir=$RPM_BUILD_ROOT%{_datadir}/applications \ --add-category=ActionGame \ ../misc/etlegacy.desktop %post touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : %postun if [ $1 -eq 0 ] ; then touch --no-create %{_datadir}/icons/hicolor &>/dev/null gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi %posttrans gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %files #%doc COPYING changelog.txt known-bugs.txt readme.txt %{_bindir}/etl %{_datadir}/applications/etlegacy.desktop %{_mandir}/man6/etl.6.gz %{_datadir}/etlegacy %{_datadir}/pixmaps/ETL.xpm #%{_datadir}/icons/hicolor/*/apps/%{name}.png #%exclude %{_datadir}/%{name}/docs %files docs # These are really devel docs, but as we don't have -devel subpackage, we put it here # Could be useful for people making graphics, AI scripts or translations #%{_datadir}/%{name}/docs/ %changelog * Mon Oct 14 2013 Michael Dec - 2.72rc2-1 - initial build successful