File sink.spec of Package sink

Name:           sink
Version:        0.1
Release:	    1%{?dist}
Summary:        sink

Group:          Applications/Desktop
License:        LGPL-2.1+
URL:            https://docs.kolab.org/about/sink
Source0:        sink-%{version}.tar.xz
Source1:        sink-rpmlintrc
Patch0:         log.diff
Patch1:         non.diff
BuildRequires:  cmake >= 2.8.12
BuildRequires:  extra-cmake-modules
BuildRequires:  flatbuffers-devel >= 1.1
BuildRequires:  gcc-c++
BuildRequires:  kasync-devel
BuildRequires:  kcoreaddons-devel
BuildRequires:  kmime-devel
BuildRequires:  kimap2-devel
BuildRequires:  libcurl-devel
BuildRequires:  libgit2-devel
BuildRequires:  lmdb-devel
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Test)
BuildRequires:  pkgconfig(Qt5Concurrent)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(Qt5Network)
BuildRequires:  readline-devel
BuildRequires:  kio-devel
BuildRequires:  kcontacts-devel 
BuildRequires:  kasync-devel 
%description
sink

%package devel
Summary:        Development headers for sink
Group:          Development/Libraries/KDE
Requires:       %{name}

%description devel
Development headers for sink

%prep
%setup -q
%patch0 -p1
%patch1 -p1
sed -i \
    -e '/inspectiontest/d' \
    -e '/maildirresourcetest/d' \
    -e '/querytest/d' \
    tests/CMakeLists.txt

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

%install
  %kf5_makeinstall -C build 
  
#rm -rf %{buildroot}%{_prefix}/mkspecs/modules/qt_KMime.pri
#rm %{buildroot}%{_prefix}/bin/resetmailbox.sh
rm %{buildroot}%{_prefix}/lib64/libmaildir.a

%files
%doc
%{_kf5_bindir}/hawd
%{_kf5_bindir}/sink_smtp_test
%{_kf5_bindir}/*.sh
%{_kf5_bindir}/sink_synchronizer
%{_kf5_bindir}/sinksh
%{_kf5_libdir}/liblibhawd.so
%{_kf5_libdir}/libsink.so.*
%{_kf5_libdir}/qt5/plugins/sink/

%files devel
%defattr(-,root,root,-)
%{_includedir}/sink/
%{_kf5_libdir}/cmake/Sink
%{_kf5_libdir}/libsink.so

%changelog