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}
|
||||
%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
|
||||
%global pkgconf_libdirs %{_libdir}/pkgconfig:%{_datadir}/pkgconfig
|
||||
|
||||
Name: pkgconf
|
||||
Version: 1.7.3
|
||||
Release: 6%{?dist}
|
||||
Release: 7%{?dist}
|
||||
Summary: Package compiler and linker metadata toolkit
|
||||
|
||||
License: ISC
|
||||
@ -37,9 +44,11 @@ BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
BuildRequires: libtool
|
||||
|
||||
%if %{with tests}
|
||||
# For unit tests
|
||||
BuildRequires: kyua
|
||||
BuildRequires: atf-tests
|
||||
%endif
|
||||
|
||||
# pkgconf uses libpkgconf internally
|
||||
Requires: lib%{name}%{?_isa} = %{version}-%{release}
|
||||
@ -117,7 +126,9 @@ autoreconf -fiv
|
||||
|
||||
|
||||
%check
|
||||
%if %{with tests}
|
||||
make check
|
||||
%endif
|
||||
|
||||
|
||||
%install
|
||||
@ -202,6 +213,9 @@ rm -rf %{buildroot}%{_datadir}/aclocal
|
||||
%endif
|
||||
|
||||
%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
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user