From 14c115863012c7119b40184e908f2ac684c9a359 Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Feb 02 2017 18:02:13 +0000 Subject: import --- diff --git a/.gitignore b/.gitignore index e69de29..22c97c1 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/akonadi-calendar-tools-16.12.1.tar.xz diff --git a/akonadi-calendar-tools.spec b/akonadi-calendar-tools.spec new file mode 100644 index 0000000..262807f --- /dev/null +++ b/akonadi-calendar-tools.spec @@ -0,0 +1,116 @@ + +# uncomment to enable bootstrap mode +%global bootstrap 1 + +%if !0%{?bootstrap} +%global tests 1 +%endif + +Name: akonadi-calendar-tools +Summary: Akonadi Calendar Tools +Version: 16.12.1 +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(KF5DocTools) + +%global majmin_ver %(echo %{version} | cut -d. -f1,2) +BuildRequires: kf5-akonadi-calendar-devel >= %{majmin_ver} +BuildRequires: kf5-akonadi-contacts-devel >= %{majmin_ver} +BuildRequires: kf5-akonadi-server-devel >= %{majmin_ver} +BuildRequires: kf5-calendarsupport-devel >= %{majmin_ver} +BuildRequires: kf5-kcalendarcore-devel >= %{majmin_ver} +BuildRequires: kf5-kcalendarutils-devel >= %{majmin_ver} +BuildRequires: kf5-kcontacts-devel >= %{majmin_ver} +BuildRequires: kf5-libkdepim-devel >= %{majmin_ver} + +%if 0%{?tests} +BuildRequires: dbus-x11 +BuildRequires: xorg-x11-server-Xvfb +%endif + +Provides: konsolekalendar = %{version}-%{release} + +%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} + + +%check +desktop-file-validate %{buildroot}%{_kf5_datadir}/applications/konsolekalendar.desktop +#appstream-util validate-relax --nonet %{buildroot}%{_kf5_datadir}/appdata/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 + + +%post +touch --no-create %{_kf5_datadir}/icons/hicolor &> /dev/null ||: + +%posttrans +gtk-update-icon-cache %{_kf5_datadir}/icons/hicolor &> /dev/null ||: + +%postun +if [ $1 -eq 0 ] ; then +touch --no-create %{_kf5_datadir}/icons/hicolor &> /dev/null ||: +gtk-update-icon-cache %{_kf5_datadir}/icons/hicolor &> /dev/null ||: +fi + +%files +%license COPYING* +%{_kf5_sysconfdir}/xdg/console.* +%{_kf5_bindir}/calendarjanitor +%{_kf5_bindir}/konsolekalendar +%{_kf5_datadir}/applications/konsolekalendar.desktop +%{_kf5_datadir}/icons/hicolor/*/apps/konsolekalendar.* +# typo ? +%{_kf5_docdir}/HTML/en/konsolecalendar + + +%changelog +* Tue Jan 31 2017 Rex Dieter - 16.12.1-1 +- first try + + diff --git a/sources b/sources index e69de29..d2e540a 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (akonadi-calendar-tools-16.12.1.tar.xz) = 726ef16ec610039f5c15a2a2acda120268fce033bf17f3d2609b7ac82694f9e5df12653d6669c304c4dab325fd2af53db95ddcfd6e1169edbf5a73737e8917a3