File qtnx.spec of Package qtnx
#
# spec file for package qtnx (Version 0.0.1SVNr281)
#
# Copyright (c) 2007 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: qtnx
BuildRequires: libqt4-devel
License: GNU General Public License (GPL)
Group: System/X11/Utilities
Summary: a Qt based NoMachine (NX) client
Version: 0.0.1SVNr281
Release: 33
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 -n qtnx
* Tue Jan 09 2007 - dmueller@suse.de
- fix lib installation (#231682)
* Sun Sep 10 2006 - dmueller@suse.de
- Initial package