File libjreen.spec of Package libjreen

#
# spec file for package libjreen
#
# Copyright (c) 2014 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/
#


%define soname 1

Name:           libjreen
Version:        1.1.1
Release:        0
Summary:        Qt Jabber/XMPP library
License:        GPL-2.0+
Group:          System/Libraries
Url:            http://github.com/euroelessar/jreen
Source:         libjreen-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM update-to-latest-git-fixes.patch -- fixed compile with latest CMake
Patch0:         update-to-latest-git-fixes.patch
BuildRequires:  cmake
BuildRequires:  kde4-filesystem
BuildRequires:  libgsasl-devel
BuildRequires:  libqt4-devel
BuildRequires:  speex-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Qt Jabber/XMPP extensible library.

%package -n libjreen%{soname}
Summary:        Qt Jabber/XMPP library
Group:          System/Libraries

%description -n libjreen%{soname}
Qt Jabber/XMPP extensible library.

%package -n libjreen-devel
Summary:        Qt Jabber/XMPP library
Group:          Development/Libraries/C and C++
Requires:       libjreen%{soname} = %{version}
Requires:       libqt4-devel
Provides:       jreen-devel = %{version}

%description -n libjreen-devel
Qt Jabber/XMPP extensible library.

%prep
%setup -q -n libjreen-%{version}
%patch0 -p1

%build
%cmake_kde4 -d build -- -DJREEN_FORCE_QT4=ON
%make_jobs

%install
%kde4_makeinstall -C build

%post   -n libjreen%{soname} -p /sbin/ldconfig

%postun -n libjreen%{soname} -p /sbin/ldconfig

%files -n libjreen%{soname}
%defattr(-,root,root)
%doc AUTHORS  ChangeLog COPYING  README
%{_libdir}/libjreen.so.%{soname}
%{_libdir}/libjreen.so.%{soname}.*

%files -n libjreen-devel
%defattr(-,root,root)
%{_includedir}/jreen
%{_libdir}/libjreen.so
%{_libdir}/pkgconfig/libjreen.pc

%changelog
openSUSE Build Service is sponsored by