Add tests sub package
This commit is contained in:
parent
1c211d8ece
commit
f48ec7df04
@ -3,7 +3,7 @@
|
||||
|
||||
Name: ibus-hangul
|
||||
Version: 1.5.4
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
Summary: The Hangul engine for IBus input platform
|
||||
License: GPLv2+
|
||||
URL: https://github.com/libhangul/ibus-hangul
|
||||
@ -32,6 +32,14 @@ Requires: python3
|
||||
The Hangul engine for IBus platform. It provides Korean input method from
|
||||
libhangul.
|
||||
|
||||
%package tests
|
||||
Summary: Tests for the %{name} package
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description tests
|
||||
The %{name}-tests package contains tests that can be used to verify
|
||||
the functionality of the installed %{name} package.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch1 -p1 -b .setup-abspath
|
||||
@ -42,6 +50,7 @@ libhangul.
|
||||
--disable-static \
|
||||
--with-python=python3 \
|
||||
%{?_with_hotkeys} \
|
||||
--enable-installed-tests \
|
||||
%{nil}
|
||||
|
||||
make %{?_smp_mflags}
|
||||
@ -58,6 +67,11 @@ desktop-file-validate ${RPM_BUILD_ROOT}%{_datadir}/applications/ibus-setup-hangu
|
||||
|
||||
%find_lang %{name}
|
||||
|
||||
%check
|
||||
make check \
|
||||
DISABLE_GUI_TESTS="ibus-hangul" \
|
||||
VERBOSE=1
|
||||
|
||||
%post
|
||||
[ -x %{_bindir}/ibus ] && \
|
||||
%{_bindir}/ibus write-cache --system &>/dev/null || :
|
||||
@ -77,7 +91,16 @@ desktop-file-validate ${RPM_BUILD_ROOT}%{_datadir}/applications/ibus-setup-hangu
|
||||
%{_datadir}/applications/ibus-setup-hangul.desktop
|
||||
%{_datadir}/icons/hicolor/*/apps/*
|
||||
|
||||
%files tests
|
||||
%dir %{_libexecdir}/installed-tests
|
||||
%{_libexecdir}/installed-tests/ibus-hangul
|
||||
%dir %{_datadir}/installed-tests
|
||||
%{_datadir}/installed-tests/ibus-hangul
|
||||
|
||||
%changelog
|
||||
* Thu Sep 10 2020 Peng Wu <pwu@redhat.com> - 1.5.4-3
|
||||
- Add tests sub package
|
||||
|
||||
* Wed Sep 2 2020 Peng Wu <pwu@redhat.com> - 1.5.4-2
|
||||
- Clean up the spec file
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user