rpms/poker3d/F-8 poker3d-1.1.36-64bit.patch, NONE, 1.1 poker3d-1.1.36-libexec.patch, NONE, 1.1 poker3d-1.1.36-osg.patch, NONE, 1.1 poker3d.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Christopher Stone (xulchris) fedora-extras-commits at redhat.com
Sun Nov 18 15:19:34 UTC 2007


Author: xulchris

Update of /cvs/extras/rpms/poker3d/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv2141/F-8

Modified Files:
	.cvsignore sources 
Added Files:
	poker3d-1.1.36-64bit.patch poker3d-1.1.36-libexec.patch 
	poker3d-1.1.36-osg.patch poker3d.spec 
Log Message:
Initial import (bz #355971)

poker3d-1.1.36-64bit.patch:

--- NEW FILE poker3d-1.1.36-64bit.patch ---
--- src/maf/packets.cpp~	2007-10-21 15:55:54.000000000 -0700
+++ src/maf/packets.cpp	2007-10-21 15:57:17.000000000 -0700
@@ -76,7 +76,11 @@
 
 void MAFPacketsModule::LoadTypes(void)
 {
+#if PY_VERSION_HEX < 0x02050000
   int pos = 0;
+#else // PY_VERSION_HEX < 0x02050000
+  Py_ssize_t pos = 0;
+#endif // PY_VERSION_HEX < 0x02050000
   PyObject* key;
   PyObject* value;
   PyObject* dictionary = PyModule_GetDict(mModule);

poker3d-1.1.36-libexec.patch:

--- NEW FILE poker3d-1.1.36-libexec.patch ---
--- configure.ac~	2007-10-27 19:26:39.000000000 -0700
+++ configure.ac	2007-10-27 19:48:50.000000000 -0700
@@ -184,7 +184,7 @@
 # Check for Xvfb
 AC_PATH_PROG(XFVB, Xvfb)
 
-versionlibdir=$libdir/$PACKAGE
+versionlibdir=$libexecdir/$PACKAGE
 AC_SUBST(versionlibdir, [$versionlibdir])
 AC_SUBST(pythonpath, [$pythonpath])
 

poker3d-1.1.36-osg.patch:

--- NEW FILE poker3d-1.1.36-osg.patch ---
--- src/maf/MultipleAnimationPathCallback.cpp~	2007-11-15 15:58:29.000000000 -0800
+++ src/maf/MultipleAnimationPathCallback.cpp	2007-11-15 15:58:39.000000000 -0800
@@ -26,12 +26,6 @@
 
 using namespace osg;
 
-#if OSG_VERSION_RELEASE != 9 && OSG_VERSION_MAJOR != 1
-#define getRotation() _rotation
-#define getScale() _scale
-#define getPosition() _position
-#endif // OSG_VERSION_RELEASE != 9 && OSG_VERSION_MAJOR != 1
-
 class MultipleAnimationPathCallbackVisitor : public osg::NodeVisitor
 {
     public:


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

Name:           poker3d
Version:        1.1.36
Release:        6%{?dist}
Summary:        Three dimensional multi-user online poker game

Group:          Amusements/Games
License:        GPLv2+
URL:            http://gna.org/projects/underware
#Source0:        http://download.gna.org/underware/sources/%{name}-%{version}.tar.gz
# Temporary Source0 URL until upstream fixes stable tarballs
Source0:        http://pok3d.net/unstable/poker3d_1.1.36.orig.tar.gz
Patch0:         %{name}-1.1.36-64bit.patch
Patch1:         %{name}-1.1.36-libexec.patch
Patch2:         %{name}-1.1.36-osg.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  ImageMagick desktop-file-utils
BuildRequires:  OpenSceneGraph-devel >= 0.9.8, osgal-devel >= 0.3
BuildRequires:  cal3d-devel osgcal-devel >= 0.1.37
BuildRequires:  python-devel SDL-devel libxml2-devel glib2-devel libtool
BuildRequires:  poker-engine-devel poker-network-devel >= 1.0.36
Requires:       poker-engine poker-network >= 1.0.36
Requires:       hicolor-icon-theme poker2d-common poker3d-data
Requires:       xwnc opengl-games-utils

%description
%{summary}.


%prep
%setup -q
%patch0 -p0 -b .64bit~
%patch1 -p0 -b .libexec~
%patch2 -p0 -b .osg~
autoreconf --force --install

# Avoid lib64 rpaths
#sed -i -e 's|"/lib /usr/lib|"/%{_lib} %{_libdir}|' configure

# Fix rpmlint warnings
find src -name "*.cpp" -exec chmod -x {} \;
find include -name "*.h" -exec chmod -x {} \;
chmod -x osgplugins/ddsrle/src/rle*

# Fix file encodings
iconv -f iso8859-1 -t utf-8 ChangeLog > ChangeLog.conv && mv -f ChangeLog.conv ChangeLog

# Remove shell bangs
pushd examples/poker
for file in $(find . -type f -name "*.py"); do
  cp $file $file.orig
  grep -v -e "^\#\!" $file.orig > $file
  rm -f $file.orig
done
popd

# Convert icon
convert poked_16_256.ico %{name}.png

# Create poker3d desktop file
cat > %{name}.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Name=%{name}
GenericName=Multiplayer online poker
GenericName[fr]=Poker multijoueur en ligne
Comment=3-D Poker Client
Exec=%{name}
Icon=%{name}.png
X-Miniicon=%{name}.png
X-DocPath=%{name}/index.html
Terminal=false
Type=Application
Categories=KDE;Game;CardGame;
EOF

# Create wrapper shell script
cat > %{name} << EOF
#!/bin/sh
. %{_datadir}/opengl-games-utils/opengl-game-functions.sh
checkDriOK %{name}
export LD_LIBRARY_PATH=%{_libdir}/%{name}
exec %{_libexecdir}/%{name}/%{name} "\$@"
EOF


%build
# relocate libraries because they are not meant to be shared by other apps
%configure --disable-static --libdir=%{_libdir}/%{name} \
    --with-poker-server-host=poker.pokersource.info \
    --with-poker-www-host=pokersource.info
make %{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT

# Remove libtool archive files
rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
find $RPM_BUILD_ROOT%{python_sitearch} -name "*.la" -exec rm -f {} \;

# Install icon
install -d $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/16x16/apps
install -pm 644 %{name}.png \
    $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/16x16/apps

# Install fedora desktop file
rm -f $RPM_BUILD_ROOT%{_datadir}/applications/*.desktop
desktop-file-install --vendor=fedora \
    --dir=$RPM_BUILD_ROOT%{_datadir}/applications \
    %{name}.desktop

# Install wrapper script
install -d $RPM_BUILD_ROOT%{_bindir}
install -m 755 %{name} $RPM_BUILD_ROOT%{_bindir}

# Relocate poker3d binary
install -d $RPM_BUILD_ROOT%{_libexecdir}/%{name}
mv $RPM_BUILD_ROOT%{_exec_prefix}/games/%{name} $RPM_BUILD_ROOT%{_libexecdir}/%{name}

# Remove unneeded files
rm -fr $RPM_BUILD_ROOT%{_includedir}/varseditor
rm -f  $RPM_BUILD_ROOT%{_datadir}/%{name}/data/PLACEHOLDER


%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 AUTHORS ChangeLog COPYING README
%{_bindir}/%{name}
%{_libdir}/%{name}
%{_libexecdir}/%{name}
%{_datadir}/%{name}/*
%{_datadir}/applications/fedora-%{name}.desktop
%{_datadir}/icons/hicolor/16x16/apps/%{name}.png
%{python_sitelib}/underware
%{python_sitearch}/*
%{_mandir}/man6/%{name}.6.gz


%changelog
* Sat Nov 17 2007 Christopher Stone <chris.stone at gmail.com> 1.1.36-6
- Remove no longer needed ldconfig
- Add xwnc to Requires

* Fri Nov 16 2007 Christopher Stone <chris.stone at gmail.com> 1.1.36-5
- Add a wrapper script to invoke poker3d instead of using ld.so.conf

* Thu Nov 15 2007 Christopher Stone <chris.stone at gmail.com> 1.1.36-4
- Add patch to fix compile with OSG2.x

* Thu Nov 15 2007 Christopher Stone <chris.stone at gmail.com> 1.1.36-3
- Use a temporary %%SOURCE0 URL until upstream updates stable tarballs

* Tue Nov 06 2007 Christopher Stone <chris.stone at gmail.com> 1.1.36-2
- Update icon cache scriptlets

* Sun Oct 28 2007 Christopher Stone <chris.stone at gmail.com> 1.1.36-1
- Initial Fedora release


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/poker3d/F-8/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	18 Nov 2007 01:09:46 -0000	1.1
+++ .cvsignore	18 Nov 2007 15:19:02 -0000	1.2
@@ -0,0 +1 @@
+poker3d_1.1.36.orig.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/poker3d/F-8/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	18 Nov 2007 01:09:46 -0000	1.1
+++ sources	18 Nov 2007 15:19:02 -0000	1.2
@@ -0,0 +1 @@
+68d1345308b0aa68950b65514abb747b  poker3d_1.1.36.orig.tar.gz




More information about the fedora-extras-commits mailing list