File kasync.spec of Package kasync

Name:           kasync
Version:        4.99.0
Release:	    1%{?dist}
Summary:        K kasync

Group:          Applications/Desktop
License:        LGPL-2.1+
URL:            https://docs.kolab.org/about/kasync
Source0:        %{name}-%{version}.tar.xz

BuildRequires:  cmake
BuildRequires:  extra-cmake-modules
BuildRequires:  gcc-c++
BuildRequires:  fdupes
BuildRequires:  kcoreaddons-devel
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Test)


%description
A k async bla B=BL bl more bla bla bla  

%package devel
Summary:        Development headers for kasync
Group:          Development/Libraries/KDE
Requires:       libKAsync0 = %{version}

%description devel
Development headers for k async

%package -n libKAsync0
Summary:        K async 
Group:          Development/Libraries/KDE

%description  -n libKAsync0
This package contains additional libraries for k async

%prep
%setup -q


%build

  %cmake_kf5 -d build -- -DWITH_KJOB=OFF -DENABLE_TESTING=OFF
  %make_jobs


%install
  %kf5_makeinstall -C build
  %fdupes -s %{buildroot}



%post -n libKAsync0 -p /sbin/ldconfig

%postun -n libKAsync0 -p /sbin/ldconfig

%files -n libKAsync0
%defattr(-,root,root)
%{_kf5_libdir}/libKAsync.so.*

%files devel
%defattr(-,root,root,-)
%{_includedir}/KAsync
%{_includedir}/kasync_version.h
%{_kf5_libdir}/cmake/KAsync/
%{_kf5_libdir}/libKAsync.so
%{_kf5_mkspecsdir}/qt_KAsync.pri

%changelog