Revert "Remove check bits completely"
This reverts commit 201597d182
.
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
parent
201597d182
commit
1160fe6de3
20
rpm.spec
20
rpm.spec
@ -2,6 +2,14 @@
|
|||||||
%global debug_package %{nil}
|
%global debug_package %{nil}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
# run internal testsuite?
|
||||||
|
# fakechroot is severely broken beyond fedora 33, disable...
|
||||||
|
#%if 0%{?fedora} > 33 || 0%{?rhel} > 8
|
||||||
|
%bcond_with check
|
||||||
|
#%else
|
||||||
|
#%bcond_without check
|
||||||
|
#%endif
|
||||||
|
|
||||||
# build against xz?
|
# build against xz?
|
||||||
%bcond_without xz
|
%bcond_without xz
|
||||||
# build with plugins?
|
# build with plugins?
|
||||||
@ -69,6 +77,11 @@ Requires: popt%{_isa} >= 1.10.2.1
|
|||||||
Requires: curl
|
Requires: curl
|
||||||
Obsoletes: python2-rpm < %{version}-%{release}
|
Obsoletes: python2-rpm < %{version}-%{release}
|
||||||
|
|
||||||
|
%if %{with check}
|
||||||
|
BuildRequires: fakechroot gnupg2
|
||||||
|
BuildRequires: debugedit >= 0.3
|
||||||
|
%endif
|
||||||
|
|
||||||
# XXX generally assumed to be installed but make it explicit as rpm
|
# XXX generally assumed to be installed but make it explicit as rpm
|
||||||
# is a bit special...
|
# is a bit special...
|
||||||
BuildRequires: redhat-rpm-config >= 94
|
BuildRequires: redhat-rpm-config >= 94
|
||||||
@ -413,6 +426,13 @@ rm -f $RPM_BUILD_ROOT/%{rpmhome}/{perldeps.pl,perl.*,pythond*}
|
|||||||
rm -f $RPM_BUILD_ROOT/%{_fileattrsdir}/{perl*,python*}
|
rm -f $RPM_BUILD_ROOT/%{_fileattrsdir}/{perl*,python*}
|
||||||
rm -rf $RPM_BUILD_ROOT/var/tmp
|
rm -rf $RPM_BUILD_ROOT/var/tmp
|
||||||
|
|
||||||
|
%if %{with check}
|
||||||
|
%check
|
||||||
|
make check TESTSUITEFLAGS=-j%{_smp_build_ncpus} || (cat tests/rpmtests.log; exit 1)
|
||||||
|
# rpm >= 4.16.0 testsuite leaves a read-only tree behind, clean it up
|
||||||
|
make clean
|
||||||
|
%endif
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
# Symlink all rpmdb files to the new location if we're still using /var/lib/rpm
|
# Symlink all rpmdb files to the new location if we're still using /var/lib/rpm
|
||||||
if [ -d /var/lib/rpm ]; then
|
if [ -d /var/lib/rpm ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user