File kpmcore.spec of Package kpmcore
#
# spec file for package kpmcore
#
# 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/
#
Name: kpmcore
Version: 2.2.1
Release: 0
Summary: KDE Partition Manager core library
License: GPL-3.0
Group: Productivity/Office/Other
Url: https://projects.kde.org/projects/extragear/sysadmin/kpmcore
Source: http://download.kde.org/stable/%{name}/%{version}/src/%{name}-%{version}.tar.gz
Patch1: fix-build.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: extra-cmake-modules
BuildRequires: kconfig-devel
BuildRequires: ki18n-devel
BuildRequires: kiconthemes-devel
BuildRequires: kio-devel
BuildRequires: kservice-devel
BuildRequires: libatasmart-devel
BuildRequires: libblkid-devel
BuildRequires: parted-devel >= 3.2
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Widgets)
Requires: libkpmcore3 >= %{version}
%description
Library for managing partitions. Common code for KDE Partition Manager and other projects.
%package devel
Summary: Development package for KDE Partition Manager core library
Group: Development/Languages/C and C++
Requires: libkpmcore3 = %{version}
Requires: parted-devel >= 3.1
%description devel
Development package for KDE Partition Manager core library (KPMCore).
%package -n libkpmcore3
Summary: KDE Partition Manager core library
Group: System/Libraries
Requires: %{name} >= %{version}
Requires: libparted0
%description -n libkpmcore3
KDE Partition Manager core library.
%lang_package
%prep
%setup -q
#%patch1 -p1
%build
%cmake_kf5 -d build
%make_jobs
%install
%kf5_makeinstall -C build
%post -n libkpmcore3 -p /sbin/ldconfig
%postun -n libkpmcore3 -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc COPYING.GPL3
%{_kf5_servicetypesdir}/*desktop
%{_kf5_plugindir}/*.so
%{_kf5_servicesdir}/*desktop
%files -n libkpmcore3
%doc COPYING.GPL3
%defattr(-,root,root,-)
%{_libdir}/libkpmcore.so.*
%files devel
%defattr(-,root,root,-)
%{_libdir}/cmake/KPMcore/
%{_includedir}/kpmcore/
%{_libdir}/libkpmcore.so
%changelog