Disable installed tests on RHEL

We don't have dogtail there.
This commit is contained in:
Kalev Lember 2021-02-19 11:39:12 +01:00
parent 6e95148114
commit 04aa48023e

View File

@ -7,7 +7,7 @@
Name: eog
Version: 40~beta
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Eye of GNOME image viewer
# The GFDL has an "or later version" clause embedded inside the license.
@ -62,6 +62,7 @@ The Eye of GNOME image viewer (eog) is the official image viewer for the
GNOME desktop. This package allows you to develop plugins that add new
functionality to eog.
%if !0%{?rhel}
%package tests
Summary: Tests for the %{name} package
Requires: %{name}%{?_isa} = %{version}-%{release}
@ -71,12 +72,19 @@ Requires: python3-dogtail
%description tests
The %{name}-tests package contains tests that can be used to verify
the functionality of the installed %{name} package.
%endif
%prep
%autosetup -p1 -n %{name}-%{tarball_version}
%build
%meson -Dgtk_doc=true -Dinstalled_tests=true \
%meson \
-Dgtk_doc=true \
%if 0%{?rhel}
-Dinstalled_tests=false \
%else
-Dinstalled_tests=true \
%endif
%if ! 0%{?flatpak}
-Dlibportal=false
%endif
@ -109,12 +117,17 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/org.gnome.eog.deskto
%{_libdir}/pkgconfig/eog.pc
%{_datadir}/gtk-doc/
%if !0%{?rhel}
%files tests
%dir %{_libexecdir}/eog
%{_libexecdir}/eog/installed-tests/
%{_datadir}/installed-tests/
%endif
%changelog
* Fri Feb 19 2021 Kalev Lember <klember@redhat.com> - 40~beta-2
- Disable installed tests on RHEL
* Thu Feb 18 2021 Kalev Lember <klember@redhat.com> - 40~beta-1
- Update to 40.beta