Conditionalize long-running tests
Turn long-running tests back on and support build --without long_tests to skip them
This commit is contained in:
parent
0b4ad00103
commit
bcc8e8ea58
@ -1,8 +1,9 @@
|
|||||||
|
%bcond_without long_tests
|
||||||
%{?perl_default_filter}
|
%{?perl_default_filter}
|
||||||
|
|
||||||
Name: perl-IO-Compress
|
Name: perl-IO-Compress
|
||||||
Version: 2.030
|
Version: 2.030
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Summary: IO::Compress Perl module
|
Summary: IO::Compress Perl module
|
||||||
License: GPL+ or Artistic
|
License: GPL+ or Artistic
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
@ -48,9 +49,9 @@ included with the IO-Compress distribution.
|
|||||||
%patch0 -p1 -b .old
|
%patch0 -p1 -b .old
|
||||||
chmod -x lib/IO/Uncompress/{Adapter/Identity,RawInflate}.pm
|
chmod -x lib/IO/Uncompress/{Adapter/Identity,RawInflate}.pm
|
||||||
chmod -R 644 examples/io/anycat examples/io/bzip2/* examples/io/gzip/* \
|
chmod -R 644 examples/io/anycat examples/io/bzip2/* examples/io/gzip/* \
|
||||||
examples/compress-zlib/*
|
examples/compress-zlib/*
|
||||||
%{__perl} -pi -e 's|^#!/usr/local/bin/perl\b|#!%{__perl}|' examples/io/anycat \
|
%{__perl} -pi -e 's|^#!/usr/local/bin/perl\b|#!%{__perl}|' examples/io/anycat \
|
||||||
examples/io/bzip2/* examples/io/gzip/* examples/compress-zlib/*
|
examples/io/bzip2/* examples/io/gzip/* examples/compress-zlib/*
|
||||||
# https://rt.cpan.org/Public/Bug/Display.html?id=61402
|
# https://rt.cpan.org/Public/Bug/Display.html?id=61402
|
||||||
mv pod/FAQ.pod lib/IO/Compress ; %{__perl} -pi -e 's|pod/FAQ\.pod||' MANIFEST
|
mv pod/FAQ.pod lib/IO/Compress ; %{__perl} -pi -e 's|pod/FAQ\.pod||' MANIFEST
|
||||||
|
|
||||||
@ -69,23 +70,26 @@ find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
|
|||||||
%{_fixperms} $RPM_BUILD_ROOT/*
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# test hangs
|
# Build using "--without long_tests" to avoid very long tests
|
||||||
##make test COMPRESS_ZLIB_RUN_ALL=1
|
# (full suite can take nearly an hour on an i7)
|
||||||
make test
|
make test %{?with_long_tests:COMPRESS_ZLIB_RUN_ALL=1}
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
#%exclude %dir %{perl_privlib}/auto
|
|
||||||
%doc Changes README examples/*
|
%doc Changes README examples/*
|
||||||
%{perl_privlib}/*
|
%{perl_privlib}/*
|
||||||
%{_mandir}/man3/*
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Sep 21 2010 Paul Howarth <paul@city-fan.org> 2.030-3
|
||||||
|
- Turn long-running tests back on and support build --without long_tests
|
||||||
|
to skip them
|
||||||
|
|
||||||
* Thu Sep 16 2010 Ville Skyttä <ville.skytta@iki.fi> - 2.030-2
|
* Thu Sep 16 2010 Ville Skyttä <ville.skytta@iki.fi> - 2.030-2
|
||||||
- Install IO::Compress::FAQ into usual POD and man dirs.
|
- Install IO::Compress::FAQ into usual POD and man dirs (#634722)
|
||||||
|
|
||||||
* Mon Jul 26 2010 Petr Sabata <psabata@redhat.com> 2.030-1
|
* Mon Jul 26 2010 Petr Sabata <psabata@redhat.com> 2.030-1
|
||||||
- 2.030 version bump
|
- 2.030 version bump
|
||||||
|
Loading…
Reference in New Issue
Block a user