File freenx-client.spec of Package freenx-client

#
# spec file for package freenx-client (Version 0.9)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           freenx-client
BuildRequires:  doxygen libnxcl-devel libqt4-devel
License:        GPL v2 or later
Group:          System/X11/Utilities
Summary:        a Free NoMachine (NX) client
Version:        0.9
Release:        24
Url:            http://www.krename.net
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        freenx-client-%{version}.tar.bz2
Source1:        COPYING
Patch0:         gcc-4.3.diff
Patch1:         qtnx-install.diff
Patch2:         qtnx-fix-build.diff
Provides:       qtnx = 0.0.2
Obsoletes:      qtnx <= 0.0.2

%description
This is a free implementation of a NX session client.



Authors:
--------
    George Wright <gwright@kde.org>

%prep
%setup
%patch0
%patch1
%patch2
cp %{SOURCE1} .

%build
pushd qtnx
  qmake
  sed -r -i -e "s,^CXXFLAGS\s*=(.*),CXXFLAGS = \\1 $RPM_OPT_FLAGS," Makefile
  make %{?jobs:-j %jobs}
popd

%install
pushd qtnx
  make install INSTALL_ROOT=$RPM_BUILD_ROOT
popd

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc COPYING
%_bindir/qtnx

%changelog
* Tue Jul 08 2008 dmueller@suse.de
- fix build
* Tue Apr 15 2008 dmueller@suse.de
- fix typo
* Tue Apr 08 2008 dmueller@suse.de
- update to 0.9 (bnc#3752466):
  * separated out the build of the client library
  * some small bugfixes
* Tue Jan 09 2007 dmueller@suse.de
- fix lib installation (#231682)
* Mon Sep 11 2006 dmueller@suse.de
- Initial package
openSUSE Build Service is sponsored by