File libkomparediff2.spec of Package libkomparediff2

#
# spec file for package libkomparediff2
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright 2009 Buschmann <buschmann23@opensuse.org>
#
# 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 soname 4

Name:           libkomparediff2
BuildRequires:  libkde4-devel
Summary:        A library to compare files and strings
License:        (GPL-2.0+ and LGPL-2.0+) and BSD-2-Clause
Group:          Development/Libraries/KDE
Version:        14.12.3
Release:        0
Url:            http://www.kde.org
Source0:        %{name}-%{version}.tar.xz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
A new library to compare files and strings, used in Kompare and KDevelop

%package devel
Summary:        Development package for libkomparediff2
Group:          Development/Libraries/KDE
Requires:       %{name}-%{soname} = %{version}

%description devel
Development package for libkomparediff2

%package %{soname}
Summary:        A library to compare files and strings
Group:          Development/Libraries/KDE

%description %{soname}
A new library to compare files and strings, used in Kompare and KDevelop

%prep 
%setup -qn %{name}-%{version}

%build
  %cmake_kde4 -d build
  %make_jobs

%install
  cd build
  %kde4_makeinstall
  cd ..
  %kde_post_install

%clean
rm -rf $RPM_BUILD_ROOT

%post %{soname} 
/sbin/ldconfig

%postun %{soname}
/sbin/ldconfig

%files %{soname}
%defattr(-,root,root)
%doc COPYING*
%{_kde4_libdir}/libkomparediff2.so.*

%files devel
%defattr(-,root,root)
%{_kde4_includedir}/libkomparediff2/
%{_kde4_libdir}/cmake/libkomparediff2/
%{_kde4_libdir}/libkomparediff2.so

%changelog
openSUSE Build Service is sponsored by