File kdav2.spec of Package kdav2
#
# spec file for package kdav2
#
# Copyright (c) 2019 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 https://bugs.opensuse.org/
#
Name: kdav2
Version: 0.4.0
Release: 0
Summary: A DAV protocol implementation with KJobs
License: GPL-2.0-only
URL: https://projects.kde.org/projects/kde/pim/kdav2
#Source0: http://download.kde.org/unstable/kdav2/%%{version}/src/kdav2-%%{version}.tar.xz
Source0: https://invent.kde.org/pim/kdav2/-/archive/v%{version}/kdav2-v%{version}.tar.gz
Group: System/GUI/KDE
BuildRequires: boost-devel
BuildRequires: cmake >= 2.8.12
BuildRequires: extra-cmake-modules
BuildRequires: fdupes
BuildRequires: kcoreaddons-devel
BuildRequires: libqt5-qtbase-devel
BuildRequires: pkgconfig
BuildRequires: python
BuildRequires: pkgconfig(Qt5XmlPatterns)
%description
%{summary}.
Package spec for kdav2
%package -n libKPimKDAV2-5
Summary: C++ library for controlling asynchronous tasks
Provides: %{name} = %{version}
%description -n libKPimKDAV2-5
%{summary}.
System libraries for kdav2
%package devel
Summary: Development headers for kdav2
Requires: libKPimKDAV2-5 = %{version}
%description devel
%{summary}.
Development headers for kdav2
%prep
%setup -q -n %{name}-v%{version}
%build
%cmake
make %{?_smp_mflags}
%install
%cmake_install
%fdupes %{_libdir}/cmake/KPimKDAV2
%post -n libKPimKDAV2-5 -p /sbin/ldconfig
%postun -n libKPimKDAV2-5 -p /sbin/ldconfig
%files -n libKPimKDAV2-5
%doc
%{_libdir}/*.so.*
%files devel
%config(noreplace) %{_sysconfdir}/xdg/kdav2.categories
%{_includedir}/KPim/
%{_includedir}/KPim/kdav2/
%{_includedir}/KPim/KDAV2/
%{_includedir}/KPim/kpimkdav2_version.h
%{_libdir}/cmake/KPimKDAV2/
%{_libdir}/*.so
%{_libdir}/cmake/KPimKDAV2/
%{_libdir}/qt5/mkspecs/modules/qt_kdav2.pri
%changelog
https://invent.kde.org/pim/kdav2/-/archive/v0.4.0/kdav2-v0.4.0.tar.gz