File libkdecoration2.spec of Package libkdecoration2
#
# spec file for package libkdecoration2
#
# Copyright (c) 2016 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 lname libkdecorations2-5
%define lname_private libkdecorations2private5
Name: libkdecoration2
Version: 5.7.3
Release: 0
BuildRequires: cmake >= 2.8.12
BuildRequires: extra-cmake-modules >= 0.0.11
BuildRequires: kf5-filesystem
BuildRequires: cmake(Qt5Core) >= 5.4.0
BuildRequires: cmake(Qt5Gui) >= 5.4.0
BuildRequires: cmake(Qt5Test) >= 5.4.0
Summary: KDE's window decorations library
License: GPL-2.0+
Group: System/GUI/KDE
Url: http://www.kde.org
Source: kdecoration-%{version}.tar.xz
Source1: baselibs.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Plugin based library to create window decorations.
%package devel
Summary: KDE's window decorations library (development package)
Group: Development/Libraries/C and C++
Requires: %{lname_private} = %{version}
Requires: %{lname} = %{version}
Requires: cmake(Qt5Gui) >= 5.4.0
Obsoletes: libkdecorations-devel
%description devel
Development files belonging to kdecoration,
plugin based library to create window decorations.
%package -n %{lname}
Summary: KDE's window decorations library
Group: System/GUI/KDE
Obsoletes: libkdecorations5
%description -n %{lname}
Plugin based library to create window decorations.
%package -n %{lname_private}
Summary: KDE's window decorations library
Group: System/GUI/KDE
%description -n %{lname_private}
Plugin based library to create window decorations.
%prep
%setup -q -n kdecoration-%{version}
%build
%cmake_kf5 -d build
%make_jobs
%install
%kf5_makeinstall -C build
%post -n %{lname} -p /sbin/ldconfig
%postun -n %{lname} -p /sbin/ldconfig
%post -n %{lname_private} -p /sbin/ldconfig
%postun -n %{lname_private} -p /sbin/ldconfig
%files -n %{lname}
%defattr(-,root,root)
%doc COPYING*
%{_kf5_libdir}/libkdecorations2.so.*
%files -n %{lname_private}
%defattr(-,root,root)
%doc COPYING*
%{_kf5_libdir}/libkdecorations2private.so.*
%files devel
%defattr(-,root,root)
%doc COPYING*
%{_kf5_libdir}/libkdecorations2.so
%{_kf5_libdir}/libkdecorations2private.so
%{_kf5_libdir}/cmake/KDecoration2/
%{_kf5_prefix}/include/KDecoration2/
%{_kf5_includedir}/
%changelog