File libnxcl.spec of Package freenx-client

#
# spec file for package libnxcl (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:           libnxcl
BuildRequires:  doxygen libqt4-devel
License:        GPL v2 or later
Group:          Development/Libraries/C and C++
Summary:        A Library for building NoMachine (NX) clients
Version:        0.9
Release:        27
Url:            http://www.krename.net
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        freenx-client-%{version}.tar.bz2
Source1:        COPYING
Patch0:         gcc-4.3.diff
Patch1:         nxcl-docdir.diff
Patch2:         obsoletes-nxssh.diff
Patch3:         automake-version.diff

%description
Based on nxclientlib by George Wright, but with all dependencies on Qt
removed and the Qt build system replaced with GNU autotools.



Authors:
--------
    Seb James <seb@esfnet.co.uk>

%package -n libnxcl1
License:        GPL v2 or later
Summary:        A Library for building NoMachine (NX) clients
Group:          Development/Libraries/C and C++

%description -n libnxcl1
Based on nxclientlib by George Wright, but with all dependencies on Qt
removed and the Qt build system replaced with GNU autotools.



Authors:
--------
    Seb James <seb@esfnet.co.uk>

%package -n libnxcl-devel
License:        GPL v2 or later
Summary:        A Library for building NoMachine (NX) clients
Group:          Development/Libraries/C and C++
Requires:       libnxcl1 = %version

%description -n libnxcl-devel
Based on nxclientlib by George Wright, but with all dependencies on Qt
removed and the Qt build system replaced with GNU autotools.



Authors:
--------
    Seb James <seb@esfnet.co.uk>

%prep
%setup -n freenx-client-%version
%patch0
%patch1
%patch2
%patch3
cp %{SOURCE1} .

%build
pushd nxcl
  autoreconf -is
  %configure --disable-static --docdir=%_defaultdocdir/%name
  make %{?jobs:-j %jobs}
popd

%install
pushd nxcl
  %makeinstall
popd

%post -n libnxcl1 -p /sbin/ldconfig

%postun -n libnxcl1 -p /sbin/ldconfig

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc COPYING
/usr/bin/libtest
/usr/bin/notQttest
/usr/bin/nxcl
/usr/bin/nxcmd

%files -n libnxcl1
%defattr(-,root,root)
%_libdir/libnxcl.so.*

%files -n libnxcl-devel
%defattr(-,root,root)
%_libdir/libnxcl.so
/usr/include/nxcl
%_libdir/libnxcl.la
%_libdir/pkgconfig/nxcl.pc

%changelog
* Tue Apr 29 2008 dmueller@suse.de
- fix build on 10.2
* Fri Apr 18 2008 dmueller@suse.de
- add svn backport to be able to remove nxssh dependency
* Tue Apr 15 2008 dmueller@suse.de
- resolve file conflict
* Sat Apr 12 2008 dmueller@suse.de
- add missing COPYING (bnc#378516)
* 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