File kxmlrpcclient5.spec of Package kxmlrpcclient5

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


%bcond_without lang
%define rname kxmlrpcclient
%define lname libKF5XmlRpcClient5
%define _tar_path 5.26
Name:           kxmlrpcclient5
Version:        5.26.0
Release:        0
%define kf5_version %{version}
Summary:        Library containing simple XML-RPC Client support
License:        BSD-2-Clause
Group:          System/GUI/KDE
Url:            http://www.kde.org
Source:         http://download.kde.org/stable/frameworks/%{_tar_path}/%{rname}-%{version}.tar.xz
Source1:        baselibs.conf
BuildRequires:  extra-cmake-modules >= %{_tar_path}
BuildRequires:  kf5-filesystem
BuildRequires:  ki18n-devel >= %{_tar_path}
BuildRequires:  kio-devel >= %{_tar_path}
BuildRequires:  cmake(Qt5Test) >= 5.5.0
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Library containing simple XML-RPC Client support.

%package -n %lname
Summary:        Library containing simple XML-RPC Client support
Group:          Development/Libraries/KDE
%if %{with lang}
Recommends:     %lname-lang = %{version}
%endif

%description  -n %lname
Library containing simple XML-RPC Client support.

%package devel
Summary:        Library containing simple XML-RPC Client support: Build Environment
Group:          Development/Libraries/KDE
Requires:       %lname = %{version}
Requires:       kio-devel >= %{_tar_path}

%description devel
Library containing simple XML-RPC Client support. Development files.

%lang_package -n %lname
%prep
%setup -q -n %{rname}-%{version}

%build
  %cmake_kf5 -d build -- -DBUILD_TESTING=ON
  %make_jobs

%install
  %kf5_makeinstall -C build

%if %{with lang}
%find_lang libkxmlrpcclient5 %{name}.lang
%endif

%post -n %lname -p /sbin/ldconfig

%postun -n %lname -p /sbin/ldconfig

%if %{with lang}
%files -n %lname-lang -f %{name}.lang
%defattr(-,root,root)
%endif

%files -n %lname
%defattr(-,root,root)
%doc COPYING*
%{_kf5_libdir}/libKF5XmlRpcClient.so.*

%files devel
%defattr(-,root,root)
%doc COPYING*
%{_kf5_libdir}/cmake/KF5XmlRpcClient/
%{_kf5_libdir}/libKF5XmlRpcClient.so
%{_kf5_includedir}/KXmlRpcClient/
%{_kf5_includedir}/kxmlrpcclient_version.h
%{_kf5_mkspecsdir}/qt_KXmlRpcClient.pri

%changelog
openSUSE Build Service is sponsored by