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/
#
Name: libkvkontakte
Version: 4.11.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: %{name}-%{version}.tar.xz
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: libkvkontakte1 = %{version}
%description devel
This package contains development file for libkvkontakte.
%package lang
Summary: Languages for package %{name}
Group: System/Localization
Requires: libkvkontakte1 = %{version}
Provides: %{name}-lang-all = %{version}
Supplements: packageand(bundle-lang-other:%{name})
BuildArch: noarch
%description lang
Provides translations to the package %{name}
%package -n libkvkontakte1
Summary: Library for asynchronous interaction with vkontakte.ru social network
Group: System/Libraries
Recommends: %{name}-lang
%description -n libkvkontakte1
libkvkontakte is a KDE C++ library for asynchronous interaction with
vkontakte.ru social network via its open API.
%prep
%setup -q -n %{name}-%{version}
%build
%cmake_kde4 "-DLIB_INSTALL_DIR_SUFFIX=$_kde_libsuffix" -d build
%make_jobs
%install
cd build
%kde4_makeinstall
cd ..
%find_lang %{name}
%post -n libkvkontakte1 -p /sbin/ldconfig
%postun -n libkvkontakte1 -p /sbin/ldconfig
%files devel
%defattr(-,root,root,-)
%{_kde4_includedir}/libkvkontakte/
%{_kde4_libdir}/cmake/LibKVkontakte/
%{_kde4_libdir}/libkvkontakte.so
%files -n libkvkontakte1
%defattr(-,root,root,-)
%doc COPYING COPYING.LGPL-2
%{_kde4_libdir}/libkvkontakte.so.*
%files lang -f %{name}.lang
%changelog