rpms/poker2d/devel poker2d.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Christopher Stone (xulchris) fedora-extras-commits at redhat.com
Tue Feb 20 04:58:07 UTC 2007


Author: xulchris

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

Modified Files:
	.cvsignore sources 
Added Files:
	poker2d.spec 
Log Message:
auto-import poker2d-1.0.35-3 on branch devel from poker2d-1.0.35-3.src.rpm


--- NEW FILE poker2d.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:           poker2d
Version:        1.0.35
Release:        3%{?dist}
Summary:        GTK poker client to play on a poker-network server

Group:          Amusements/Games
License:        GPL
URL:            http://pokersource.org/poker-network
Source0:        http://download.gna.org/pokersource/sources/poker-network-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  desktop-file-utils hicolor-icon-theme ImageMagick gettext
BuildRequires:  python-devel poker-network-devel poker-engine-devel >= 1.0.21
BuildRequires:  glib2-devel libglade2-devel pygtk2-devel pygtk2-libglade
BuildRequires:  MySQL-python
Requires:       pygame, %{name}-common = %{version}-%{release}

%description
Play poker with other players connected on a poker-network server
(holdem, omaha, omaha high/low, stud 7 ...) in ring games, sit and go
or multitables tournaments. poker2d will automaticaly reconnect to
the table if the connection is lost and allows playing on multiple
tables simultaneously.

%package common
Summary:        Common files shared between poker clients
Group:          Development/Libraries
Requires:       poker-client-lib = %{version}

%description common
%{summary}.

%package kde
Summary:        KDE specific files for poker2d
Group:          Amusements/Games
Requires:       %{name} = %{version}-%{release}
Requires:       kdebase

%description kde
%{summary}.


%prep
%setup -qn poker-network-%{version}

# create poker2d desktop file
cat > %{name}.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Name=%{name}
GenericName=Multiplayer online poker
GenericName[fr]=Poker multijoueur en ligne
Comment=2D 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


%build
%configure --disable-static \
    --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

# handle locales
%find_lang %{name}

# 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 icons under icons directory
install -d $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/16x16/apps
install -d $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps

# convert icons to png format
convert $RPM_BUILD_ROOT%{_datadir}/pixmaps/poker2D.xpm \
    $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
convert $RPM_BUILD_ROOT%{_datadir}/pixmaps/poker2D-16.xpm \
    $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/16x16/apps/%{name}.png
rm -f $RPM_BUILD_ROOT%{_datadir}/pixmaps/poker2D*.xpm

# relocate poker-interface shared library
install -d $RPM_BUILD_ROOT%{_libexecdir}
mv $RPM_BUILD_ROOT%{_libdir}/poker-network/poker-interface \
    $RPM_BUILD_ROOT%{_libexecdir}

# relocate poker2d binary
install -d $RPM_BUILD_ROOT%{_bindir}
mv $RPM_BUILD_ROOT%{_exec_prefix}/games/%{name} \
    $RPM_BUILD_ROOT%{_bindir}

# remove libtool archives
rm -f $RPM_BUILD_ROOT%{python_sitelib}/*.la

# remove poker-server/client-lib/web/bot files
# poker2d will eventually be seperated from poker-network
# when poker2d reaches beta at which time manually removing
# these files will no longer become necessary.
rm -f  $RPM_BUILD_ROOT%{_sysconfdir}/poker-network/poker.pem
rm -f  $RPM_BUILD_ROOT%{_sysconfdir}/poker-network/poker.bot.xml
rm -f  $RPM_BUILD_ROOT%{_sysconfdir}/poker-network/poker.server.xml
rm -f  $RPM_BUILD_ROOT%{_sysconfdir}/poker-network/poker.client.xml
rm -fr $RPM_BUILD_ROOT%{_sysconfdir}/poker-web
rm -f  $RPM_BUILD_ROOT%{python_sitelib}/pokernetwork/__init__*
rm -f  $RPM_BUILD_ROOT%{python_sitelib}/pokernetwork/client*
rm -f  $RPM_BUILD_ROOT%{python_sitelib}/pokernetwork/currencyclient*
rm -f  $RPM_BUILD_ROOT%{python_sitelib}/pokernetwork/dispatch*
rm -f  $RPM_BUILD_ROOT%{python_sitelib}/pokernetwork/packets*
rm -f  $RPM_BUILD_ROOT%{python_sitelib}/pokernetwork/pokeravatar*
rm -f  $RPM_BUILD_ROOT%{python_sitelib}/pokernetwork/pokerbot*
rm -f  $RPM_BUILD_ROOT%{python_sitelib}/pokernetwork/pokercashier*
rm -f  $RPM_BUILD_ROOT%{python_sitelib}/pokernetwork/pokerchildren*
rm -f  $RPM_BUILD_ROOT%{python_sitelib}/pokernetwork/pokerclient*
rm -f  $RPM_BUILD_ROOT%{python_sitelib}/pokernetwork/pokerdatabase*
rm -f  $RPM_BUILD_ROOT%{python_sitelib}/pokernetwork/pokerlock*
rm -f  $RPM_BUILD_ROOT%{python_sitelib}/pokernetwork/pokernetworkconfig*
rm -f  $RPM_BUILD_ROOT%{python_sitelib}/pokernetwork/pokerpackets*
rm -f  $RPM_BUILD_ROOT%{python_sitelib}/pokernetwork/pokerserver*
rm -f  $RPM_BUILD_ROOT%{python_sitelib}/pokernetwork/pokerservice*
rm -f  $RPM_BUILD_ROOT%{python_sitelib}/pokernetwork/pokertable*
rm -f  $RPM_BUILD_ROOT%{python_sitelib}/pokernetwork/protocol*
rm -f  $RPM_BUILD_ROOT%{python_sitelib}/pokernetwork/proxy*
rm -f  $RPM_BUILD_ROOT%{python_sitelib}/pokernetwork/server*
rm -f  $RPM_BUILD_ROOT%{python_sitelib}/pokernetwork/upgrade*
rm -f  $RPM_BUILD_ROOT%{python_sitelib}/pokernetwork/user*
rm -f  $RPM_BUILD_ROOT%{python_sitelib}/pokernetwork/version*
rm -fr $RPM_BUILD_ROOT%{python_sitelib}/pokerui
rm -fr $RPM_BUILD_ROOT%{_libdir}/pkgconfig
rm -f  $RPM_BUILD_ROOT%{_sbindir}/*
rm -fr $RPM_BUILD_ROOT%{_datadir}/man/man8
rm -f  $RPM_BUILD_ROOT%{_datadir}/poker-network/*.sql
rm -f  $RPM_BUILD_ROOT%{_datadir}/poker-network/conf/poker.pem
rm -f  $RPM_BUILD_ROOT%{_datadir}/poker-network/conf/poker.bot.xml
rm -f  $RPM_BUILD_ROOT%{_datadir}/poker-network/conf/poker.server.xml
rm -f  $RPM_BUILD_ROOT%{_datadir}/poker-network/conf/poker.client.xml
rm -fr $RPM_BUILD_ROOT%{_datadir}/poker-network/upgrades/poker.bot
rm -fr $RPM_BUILD_ROOT%{_datadir}/poker-network/upgrades/poker.server
rm -fr $RPM_BUILD_ROOT%{_datadir}/poker-network/upgrades/poker.client
rm -f  $RPM_BUILD_ROOT%{_datadir}/poker-network/upgrades/upgrade
rm -fr $RPM_BUILD_ROOT%{_datadir}/poker-web


%check
# make check is currently non-functional on Fedora
# upstream is investigating an in-memory db solution for this
#make check

 
%clean
rm -rf $RPM_BUILD_ROOT


%post -n poker2d
touch --no-create %{_datadir}/icons/hicolor || :
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :

%postun -n poker2d
touch --no-create %{_datadir}/icons/hicolor || :
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :


%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING HACKING NEWS README
%{_bindir}/%{name}
%{_mandir}/man6/*
%{_datadir}/icons/hicolor/32x32/apps/*.png
%{_datadir}/icons/hicolor/16x16/apps/*.png
%{_datadir}/poker-network/%{name}
%{_datadir}/applications/fedora-%{name}.desktop
%{python_sitelib}/pokerclient2d
%{python_sitearch}/_pokerinterface*

%files common -f %{name}.lang
%defattr(-,root,root,-)
%doc COPYING
%{_libexecdir}/poker-interface

%files kde
%defattr(-,root,root,-)
%doc COPYING
%{_datadir}/apps/khotkeys/*.khotkeys


%changelog
* Mon Feb 19 2007 Christopher Stone <chris.stone at gmail.com> 1.0.35-3
- Remove NIHPHOBIA from %%doc
- Remove libtool archive files

* Sun Feb 18 2007 Christohper Stone <chris.stone at gmail.com> 1.0.35-2
- Move poker2d binary to %%{_bindir}
- Update desktop file to correspond with new binary location

* Wed Feb 14 2007 Christopher Stone <chris.stone at gmail.com> 1.0.35-1
- Upstream sync
- Remove Requires for MySQL-python
- Move creation of desktop file to %%prep

* Wed Jan 24 2007 Christopher Stone <chris.stone at gmail.com> 1.0.34-1
- Upstream sync
- Comment out make check

* Sat Jan 20 2007 Christohper Stone <chris.stone at gmail.com> 1.0.33-5
- Remove redundant SOAPpy Requires
- Rename icons to %%{name}.png
- Add X-DocPath and X-Miniicon to .desktop file

* Sat Jan 20 2007 Christopher Stone <chris.stone at gmail.com> 1.0.33-4
- Move %%{_libexecdir}/poker-interface into a common subpackage
- Move locales to poker2d-common
- Move poker-client-lib back into poker-network package
- Remove Version from desktop file
- Fix up Requires and BuildRequires
- Fix descriptions for sub packages

* Fri Jan 19 2007 Christopher Stone <chris.stone at gmail.com> 1.0.33-3
- Remove %%{release} from poker-network in poker-client-lib Requires

* Sun Jan 14 2007 Christopher Stone <chris.stone at gmail.com> 1.0.33-2
- Remove poker-network/web/server/bot files

* Sun Jan 14 2007 Christopher Stone <chris.stone at gmail.com> 1.0.33-1
- Initial RPM release


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/poker2d/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	20 Feb 2007 03:18:50 -0000	1.1
+++ .cvsignore	20 Feb 2007 04:57:34 -0000	1.2
@@ -0,0 +1 @@
+poker-network-1.0.35.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/poker2d/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	20 Feb 2007 03:18:50 -0000	1.1
+++ sources	20 Feb 2007 04:57:34 -0000	1.2
@@ -0,0 +1 @@
+db5dd531d4d7113c1777ba66a41fe803  poker-network-1.0.35.tar.gz




More information about the scm-commits mailing list