File pokerclock.spec of Package pokerclock

Name:				 pokerclock
Version:			 1.0.6
Release:			 0
Summary:			 Poker Tournament Clock
# http://prdownloads.sourceforge.net/pokerclock/pokerclock-%{version}.tgz
Source:			 pokerclock-%{version}.tar.bz2
Patch1:         pokerclock-fix_cmake.patch
Patch2:         pokerclock-fix_paths.patch
URL:				 http://sourceforge.net/projects/pokerclock/
Group:			 Amusements/Games/Other
License:			 GPL-2.0+
BuildRoot:		 %{_tmppath}/build-%{name}-%{version}
BuildRequires:	 libqt4-devel openssl-devel
BuildRequires:	 gcc-c++ cmake gcc make glibc-devel
BuildRequires:	 update-desktop-files

%description
A clock for tournaments of Poker.

Main features:
* Small/Big blinds
* Antes
* Blinds/Antes Time
* Total Time
* ReBuy
* AddOn
* Avg Stack
* Total Stack
* Total Prize 

%prep
%setup -q -n pokerclock
%patch -P 1
%patch -P 2
%__mv src/sounds/event.wav src/sounds/pokerclock-event.wav

%build
mkdir -p build
pushd build
cmake -DCMAKE_INSTALL_PREFIX="%{_prefix}" -DCMAKE_VERBOSE_MAKEFILE=ON ..
%__make %{?_smp_mflags}
popd #build

%install
pushd build
%makeinstall
popd #build

%suse_update_desktop_file -r "%{name}" Game CardGame

%files
%defattr(-,root,root)
%doc CHANGELOG COPYING TODO
%{_bindir}/pokerclock
%{_datadir}/applications/pokerclock.desktop
%{_datadir}/pixmaps/pokerclock.png
%{_datadir}/sounds/pokerclock-event.wav

%changelog
# vim: set sw=3 ts=3 noet:
# Local Variables:
# mode: rpm-spec
# tab-width: 3
# End:
openSUSE Build Service is sponsored by