%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: londonlaw Version: 0.2.1 Release: 17%{?dist} Summary: Online multiplayer version of a well known detective boardgame License: GPLv2 Group: Amusements/Games URL: http://pessimization.com/software/londonlaw/ Source0: http://pessimization.com/software/%{name}/%{name}-%{version}.tar.gz Source1: %{name}.desktop Source2: %{name}-server.desktop Patch0: londonlaw-0.2.1-new-twisted.patch BuildRequires: python-devel wxPython ghostscript ImageMagick BuildRequires: tex(latex) tex(fullpage.sty) desktop-file-utils BuildArch: noarch Requires: wxPython python-twisted-core hicolor-icon-theme %description London Law is an online multiplayer version of a well known detective boardgame. The game is unusually asymmetric; one player controls the movements of the criminal Mr. X as he tries to evade the detectives, while another one to five players control five detectives trying to track him down. Mr. X has an advantage in access to transportation routes, and his precise location remains hidden for most of the game. The detectives have only the advantage of superior numbers, so they must work in concert to limit the criminal's options. London Law features an attractive map overlaid on high-resolution satellite imagery. %prep %setup -q %patch0 -p1 chmod +x setup.py %build ./setup.py build make -C doc manual.pdf %install ./setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT # already in /usr/bin rm $RPM_BUILD_ROOT%{python_sitelib}/%{name}/london-{client,server}.py mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps convert londonlaw/guiclient/images/playericon1.jpg -resize 48x48 \ $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/%{name}.png mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications desktop-file-install \ %if 0%{?fedora} && 0%{?fedora} < 19 --vendor fedora \ %endif --dir=${RPM_BUILD_ROOT}%{_datadir}/applications \ %{SOURCE1} desktop-file-install \ %if 0%{?fedora} && 0%{?fedora} < 19 --vendor fedora \ %endif --dir=${RPM_BUILD_ROOT}%{_datadir}/applications \ %{SOURCE2} %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 doc/TODO doc/*.pdf doc/readme.protocol %{_bindir}/london-* %{_datadir}/%{name} %{python_sitelib}/%{name} %{python_sitelib}/%{name}-%{version}-py?.?.egg-info %{_datadir}/applications/*%{name}*.desktop %{_datadir}/icons/hicolor/48x48/apps/%{name}.png %changelog * Sat Jun 07 2014 Fedora Release Engineering - 0.2.1-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Aug 03 2013 Fedora Release Engineering - 0.2.1-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Mon Mar 11 2013 Hans de Goede 0.2.1-15 - Modernize spec - Switch to posttrans gtk-update-icon-cache scripts - Don't add "--vendor fedora" to desktop-file-install invocation for F19+ * Tue Mar 5 2013 Hans de Goede 0.2.1-14 - Fix FTBFS (rhbz#914159) * Thu Feb 14 2013 Fedora Release Engineering - 0.2.1-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Thu Jul 19 2012 Fedora Release Engineering - 0.2.1-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri Jan 13 2012 Fedora Release Engineering - 0.2.1-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Feb 08 2011 Fedora Release Engineering - 0.2.1-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Wed Jul 21 2010 David Malcolm - 0.2.1-9 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild * Thu Jan 7 2010 Hans de Goede 0.2.1-8 - Change python_sitelib macro to use %%global as the new rpm will break using %%define here, see: https://www.redhat.com/archives/fedora-devel-list/2010-January/msg00093.html * Sat Jul 25 2009 Fedora Release Engineering - 0.2.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Wed Feb 25 2009 Fedora Release Engineering - 0.2.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Sat Nov 29 2008 Ignacio Vazquez-Abrams - 0.2.1-5 - Fix locations for Python 2.6 * Sat Nov 29 2008 Ignacio Vazquez-Abrams - 0.2.1-4 - Rebuild for Python 2.6 * Thu Jan 3 2008 Hans de Goede 0.2.1-3 - Add .egg-info file to %%files * Mon Oct 1 2007 Hans de Goede 0.2.1-2 - Use default BuildRoot (bz 302091) - Don't ship README (no usefull info) (bz 302091) * Sun Sep 23 2007 Hans de Goede 0.2.1-1 - Initial Fedora package