File libjreen.spec of Package libjreen

#
# spec file for package libjreen
#
# Copyright (c) 2017 SUSE LINUX 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 sover 1

Name:           libjreen
Version:        1.2.1
Release:        0
Summary:        Qt-based Jabber/XMPP library
License:        GPL-2.0+
Group:          Development/Libraries/C and C++
Url:            http://github.com/euroelessar/jreen
Source:         jreen-%{version}.tar.gz
BuildRequires:  cmake
BuildRequires:  kde4-filesystem
BuildRequires:  libgsasl-devel
BuildRequires:  libqt4-devel
BuildRequires:  speex-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Jreen is an extensible Qt-based asynchronious Jabber library.

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

%description -n libjreen%{sover}
Jreen is an extensible Qt-based asynchronious Jabber library.

%package -n libjreen-devel
Summary:        Development files for libjreen, a Qt-based Jabber/XMPP library
Group:          Development/Libraries/C and C++
Requires:       libjreen%{sover} = %{version}
Requires:       libqt4-devel
Provides:       jreen-devel = %{version}

%description -n libjreen-devel
Jreen is an extensible Qt-based asynchronious Jabber library.

This subpackage contains libraries and header files for developing
applications that want to make use of libjreen.

%prep
%setup -q -n jreen-%{version}

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

%install
%kde4_makeinstall -C build

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

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

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

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

%changelog
openSUSE Build Service is sponsored by