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}
|
||||
|
||||
Name: perl-IO-Compress
|
||||
Version: 2.030
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
Summary: IO::Compress Perl module
|
||||
License: GPL+ or Artistic
|
||||
Group: Development/Libraries
|
||||
@ -48,9 +49,9 @@ included with the IO-Compress distribution.
|
||||
%patch0 -p1 -b .old
|
||||
chmod -x lib/IO/Uncompress/{Adapter/Identity,RawInflate}.pm
|
||||
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 \
|
||||
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
|
||||
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/*
|
||||
|
||||
%check
|
||||
# test hangs
|
||||
##make test COMPRESS_ZLIB_RUN_ALL=1
|
||||
make test
|
||||
# Build using "--without long_tests" to avoid very long tests
|
||||
# (full suite can take nearly an hour on an i7)
|
||||
make test %{?with_long_tests:COMPRESS_ZLIB_RUN_ALL=1}
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
#%exclude %dir %{perl_privlib}/auto
|
||||
%doc Changes README examples/*
|
||||
%{perl_privlib}/*
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%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
|
||||
- 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
|
||||
- 2.030 version bump
|
||||
|
Loading…
Reference in New Issue
Block a user