# uncomment to enable bootstrap mode %global bootstrap 1 %if !0%{?bootstrap} %global tests 1 %endif Name: mbox-importer Summary: MBox Importer Version: 17.12.2 Release: 1%{?dist} # code (generally) GPLv2, docs GFDL License: GPLv2 and GFDL URL: https://userbase.kde.org/Akonadi/ %global revision %(echo %{version} | cut -d. -f3) %if %{revision} >= 50 %global stable unstable %else %global stable stable %endif Source0: http://download.kde.org/%{stable}/applications/%{version}/src/%{name}-%{version}.tar.xz # handled by qt5-srpm-macros, which defines %%qt5_qtwebengine_arches %{?qt5_qtwebengine_arches:ExclusiveArch: %{qt5_qtwebengine_arches}} BuildRequires: desktop-file-utils BuildRequires: gettext #BuildRequires: libappstream-glib BuildRequires: cmake(Qt5Widgets) BuildRequires: extra-cmake-modules BuildRequires: kf5-rpm-macros BuildRequires: cmake(KF5Config) BuildRequires: cmake(KF5Crash) BuildRequires: cmake(KF5KIO) BuildRequires: cmake(KF5Service) %global majmin_ver %(echo %{version} | cut -d. -f1,2) BuildRequires: kf5-akonadi-server-devel >= %{majmin_ver} BuildRequires: kf5-mailcommon-devel >= %{majmin_ver} BuildRequires: kf5-mailimporter-devel >= %{majmin_ver} %if 0%{?tests} BuildRequires: dbus-x11 BuildRequires: xorg-x11-server-Xvfb %endif # when split out Conflicts: kmail < 16.12 %description %{summary}. %prep %autosetup -p1 %build mkdir %{_target_platform} pushd %{_target_platform} %{cmake_kf5} .. \ -DBUILD_TESTING:BOOL=%{?tests:ON}%{!?tests:OFF} popd make %{?_smp_mflags} -C %{_target_platform} %install make install/fast DESTDIR=%{buildroot} -C %{_target_platform} %find_lang %{name} --all-name --with-html %check desktop-file-validate %{buildroot}%{_kf5_datadir}/applications/org.kde.%{name}.desktop ||: #appstream-util validate-relax --nonet %{buildroot}%{_kf5_metainfodir}/org.kde.%{name}.appdata.xml %if 0%{?tests} export CTEST_OUTPUT_ON_FAILURE=1 xvfb-run -a \ dbus-launch --exit-with-session \ make test ARGS="--output-on-failure --timeout 20" -C %{_target_platform} ||: %endif %posttrans update-desktop-database -q &> /dev/null ||: %postun if [ $1 -eq 0 ] ; then update-desktop-database -q &> /dev/null ||: fi %files -f %{name}.lang %license COPYING* %{_kf5_bindir}/mboximporter %{_kf5_datadir}/applications/org.kde.mboximporter.desktop %changelog * Tue Feb 06 2018 Rex Dieter - 17.12.2-1 - 17.12.2 * Thu Jan 11 2018 Rex Dieter - 17.12.1-1 - 17.12.1 * Tue Dec 12 2017 Rex Dieter - 17.12.0-1 - 17.12.0 * Wed Dec 06 2017 Rex Dieter - 17.11.90-1 - 17.11.90 * Wed Nov 22 2017 Rex Dieter - 17.11.80-1 - 17.11.80 * Wed Nov 08 2017 Rex Dieter - 17.08.3-1 - 17.08.3 * Mon Sep 25 2017 Rex Dieter - 17.08.1-1 - 17.08.1 * Thu Aug 03 2017 Rex Dieter - 17.04.3-2 - rebuild * Fri Jul 28 2017 Rex Dieter - 17.04.3-1 - 17.04.3 * Wed Jul 26 2017 Fedora Release Engineering - 17.04.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Thu Jun 15 2017 Rex Dieter - 17.04.2-1 - 17.04.2 * Mon May 15 2017 Rex Dieter - 17.04.1-1 - 17.04.1 * Thu Mar 09 2017 Rex Dieter - 16.12.3-1 - 16.12.3 * Thu Feb 09 2017 Rex Dieter - 16.12.2-1 - 16.12.2 * Tue Feb 07 2017 Rex Dieter - 16.12.1-2 - Conflicts: kmail < 16.12 * Tue Jan 31 2017 Rex Dieter - 16.12.1-1 - first try