From c053c8b9ee4ecf4d81806f4b30467ae7a4ef7850 Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Jan 30 2017 18:35:47 +0000 Subject: import --- diff --git a/.gitignore b/.gitignore index e69de29..efe639a 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/grantlee-editor-16.12.1.tar.xz diff --git a/grantlee-editor.spec b/grantlee-editor.spec new file mode 100644 index 0000000..db6462e --- /dev/null +++ b/grantlee-editor.spec @@ -0,0 +1,141 @@ + +# uncomment to enable bootstrap mode +%global bootstrap 1 + +%if !0%{?bootstrap} +%global tests 1 +%endif + +Name: grantlee-editor +Summary: KMail Theme Editor +Version: 16.12.1 +Release: 2%{?dist} + +# code (generally) GPLv2, docs GFDL +License: GPLv2 and GFDL +URL: https://cgit.kde.org/%{name}.git + +%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: boost-devel +BuildRequires: desktop-file-utils +BuildRequires: gettext +#BuildRequires: libappstream-glib +BuildRequires: perl-generators + +BuildRequires: cmake(Qt5Widgets) +BuildRequires: cmake(Qt5WebEngine) +BuildRequires: cmake(Qt5WebEngineWidgets) + +# kf5 +BuildRequires: extra-cmake-modules +BuildRequires: kf5-rpm-macros +BuildRequires: cmake(KF5Archive) +BuildRequires: cmake(KF5Crash) +BuildRequires: cmake(KF5DBusAddons) +BuildRequires: cmake(KF5DocTools) +BuildRequires: cmake(KF5NewStuff) +BuildRequires: cmake(KF5SyntaxHighlighting) +BuildRequires: cmake(KF5TextEditor) +BuildRequires: cmake(KF5Wallet) +BuildRequires: cmake(KF5XmlGui) + +# kde-apps +%global majmin_ver %(echo %{version} | cut -d. -f1,2) +BuildRequires: kf5-akonadi-mime-devel >= %{majmin_ver} +BuildRequires: kf5-grantleetheme-devel >= %{majmin_ver} +BuildRequires: kf5-kpimtextedit-devel >= %{majmin_ver} +BuildRequires: kf5-libkdepim-devel >= %{majmin_ver} +BuildRequires: kf5-libkleo-devel >= %{majmin_ver} +BuildRequires: kf5-messagelib-devel >= %{majmin_ver} +BuildRequires: kf5-pimcommon-devel >= %{majmin_ver} +BuildRequires: kdepim-apps-libs-devel >= %{majmin_ver} + +%if 0%{?tests} +BuildRequires: dbus-x11 +BuildRequires: xorg-x11-server-Xvfb +%endif + +Requires: %{name}-libs%{?_isa} = %{version}-%{release} + +%description +%{summary}. + +%package libs +Summary: Runtime libraries for %{name} +Requires: %{name} = %{version}-%{release} +%description libs +%{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} + +## unpackaged files +rm -fv %{buildroot}%{_kf5_libdir}/libgrantleethemeeditor.so + + +%check +desktop-file-validate %{buildroot}%{_kf5_datadir}/applications/org.kde.contactprintthemeeditor.desktop +desktop-file-validate %{buildroot}%{_kf5_datadir}/applications/org.kde.contactthemeeditor.desktop +desktop-file-validate %{buildroot}%{_kf5_datadir}/applications/org.kde.headerthemeeditor.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 + + +%files +%license COPYING* +%{_kf5_sysconfdir}/xdg/grantleeditor.* +%{_kf5_bindir}/contactprintthemeeditor +%{_kf5_bindir}/contactthemeeditor +%{_kf5_bindir}/headerthemeeditor +%{_kf5_datadir}/config.kcfg/grantleethemeeditor.kcfg +%{_kf5_datadir}/applications/org.kde.contactprintthemeeditor.desktop +%{_kf5_datadir}/applications/org.kde.contactthemeeditor.desktop +%{_kf5_datadir}/applications/org.kde.headerthemeeditor.desktop +%{_kf5_docdir}/HTML/en/contactthemeeditor/ +%{_kf5_docdir}/HTML/en/headerthemeeditor/ + +%post libs -p /sbin/ldconfig +%postun libs -p /sbin/ldconfig + +%files libs +%{_kf5_libdir}/libgrantleethemeeditor.so.5* + + +%changelog +* Mon Jan 30 2017 Rex Dieter - 16.12.1-2 +- BR: kdepim-apps-libs-devel (KF5KaddressbookGrantlee) +- -libs: ldconfig scriptlets + +* Mon Jan 16 2017 Rex Dieter - 16.12.1-1 +- grantlee-editor-16.12.1 + diff --git a/sources b/sources index e69de29..a208a27 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (grantlee-editor-16.12.1.tar.xz) = d4741727a76529eb738456c955f5017247f3bbd74999c77aa019c3e6966ac1124ee91af9c87549972d7dbeed17bea358bb615c85c09173952c918f73db9cc342