File libkvkontakte.spec of Package libkvkontakte
#
# spec file for package libkvkontakte
#
# Copyright (c) 2015 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 so_ver 1
Name: libkvkontakte
Version: 4.12.0
Release: 0
Summary: Library for asynchronous interaction with vkontakte.ru social network
License: GPL-2.0+
Group: System/Libraries
Url: https://projects.kde.org/projects/extragear/libs/libkvkontakte/
Source0: http://download.kde.org/stable/libkvkontakte/%{version}/src/%{name}-%{version}.tar.xz
# PATCH-FIX-UPSTREAM cmake_fix.patch -- Fix cmake error about LINK_INTERFACE_LIBRARIES properties and policy CMP0022
Patch0: cmake_fix.patch
BuildRequires: libkde4-devel
BuildRequires: libqjson-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
libkvkontakte is a KDE C++ library for asynchronous interaction with
vkontakte.ru social network via its open API.
%package devel
Summary: Development file for libkvkontakte
Group: Development/Libraries/C and C++
Requires: libkvkontakte%{so_ver} = %{version}
%description devel
This package contains development file for libkvkontakte.
%package lang
Summary: Languages for package %{name}
Group: System/Localization
Requires: libkvkontakte%{so_ver} = %{version}
Provides: %{name}-lang-all = %{version}
Supplements: packageand(bundle-lang-other:%{name})
BuildArch: noarch
%description lang
Provides translations to the package %{name}
%package -n libkvkontakte%{so_ver}
Summary: Library for asynchronous interaction with vkontakte.ru social network
Group: System/Libraries
Recommends: %{name}-lang
%description -n libkvkontakte%{so_ver}
libkvkontakte is a KDE C++ library for asynchronous interaction with
vkontakte.ru social network via its open API.
%prep
%setup -q
%patch0 -p1
%build
%cmake_kde4 -d build
%make_jobs
%install
%kde4_makeinstall -C build
%find_lang %{name}
%post -n libkvkontakte%{so_ver} -p /sbin/ldconfig
%postun -n libkvkontakte%{so_ver} -p /sbin/ldconfig
%files devel
%defattr(-,root,root,-)
%doc COPYING* NEWS README
%{_kde4_includedir}/libkvkontakte/
%{_kde4_libdir}/cmake/LibKVkontakte/
%{_kde4_libdir}/libkvkontakte.so
%files -n libkvkontakte%{so_ver}
%defattr(-,root,root,-)
%doc COPYING COPYING.LGPL-2 COPYING.LIB
%{_kde4_libdir}/libkvkontakte.so.*
%files lang -f %{name}.lang
%changelog