diff --git a/IO-Compress-2.103.tar.gz b/IO-Compress-2.103.tar.gz deleted file mode 100644 index 4813e3c0461b2dc13db8de8408c48634abde350b..0000000000000000000000000000000000000000 Binary files a/IO-Compress-2.103.tar.gz and /dev/null differ diff --git a/IO-Compress-2.201.tar.gz b/IO-Compress-2.201.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..ab46f9dbc7c95d7bd9fce6489c6ecafe55e3a899 Binary files /dev/null and b/IO-Compress-2.201.tar.gz differ diff --git a/perl-IO-Compress.spec b/perl-IO-Compress.spec index 91f6c3dad47646bdd4a3c7a7d31ce8f674d14c7d..34c88c76e8bbdce1086520f7a3c120014d1d1b13 100644 --- a/perl-IO-Compress.spec +++ b/perl-IO-Compress.spec @@ -1,20 +1,18 @@ %define anolis_release 1 - # Run time expensive tests %bcond_without long_tests -# Run optional test -%bcond_without perl_IO_Compress_enables_optional_test +%bcond_with perl_IO_Compress_enables_optional_test # Dependency version if different to this package version -%global depver 2.103 +#global depver 2.201 %{?perl_default_filter} Name: perl-IO-Compress -Version: 2.103 +Version: 2.201 Release: %{anolis_release}%{?dist} Summary: Read and write compressed data -License: GPL+ or Artistic +License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/release/IO-Compress Source0: https://cpan.metacpan.org/modules/by-module/IO/IO-Compress-%{version}.tar.gz BuildArch: noarch @@ -42,10 +40,10 @@ BuildRequires: perl(File::Spec) BuildRequires: perl(IO::File) BuildRequires: perl(IO::Handle) BuildRequires: perl(List::Util) -BuildRequires: perl(POSIX) BuildRequires: perl(Scalar::Util) BuildRequires: perl(strict) BuildRequires: perl(Symbol) +BuildRequires: perl(Time::Local) BuildRequires: perl(utf8) BuildRequires: perl(warnings) # Test Suite @@ -67,17 +65,16 @@ BuildRequires: perl(Test::NoWarnings) %endif %endif # Runtime -Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(File::Glob) # This is wrapper for different Compress modules -Obsoletes: perl-Compress-Zlib < %{version} +Obsoletes: perl-Compress-Zlib < %{version}-%{release} Provides: perl-Compress-Zlib = %{version}-%{release} -Obsoletes: perl-IO-Compress-Base < %{version} +Obsoletes: perl-IO-Compress-Base < %{version}-%{release} Provides: perl-IO-Compress-Base = %{version}-%{release} -Obsoletes: perl-IO-Compress-Bzip2 < %{version} +Obsoletes: perl-IO-Compress-Bzip2 < %{version}-%{release} Provides: perl-IO-Compress-Bzip2 = %{version}-%{release} -Obsoletes: perl-IO-Compress-Zlib < %{version} +Obsoletes: perl-IO-Compress-Zlib < %{version}-%{release} Provides: perl-IO-Compress-Zlib = %{version}-%{release} # Filter modules bundled for tests @@ -132,19 +129,10 @@ perl -MConfig -pi -e 's|^#!/usr/local/bin/perl\b|$Config{startperl}|' examples/i # Help file to recognise the Perl scripts and normalize shebangs for F in `find t -name *.t` `find t -name *.pl`; do - if head -1 "$F" | grep -q -e '^#!.*perl' ; then - perl -MConfig -pi -e 's|^#!.*perl\b|$Config{startperl}|' "$F" - else - perl -i -MConfig -ple 'print $Config{startperl} if $. == 1' "$F" - fi + perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F" chmod +x "$F" done -# Remove release tests -rm t/999pod.t t/999meta-*.t -perl -i -ne 'print $_ unless m{^t/999pod\.t}' MANIFEST -perl -i -ne 'print $_ unless m{^t/999meta-.*\.t}' MANIFEST - %build perl Makefile.PL NO_PACKLIST=1 NO_PERLLOCAL=1 %{make_build} @@ -155,6 +143,9 @@ perl Makefile.PL NO_PACKLIST=1 NO_PERLLOCAL=1 # Install tests mkdir -p %{buildroot}/%{_libexecdir}/%{name} cp -a examples t %{buildroot}/%{_libexecdir}/%{name} +# Remove release tests +rm %{buildroot}/%{_libexecdir}/%{name}/t/999pod.t +rm %{buildroot}/%{_libexecdir}/%{name}/t/999meta-*.t perl -i -pe "s{\"./bin/\"}{\"%{_bindir}\"}" %{buildroot}/%{_libexecdir}/%{name}/t/011-streamzip.t cat > %{buildroot}/%{_libexecdir}/%{name}/test << 'EOF' #!/bin/sh @@ -165,6 +156,7 @@ DIR=$(mktemp -d) pushd "$DIR" cp -a %{_libexecdir}/%{name}/* ./ unset PERL_CORE +export TEST_SKIP_VERSION_CHECK=1 prove -I . -j "$(getconf _NPROCESSORS_ONLN)" popd rm -rf "$DIR" @@ -176,6 +168,7 @@ chmod +x %{buildroot}/%{_libexecdir}/%{name}/test %check unset PERL_CORE export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}') +export TEST_SKIP_VERSION_CHECK=1 # Build using "--without long_tests" to avoid very long tests # (full suite can take nearly an hour on an i7 920) make test COMPRESS_ZLIB_RUN_%{?with_long_tests:ALL}%{!?with_long_tests:MOST}=1 @@ -212,5 +205,8 @@ make test COMPRESS_ZLIB_RUN_%{?with_long_tests:ALL}%{!?with_long_tests:MOST}=1 %{_libexecdir}/%{name} %changelog -* Thu Apr 21 2022 zhang xianting - 2.103-1 -- Initial build for Anolis V23 +* Mon Jan 30 2023 Chunmei Xu - 2.201-1 +- update to 2.201 + +-* Thu Apr 21 2022 zhang xianting - 2.103-1 +-- Initial build for Anolis V23