# %bcond_without server # build with local server # # there is no ghc on ppc %ifarch ppc %undefine with_server %endif Summary: hedgewars - free Worms-like turn based strategy game Summary(hu.UTF-8): hedgewars - ingyenes Worms-szerű körökre osztott stratégiai játék Summary(pl.UTF-8): hedgewars - strategia czasu rzeczywistego podobna do Worms Name: hedgewars Version: 0.9.16 Release: 1 License: GPL v2 + Public Domain fonts Group: X11/Applications/Games Source0: http://download.gna.org/hedgewars/hedgewars-src-%{version}.tar.bz2 # Source0-md5: 04f28f454e370a101cbf0d82c6d39bce Patch0: %{name}-desktop.patch URL: http://www.hedgewars.org/ BuildRequires: QtCore-devel >= 4.4.0 BuildRequires: QtNetwork-devel BuildRequires: QtSvg-devel >= 4.4.0 BuildRequires: SDL_image-devel >= 1.2 BuildRequires: SDL_mixer-devel >= 1.2 BuildRequires: SDL_net-devel >= 1.2.5 BuildRequires: SDL_ttf-devel >= 2.0 BuildRequires: cmake >= 2.8.0 BuildRequires: desktop-file-utils BuildRequires: fpc >= 2.2.0 %{?with_server:BuildRequires: ghc} %{?with_server:BuildRequires: ghc-dataenc} %{?with_server:BuildRequires: ghc-hslogger} %{?with_server:BuildRequires: ghc-bytestring-show} %{?with_server:BuildRequires: gmp-devel} BuildRequires: lua51-devel BuildRequires: openssl-devel BuildRequires: qt4-build BuildRequires: qt4-linguist BuildRequires: qt4-qmake BuildRequires: rpmbuild(macros) >= 1.577 BuildRequires: zlib-devel BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Hedgewars is a free Worms-like turn based strategy game. %description -l hu.UTF-8 Hedgewars egy ingyenes Worms-szerű körökre osztott stratégiai játék. %description -l pl.UTF-8 Hedgewars jest wolnodostępną strategią czasu rzeczywistego podobną do Worms. %package server Summary: Network server for hedgewars Summary(pl.UTF-8): Sieciowy serwer dla hedgewars Group: X11/Applications/Games %description server Server for playing networked games of hedgewars. %description server -l pl.UTF-8 Serwer do prowadzenia sieciowych gier hedgewars. %prep %setup -q -n %{name}-src-%{version} %patch0 -p1 %build %cmake \ %{?with_server:-DWITH_SERVER=1} \ -DCMAKE_EXE_LINKER_FLAGS="-lz" \ . %{__make} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}} %{__make} install \ DESTDIR=$RPM_BUILD_ROOT install misc/hedgewars.desktop $RPM_BUILD_ROOT%{_desktopdir} install misc/hedgewars.png $RPM_BUILD_ROOT%{_pixmapsdir} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc README Fonts_LICENSE.txt ChangeLog.txt %attr(755,root,root) %{_bindir}/hedgewars %attr(755,root,root) %{_bindir}/hwengine %{_datadir}/%{name} %{_pixmapsdir}/%{name}.png %{_desktopdir}/%{name}.desktop %if %{with server} %files server %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/hedgewars-server %endif