File qtnx.spec of Package qtnx
#
# spec file for package qtnx (Version 0.0.1SVNr281)
#
# 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: qtnx
BuildRequires: libqt4-devel
License: GPL v2 or later
Group: System/X11/Utilities
Summary: a Qt based NoMachine (NX) client
Version: 0.0.1SVNr281
Release: 213
Url: http://www.krename.net
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: nxclientlib-%{version}.tar.bz2
Source1: qtnx-%{version}.tar.bz2
Patch1: %name.diff
%description
This is a free implementation of a NX session client.
Authors:
--------
George Wright <gwright@kde.org>
%prep
tar xf %SOURCE0
pushd nxclientlib
tar xf %SOURCE1
cd qtnx
%patch1
popd
%build
pushd nxclientlib
qmake
sed -i -e "s,CXXFLAGS.*=\(.*\),CXXFLAGS = \\1 $RPM_OPT_FLAGS," Makefile
make %{?jobs:-j %jobs}
popd
pushd nxclientlib/qtnx
qmake
sed -i -e "s,CXXFLAGS.*=\(.*\),CXXFLAGS = \\1 $RPM_OPT_FLAGS," Makefile
make %{?jobs:-j %jobs}
popd
%install
mkdir -p $RPM_BUILD_ROOT/%_libdir
mkdir -p $RPM_BUILD_ROOT/%_bindir
cp -P nxclientlib/libnxclientlib.so.* $RPM_BUILD_ROOT/%_libdir/
install -m 755 nxclientlib/qtnx/qtnx $RPM_BUILD_ROOT/%_bindir/qtnx
%post
%run_ldconfig
%postun
%run_ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%_bindir/qtnx
%_libdir/libnxclientlib.so.*
%changelog
* Tue Jan 09 2007 dmueller@suse.de
- fix lib installation (#231682)
* Sun Sep 10 2006 dmueller@suse.de
- Initial package