rpms/londonlaw/devel londonlaw-0.2.1-new-twisted.patch, NONE, 1.1 londonlaw-server.desktop, NONE, 1.1 londonlaw.desktop, NONE, 1.1 londonlaw.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Hans de Goede (jwrdegoede) fedora-extras-commits at redhat.com
Tue Oct 2 18:42:19 UTC 2007


Author: jwrdegoede

Update of /cvs/extras/rpms/londonlaw/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv8787/devel

Modified Files:
	.cvsignore sources 
Added Files:
	londonlaw-0.2.1-new-twisted.patch londonlaw-server.desktop 
	londonlaw.desktop londonlaw.spec 
Log Message:
initial londonlaw import


londonlaw-0.2.1-new-twisted.patch:

--- NEW FILE londonlaw-0.2.1-new-twisted.patch ---
diff -up londonlaw-0.2.1/londonlaw/server/Game.py~ londonlaw-0.2.1/londonlaw/server/Game.py
--- londonlaw-0.2.1/londonlaw/server/Game.py~	2007-09-23 10:34:43.000000000 +0200
+++ londonlaw-0.2.1/londonlaw/server/Game.py	2007-09-23 10:34:43.000000000 +0200
@@ -20,6 +20,7 @@ import sets
 
 from twisted.python import components
 from twisted.python import log
+from zope import interface
 
 from londonlaw.common.protocol import *
 from londonlaw.common.map import *
@@ -32,7 +33,7 @@ class GameError(Exception):
    pass
 
 
-class IGameListener(components.Interface):
+class IGameListener(interface.Interface):
    def announceHistory(self, history):
       pass
 


--- NEW FILE londonlaw-server.desktop ---
[Desktop Entry]
Name=London Law Server
Comment=For local games start this before starting London Law 
Exec=london-server -p7921
Icon=londonlaw
Terminal=true
StartupNotify=false
Type=Application
Categories=Game;BoardGame;


--- NEW FILE londonlaw.desktop ---
[Desktop Entry]
Name=London Law
Comment=Online multiplayer version of a well known detective boardgame
Exec=london-client
Icon=londonlaw
Terminal=false
StartupNotify=true
Type=Application
Categories=Game;BoardGame;


--- NEW FILE londonlaw.spec ---
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

Name:           londonlaw
Version:        0.2.1
Release:        2%{?dist}
Summary:        Online multiplayer version of a well known detective boardgame
License:        GPLv2
Group:          Amusements/Games
URL:            http://www.eecs.umich.edu/~pelzlpj/londonlaw/
Source0:        http://www.eecs.umich.edu/~pelzlpj/%{name}/%{name}-%{version}.tar.gz
Source1:        %{name}.desktop
Source2:        %{name}-server.desktop
Patch0:         londonlaw-0.2.1-new-twisted.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires:  python-devel wxPython tetex-latex ghostscript ImageMagick
BuildRequires:  desktop-file-utils
BuildArch:      noarch
Requires:       wxPython python-twisted-core

%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
rm -rf $RPM_BUILD_ROOT
./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 --vendor=fedora               \
  --dir=${RPM_BUILD_ROOT}%{_datadir}/applications  \
  %{SOURCE1}
desktop-file-install --vendor=fedora               \
  --dir=${RPM_BUILD_ROOT}%{_datadir}/applications  \
  %{SOURCE2}


%clean
rm -rf $RPM_BUILD_ROOT


%post
touch --no-create %{_datadir}/icons/hicolor
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi

%postun
touch --no-create %{_datadir}/icons/hicolor
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi


%files
%defattr(-,root,root,-)
%doc COPYING ChangeLog doc/TODO doc/*.pdf doc/readme.protocol
%{_bindir}/london-*
%{_datadir}/%{name}
%{python_sitelib}/%{name}
%{_datadir}/applications/fedora-%{name}*.desktop
%{_datadir}/icons/hicolor/48x48/apps/%{name}.png


%changelog
* Mon Oct  1 2007 Hans de Goede <j.w.r.degoede at hhs.nl> 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 <j.w.r.degoede at hhs.nl> 0.2.1-1
- Initial Fedora package


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/londonlaw/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	1 Oct 2007 19:42:22 -0000	1.1
+++ .cvsignore	2 Oct 2007 18:41:47 -0000	1.2
@@ -0,0 +1 @@
+londonlaw-0.2.1.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/londonlaw/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	1 Oct 2007 19:42:22 -0000	1.1
+++ sources	2 Oct 2007 18:41:47 -0000	1.2
@@ -0,0 +1 @@
+8e7b630de309c75edd07974ca2574c41  londonlaw-0.2.1.tar.gz




More information about the fedora-extras-commits mailing list