Conditionalize the unit tests, disable them on RHEL 9
This commit is contained in:
parent
b4c9b79025
commit
e71def1904
16
pkgconf.spec
16
pkgconf.spec
@ -12,12 +12,19 @@
|
|||||||
%global pkgconfig_evr 1:%{pkgconfig_verrel}
|
%global pkgconfig_evr 1:%{pkgconfig_verrel}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
# Tests are disabled on RHEL 9 because of the extensive dependencies
|
||||||
|
%if 0%{?rhel} >= 9
|
||||||
|
%bcond_with tests
|
||||||
|
%else
|
||||||
|
%bcond_without tests
|
||||||
|
%endif
|
||||||
|
|
||||||
# Search path for pc files for pkgconf
|
# Search path for pc files for pkgconf
|
||||||
%global pkgconf_libdirs %{_libdir}/pkgconfig:%{_datadir}/pkgconfig
|
%global pkgconf_libdirs %{_libdir}/pkgconfig:%{_datadir}/pkgconfig
|
||||||
|
|
||||||
Name: pkgconf
|
Name: pkgconf
|
||||||
Version: 1.7.3
|
Version: 1.7.3
|
||||||
Release: 6%{?dist}
|
Release: 7%{?dist}
|
||||||
Summary: Package compiler and linker metadata toolkit
|
Summary: Package compiler and linker metadata toolkit
|
||||||
|
|
||||||
License: ISC
|
License: ISC
|
||||||
@ -37,9 +44,11 @@ BuildRequires: autoconf
|
|||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
|
|
||||||
|
%if %{with tests}
|
||||||
# For unit tests
|
# For unit tests
|
||||||
BuildRequires: kyua
|
BuildRequires: kyua
|
||||||
BuildRequires: atf-tests
|
BuildRequires: atf-tests
|
||||||
|
%endif
|
||||||
|
|
||||||
# pkgconf uses libpkgconf internally
|
# pkgconf uses libpkgconf internally
|
||||||
Requires: lib%{name}%{?_isa} = %{version}-%{release}
|
Requires: lib%{name}%{?_isa} = %{version}-%{release}
|
||||||
@ -117,7 +126,9 @@ autoreconf -fiv
|
|||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
%if %{with tests}
|
||||||
make check
|
make check
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -202,6 +213,9 @@ rm -rf %{buildroot}%{_datadir}/aclocal
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Feb 22 2021 Tomas Popela <tpopela@redhat.com> - 1.7.3-7
|
||||||
|
- Conditionalize the unit tests, disable them on RHEL 9
|
||||||
|
|
||||||
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.3-6
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.3-6
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user