LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File libkvkontakte.spec of Package libkvkontakte (Project KDE:Distro:Factory)

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

Name:           libkvkontakte
Version:        1.0.0
Release:        1
License:        GPL-2.0+
Summary:        Library for asynchronous interaction with vkontakte.ru social network
Url:            https://projects.kde.org/projects/extragear/libs/libkvkontakte/
Group:          System/Libraries
Source0:        %{name}-%{version}.tar.bz2
Source1:        COPYING
Source2:        COPYING.LGPL
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
License:        GPL-2.0+
Summary:        Development file for libkvkontakte
Group:          Development/Libraries/C and C++
Requires:       libkvkontakte1 = %{version}

%description devel
This package contains development file for libkvkontakte.

%package -n libkvkontakte1
License:        GPL-2.0+
Summary:        Library for asynchronous interaction with vkontakte.ru social network
Group:          System/Libraries

%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}

%build
%cmake_kde4 "-DLIB_INSTALL_DIR_SUFFIX=$_kde_libsuffix" -d build
%make_jobs

%install
cd build
%kde4_makeinstall
cd ..

install -pm 0644 %{S:1} %{S:2} .

%post -n libkvkontakte1 -p /sbin/ldconfig

%postun -n libkvkontakte1 -p /sbin/ldconfig

%files devel
%defattr(-,root,root,-)
%doc COPYING COPYING.LGPL
%doc BUGS-facebook TODO TODO-facebook
%{_kde4_includedir}/libkvkontakte/
%{_kde4_libdir}/cmake/LibKVkontakte/
%{_kde4_libdir}/libkvkontakte.so

%files -n libkvkontakte1
%defattr(-,root,root,-)
%{_kde4_libdir}/libkvkontakte.so.1*

%changelog