- enable gpgme support (#1377814)
- %check: enable tests
epel8
Rex Dieter 8 years ago
parent 2c89dfade9
commit 179e9f6f8d

@ -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 <rdieter@fedoraproject.org> - 5.26.0-2
- enable gpgme support (#1377814)
- %%check: enable tests
* Wed Sep 07 2016 Daniel Vrátil <dvratil@fedoraproject.org> - 5.26.0-1
- KDE Frameworks 5.26.0

Loading…
Cancel
Save