Disable thread tests because thread support not complete

Set the THREAD_TEST variable to 0 explicitly in order not to be
influenced by environment that the rpmbuild is executed in.
This commit is contained in:
Petr Písař 2015-05-27 13:46:55 +02:00
parent 1db9706375
commit 3bb553b0de

View File

@ -1,10 +1,14 @@
# Do not invoke thread tests by default because the thread support is broken,
# bug #1224731, CPAN RT#91800
%bcond_with thread_test
Name: perl-XML-LibXML Name: perl-XML-LibXML
# NOTE: also update perl-XML-LibXSLT to a compatible version, see # NOTE: also update perl-XML-LibXSLT to a compatible version, see
# https://bugzilla.redhat.com/show_bug.cgi?id=469480 # https://bugzilla.redhat.com/show_bug.cgi?id=469480
# it might not be needed anymore # it might not be needed anymore
# this module is maintained, the other is not # this module is maintained, the other is not
Version: 2.0121 Version: 2.0121
Release: 1%{?dist} Release: 2%{?dist}
Epoch: 1 Epoch: 1
Summary: Perl interface to the libxml2 library Summary: Perl interface to the libxml2 library
Group: Development/Libraries Group: Development/Libraries
@ -57,8 +61,10 @@ BuildRequires: perl(Test::LeakTrace)
%endif %endif
BuildRequires: perl(Test::Pod) >= 1.14 BuildRequires: perl(Test::Pod) >= 1.14
# Optional Test::TrailingSpace # Optional Test::TrailingSpace
%if %{with thread_test}
BuildRequires: perl(threads) BuildRequires: perl(threads)
BuildRequires: perl(threads::shared) BuildRequires: perl(threads::shared)
%endif
BuildRequires: perl(URI::file) BuildRequires: perl(URI::file)
BuildRequires: perl(utf8) BuildRequires: perl(utf8)
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
@ -95,7 +101,7 @@ find %{buildroot} -type f -name '*.bs' -empty -exec rm -f {} ';'
chmod -R u+w %{buildroot}/* chmod -R u+w %{buildroot}/*
%check %check
THREAD_TEST=1 make test THREAD_TEST=0%{?with_thread_test:1} make test
%triggerin -- perl-XML-SAX %triggerin -- perl-XML-SAX
for p in XML::LibXML::SAX::Parser XML::LibXML::SAX ; do for p in XML::LibXML::SAX::Parser XML::LibXML::SAX ; do
@ -119,6 +125,9 @@ fi
%{_mandir}/man3/*.3* %{_mandir}/man3/*.3*
%changelog %changelog
* Wed May 27 2015 Petr Pisar <ppisar@redhat.com> - 1:2.0121-2
- Disable thread tests because thread support not complete (bug #1224731)
* Mon May 04 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1:2.0121-1 * Mon May 04 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1:2.0121-1
- 2.0121 bump - 2.0121 bump