rpms/glchess/FC-6 glchess-1.0.4-animate.patch, NONE, 1.1 glchess-1.0.4-shebang.patch, NONE, 1.1 glchess.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Hans de Goede (jwrdegoede) fedora-extras-commits at redhat.com
Sun Apr 8 06:06:01 UTC 2007


Author: jwrdegoede

Update of /cvs/extras/rpms/glchess/FC-6
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv16933

Modified Files:
	.cvsignore sources 
Added Files:
	glchess-1.0.4-animate.patch glchess-1.0.4-shebang.patch 
	glchess.spec 
Log Message:
* Fri Apr  6 2007 Hans de Goede <j.w.r.degoede at hhs.nl> 1.0.4-2
- Various specfile cleanups / fixes (bz 234436)
- Remove shebang from certain files instead of chmod +x (bz 234436)


glchess-1.0.4-animate.patch:

--- NEW FILE glchess-1.0.4-animate.patch ---
--- trunk/glchess-python/lib/glchess/scene/opengl/opengl.py	2007/03/04 11:58:33	771
+++ trunk/glchess-python/lib/glchess/scene/opengl/opengl.py	2007/03/17 06:07:59	787
@@ -258,7 +258,9 @@
         'angle' is the angle the board should be drawn at in degress (float, [0.0, 360.0]).
         """
         self.targetBoardAngle = angle
-        self._startAnimation()
+        if self.animating is False:
+            self.animating = True
+            self.feedback.startAnimation()
 
     def animate(self, timeStep):
         """Extends glchess.scene.Scene"""

glchess-1.0.4-shebang.patch:

--- NEW FILE glchess-1.0.4-shebang.patch ---
--- glchess-1.0.4/lib/glchess/gtkui/__init__.py~	2007-04-06 08:02:18.000000000 +0200
+++ glchess-1.0.4/lib/glchess/gtkui/__init__.py	2007-04-06 08:02:18.000000000 +0200
@@ -1,4 +1,2 @@
-#!/usr/bin/env python
-
 from gtkui import GtkUI
 from chessview import GtkView


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

Name:           glchess
Version:        1.0.4
Release:        2%{?dist}
Summary:        GlChess, a 3d Chess game using OpenGL
Group:          Amusements/Games
License:        GPL
URL:            http://glchess.sourceforge.net/
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Patch0:         glchess-1.0.4-animate.patch
Patch1:         glchess-1.0.4-shebang.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires:  python-devel desktop-file-utils
BuildArch:      noarch
Requires:       gnuchess pygtk2-libglade pygtkglext hicolor-icon-theme
Requires(pre):  GConf2
Requires(post): GConf2
Requires(preun): GConf2

%description
A very nice Chess game using OpenGL.


%prep
%setup -q
%patch0 -p2 -z .animate
%patch1 -p1 -z .shebang
sed -i 's|share/games/|share/|g' setup.py lib/glchess/defaults.py


%build
python setup.py build


%install
rm -rf $RPM_BUILD_ROOT
python setup.py install -O1 --skip-build --root="$RPM_BUILD_ROOT" \
  --prefix="%{_prefix}"
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
mv $RPM_BUILD_ROOT%{_datadir}/gconf $RPM_BUILD_ROOT%{_sysconfdir}

# this file can be executed stand alone (has a main and shebang)
chmod +x $RPM_BUILD_ROOT%{python_sitelib}/%{name}/scene/opengl/png.py

# below is the desktop file and icon stuff.
desktop-file-install --vendor fedora            \
  --dir $RPM_BUILD_ROOT%{_datadir}/applications \
  --delete-original                             \
  --remove-category Application                 \
  $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop

mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/scalable/apps
mv $RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}.svg \
  $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/scalable/apps


%clean
rm -rf $RPM_BUILD_ROOT


%pre
if [ "$1" -gt 1 ]; then
    export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
    gconftool-2 --makefile-uninstall-rule \
      %{_sysconfdir}/gconf/schemas/%{name}.schemas >/dev/null || :
    killall -HUP gconfd-2 || :
fi


%post
touch --no-create %{_datadir}/icons/hicolor || :
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
update-desktop-database &> /dev/null || :
update-mime-database %{_datadir}/mime &> /dev/null || :
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
gconftool-2 --makefile-install-rule \
  %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || :
killall -HUP gconfd-2 || :


%preun
if [ "$1" -eq 0 ]; then
    export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
    gconftool-2 --makefile-uninstall-rule \
      %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || :
    killall -HUP gconfd-2 || :
fi


%postun
touch --no-create %{_datadir}/icons/hicolor || :
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
update-desktop-database &> /dev/null || :
update-mime-database %{_datadir}/mime &> /dev/null || :


%files
%defattr(-,root,root,-)
%doc COPYING README BUGS ChangeLog TODO
%{_sysconfdir}/gconf/schemas/glchess.schemas
%{_bindir}/%{name}
%{_datadir}/%{name}
%{python_sitelib}/%{name}
%{_datadir}/mime/packages/%{name}.xml
%{_datadir}/applications/fedora-%{name}.desktop
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg


%changelog
* Fri Apr  6 2007 Hans de Goede <j.w.r.degoede at hhs.nl> 1.0.4-2
- Various specfile cleanups / fixes (bz 234436)
- Remove shebang from certain files instead of chmod +x (bz 234436)

* Thu Mar 29 2007 Hans de Goede <j.w.r.degoede at hhs.nl> 1.0.4-1
- Initial Fedora Extras package


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/glchess/FC-6/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	7 Apr 2007 15:12:37 -0000	1.1
+++ .cvsignore	8 Apr 2007 06:05:27 -0000	1.2
@@ -0,0 +1 @@
+glchess-1.0.4.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/glchess/FC-6/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	7 Apr 2007 15:12:37 -0000	1.1
+++ sources	8 Apr 2007 06:05:27 -0000	1.2
@@ -0,0 +1 @@
+927b3b2aa0332f22cddb51c065ad96d9  glchess-1.0.4.tar.gz




More information about the fedora-extras-commits mailing list