From 179e9f6f8df24d0fbf8ebeb3fad1bde75fd82ba1 Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Tue, 20 Sep 2016 14:52:55 -0500 Subject: [PATCH] 5.26.0-2 - enable gpgme support (#1377814) - %check: enable tests --- kf5-kwallet.spec | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/kf5-kwallet.spec b/kf5-kwallet.spec index 3cd4e63..b6aa57e 100644 --- a/kf5-kwallet.spec +++ b/kf5-kwallet.spec @@ -1,8 +1,15 @@ %global framework kwallet +# uncomment to enable bootstrap mode +#global bootstrap 1 + +%if !0%{?bootstrap} +%global tests 1 +%endif + Name: kf5-%{framework} Version: 5.26.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: KDE Frameworks 5 Tier 3 solution for password management License: LGPLv2+ @@ -38,6 +45,9 @@ BuildRequires: kf5-rpm-macros >= %{version} BuildRequires: libgcrypt-devel BuildRequires: qt5-qtbase-devel BuildRequires: kf5-kconfigwidgets-devel >= %{version} +# gpgme suppot +BuildRequires: kf5-gpgmepp-devel +BuildRequires: gpgme-devel Obsoletes: kf5-kwallet-runtime < 5.8.0-2 Provides: kf5-kwallet-runtime = %{version}-%{release} @@ -72,7 +82,8 @@ developing applications that use %{name}. %build mkdir %{_target_platform} pushd %{_target_platform} -%{cmake_kf5} .. +%{cmake_kf5} .. \ + -DBUILD_TESTING:BOOL=%{?tests:ON}%{!?tests:OFF} popd make %{?_smp_mflags} -C %{_target_platform} @@ -83,6 +94,13 @@ make install/fast DESTDIR=%{buildroot} -C %{_target_platform} %find_lang %{name} --with-qt --all-name +%check +%if 0%{?tests} +export CTEST_OUTPUT_ON_FAILURE=1 +make test ARGS="--output-on-failure --timeout 30" -C %{_target_platform} ||: +%endif + + %files -f %{name}.lang %doc README.md %license COPYING.LIB @@ -112,6 +130,10 @@ make install/fast DESTDIR=%{buildroot} -C %{_target_platform} %changelog +* Tue Sep 20 2016 Rex Dieter - 5.26.0-2 +- enable gpgme support (#1377814) +- %%check: enable tests + * Wed Sep 07 2016 Daniel Vrátil - 5.26.0-1 - KDE Frameworks 5.26.0