File kte-collaborative.spec of Package kte-collaborative

#
# spec file for package kte-collaborative
#
# Copyright (c) 2013 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/
#


#
%define soversion 0
Name:           kte-collaborative
Version:        0.6.0
Release:        0
Summary:        Collaborative editing in KTextEditor
License:        GPL-2.0+
Group:          System/GUI/KDE
Url:            http://projects.kde.org/kte-collaborative
Source:         http://download.kde.org/stable/%{name}/%{version}/src/%{name}-v%{version}.tar.xz
BuildRequires:  infinoted
BuildRequires:  ktp-common-internals-devel >= 0.6.80
BuildRequires:  libkde4-devel
BuildRequires:  libqinfinity-devel
BuildRequires:  telepathy-qt4-devel >= 0.8.9
BuildRequires:  pkgconfig(libgsasl)
BuildRequires:  pkgconfig(libinfinity-0.6)
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires

%description
A plugin for KTextEditor which allows to edit text documents collaboratively.
KTP plugin package

%package devel
Summary:        Collaborative editing in KTextEditor (development package)
Group:          Development/Libraries/KDE
Requires:       ktp-common-internals-devel >= 0.6.80
Requires:       lib%{name}%{soversion} = %{version}
Requires:       libkde4-devel
Requires:       libqinfinity-devel

%description devel
A plugin for KTextEditor which allows to edit text documents collaboratively.
Development package

%package -n lib%{name}%{soversion}
Summary:        Collaborative editing in KTextEditor
Group:          System/GUI/KDE

%description -n lib%{name}%{soversion}
A plugin for KTextEditor which allows to edit text documents collaboratively.
Library package

%lang_package
%prep
%setup -q -n %{name}-v%{version}

%build
  %cmake_kde4 -d build
  %make_jobs

%install
  %kde4_makeinstall -C build
  %kde_post_install
  %find_lang %{name} %{name}.lang

%post -n lib%{name}%{soversion} -p /sbin/ldconfig

%postun -n lib%{name}%{soversion} -p /sbin/ldconfig

%files lang -f %{name}.lang

%files
%defattr(-,root,root)
%doc COPYING AUTHORS README
%{_kde4_modulesdir}/*.so
%{_kde4_libexecdir}/*
%{_kde4_servicesdir}/*.protocol
%{_kde4_servicesdir}/*.desktop
%dir %{_kde4_datadir}/telepathy/clients
%dir %{_kde4_datadir}/telepathy
%{_kde4_datadir}/telepathy/clients/*.client
%{_kde4_datadir}/dbus-1/services/*.service
%dir %{_kde4_appsdir}/infinotenotifier
%{_kde4_appsdir}/infinotenotifier/infinotenotifier.notifyrc
%{_kde4_appsdir}/ktecollaborative/

%files -n lib%{name}%{soversion}
%defattr(-,root,root)
%doc COPYING AUTHORS README
%{_kde4_libdir}/libinftube.so.*
%{_kde4_libdir}/libktecollaborativecommon.so.*

%files devel
%defattr(-,root,root)
%doc COPYING AUTHORS README
%{_kde4_libdir}/libinftube.so
%{_kde4_libdir}/libktecollaborativecommon.so

%changelog