File qgo.spec of Package qgo
#
# spec file for package qgo (Version 1.5.4)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: qgo
BuildRequires: qt3-devel update-desktop-files
Summary: A Go Board and SGF Editor
Version: 1.5.4
Release: 141
Group: Amusements/Games/Board/Other
License: GPL v2 or later
Source: qgo-%version.tar.bz2
Patch: qgo-%version-gcc4.3.diff
Patch1: qgo-%version-desktop.diff
Requires: qt3
Url: http://qgo.sourceforge.net
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
A Go board, sgf editor and client for IGS/NNGS/WINGS based on the Qt
library. Go is an ancient boardgame, very common in Japan, China and
Korea.
Authors:
--------
Peter Strempel
Johannes Mesa
%prep
%setup -q -b 0
%patch
%patch1
%build
PATH=$PATH:/usr/%_lib/qt3/bin
export LDFLAGS=-L/usr/X11/%_lib
./configure --prefix=%{_prefix} --with-extra-libs=/usr/lib/qt3/%_lib
make CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS"
%install
mkdir -p $RPM_BUILD_ROOT%{_prefix}/bin
mkdir -p $RPM_BUILD_ROOT%{_prefix}/share/qGo/pics
mkdir -p $RPM_BUILD_ROOT%{_prefix}/share/qGo/translations
mkdir -p $RPM_BUILD_ROOT%{_prefix}/share/qGo/sounds
mkdir -p $RPM_BUILD_ROOT%{_prefix}/share/applications
mkdir -p $RPM_BUILD_ROOT%{_prefix}/share/applnk/Games
mkdir -p $RPM_BUILD_ROOT%{_prefix}/share/mimelnk/text
make install DESTDIR=$RPM_BUILD_ROOT
mv $RPM_BUILD_ROOT%{_prefix}/share/applnk/Games/* $RPM_BUILD_ROOT%{_prefix}/share/applications
rm -rf $RPM_BUILD_ROOT%{_prefix}/share/mimelnk/
%suse_update_desktop_file qgo Game BoardGame
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc README TODO COPYING
%{_prefix}/bin/qgo
%{_prefix}/share/qGo
%{_prefix}/share/applications/qgo.desktop
%changelog
* Tue Mar 10 2009 anicka@suse.cz
- install correct desktop file (bnc#483231)
* Fri Nov 16 2007 anicka@suse.cz
- fix deprecated headers
* Mon Jun 18 2007 ltinkl@suse.cz
- update to 1.5.4:
* fixed : mark issue with teaching games
* added : blind go
* added : 2 new translations (latin and simplified chinese)
* changed : added 'SGF' (uppercase) as file suffix
* Tue Jan 16 2007 meissner@suse.de
- use RPM_OPT_FLAGS
* Thu Jan 11 2007 ltinkl@suse.cz
- update to 1.5.3
* fixed : 9x9 grid display
* changed : 'remember last dir' set by default
* changed : made ugly 2D stones available
* added : IGS 'nmatch' range now in the preferences
* Mon Oct 09 2006 ltinkl@suse.cz
- update to 1.5.2
* Sat Sep 09 2006 anicka@suse.de
- use proper lib (/usr/lib/qt3/lib64 on biarch)
* Wed Aug 30 2006 ltinkl@suse.cz
- initial release (1.5.1)