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