File gloox.spec of Package gloox

#
# spec file for package gloox 
#
# Copyright (c) 2010 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  
  
%define soname	12 
  
Name:           gloox
Version:        1.0.10
Release:        0.1 
Summary:        High-level Jabber/XMPP Library for C++  
License:        GPL-2.0 
URL:            http://camaya.net/gloox  
Source:         http://camaya.net/download/%{name}-%{version}.tar.bz2  
Group:          Development/Libraries/C and C++  
BuildRoot:      %{_tmppath}/build-%{name}-%{version}  
BuildRequires:  autoconf automake libtool gcc-c++ make pkg-config libgcrypt-devel
BuildRequires:  gnutls-devel >= 1.2 openssl-devel >= 0.9.8 libidn-devel >= 0.5 zlib-devel >= 1.2.3
#BuildRequires:  dos2unix

%description  
gloox is a rock-solid, full-featured Jabber/XMPP client library, written in 
clean ANSI C++. It makes writing spec-compliant clients easy and allows for 
hassle-free integration of Jabber/XMPP functionality into existing applications.

%package -n lib%{name}%{soname}
Summary:        High-level XMPP Library for C++  
Group:          Development/Libraries/C and C++
License:        GPL-2.0
Provides:       lib%{name} = %{version}
Obsoletes:      lib%{name} < %{version} 

%description -n lib%{name}%{soname}
gloox is a rock-solid, full-featured Jabber/XMPP client library, written in 
clean ANSI C++. It makes writing spec-compliant clients easy and allows for 
hassle-free integration of Jabber/XMPP functionality into existing applications.

%package devel  
Summary:        High-level XMPP Library for C++  
Group:          Development/Libraries/C and C++
License:        GPL-2.0
Requires:       lib%{name}%{soname} = %{version}-%{release}
Requires:       gnutls-devel libgcrypt-devel libidn-devel pkg-config

%description devel  
This package contains, header files, and libraries needed to
develop application that use %{name}.

%prep  
%setup -q -n "gloox-%{version}"  

%build  
%configure --disable-static --with-pic
make %{?_smp_mflags}

#dos2unix AUTHORS
  
%install  
%makeinstall  
rm -f $(find %{buildroot} -name *.la)

%clean  
rm -rf "%{buildroot}"  
  
%post -n lib%{name}%{soname} -p /sbin/ldconfig  
  
%postun -n lib%{name}%{soname} -p /sbin/ldconfig  
  
%files -n lib%{name}%{soname}
%defattr(-,root,root)  
%doc AUTHORS ChangeLog LICENSE README TODO UPGRADING
%{_libdir}/*%{name}.so.* 
  
%files -n %{name}-devel  
%defattr(-,root,root)  
%{_bindir}/gloox-config  
%{_includedir}/gloox  
%{_libdir}/libgloox.so  
%{_libdir}/pkgconfig/gloox.pc  
  
%changelog  
openSUSE Build Service is sponsored by