File qgo.spec of Package qgo
#
# spec file for package qgo
#
# Copyright (c) 2012 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/
#
Name: qgo
BuildRequires: qt3-devel
BuildRequires: update-desktop-files
Summary: A Go Board and SGF Editor
License: GPL-2.0+
Group: Amusements/Games/Board/Other
Version: 1.5.4
Release: 0
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.
%prep
%setup -q -b 0
%patch
%patch1
%build
export PATH="$PATH:%_prefix/lib/qt3/bin";
#export LDFLAGS=-L/usr/X11/%_lib #what distro needs /this/?
%configure --with-extra-libs="%_prefix/lib/qt3/%_lib"
make %{?_smp_mflags} CFLAGS="%optflags" CXXFLAGS="%optflags"
%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
%files
%defattr(-,root,root)
%doc README TODO COPYING
%{_prefix}/bin/qgo
%{_prefix}/share/qGo
%{_prefix}/share/applications/qgo.desktop
%changelog