Compare commits
21 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
1d368d7cca | ||
|
39c6ecbd5c | ||
|
a4e0bcdd6c | ||
|
df1dcb82f6 | ||
|
c09d7d2a54 | ||
|
e98485e8bf | ||
|
50e31f2d5c | ||
|
ede49dfa99 | ||
|
d0c685e071 | ||
|
89c3abdbca | ||
|
4b0f0c6d85 | ||
|
7e3010bec3 | ||
|
f8d276054d | ||
|
ffa6ebb4f2 | ||
|
5c8fb9ab73 | ||
|
2612bc09c0 | ||
|
0ef4e5f3b1 | ||
|
b47a9cb984 | ||
|
8a35735845 | ||
|
7c02ab6485 | ||
|
12f5c0c40a |
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
|||||||
|
1
|
7
gating.yaml
Normal file
7
gating.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
--- !Policy
|
||||||
|
product_versions:
|
||||||
|
- fedora-*
|
||||||
|
decision_context: bodhi_update_push_stable
|
||||||
|
subject_type: koji_build
|
||||||
|
rules:
|
||||||
|
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
|
@ -7,11 +7,14 @@
|
|||||||
%bcond_with perl_IO_Compress_enables_optional_test
|
%bcond_with perl_IO_Compress_enables_optional_test
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
# Dependency version if different to this package version
|
||||||
|
#global depver 2.201
|
||||||
|
|
||||||
%{?perl_default_filter}
|
%{?perl_default_filter}
|
||||||
|
|
||||||
Name: perl-IO-Compress
|
Name: perl-IO-Compress
|
||||||
Version: 2.093
|
Version: 2.201
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Summary: Read and write compressed data
|
Summary: Read and write compressed data
|
||||||
License: GPL+ or Artistic
|
License: GPL+ or Artistic
|
||||||
URL: https://metacpan.org/release/IO-Compress
|
URL: https://metacpan.org/release/IO-Compress
|
||||||
@ -30,8 +33,8 @@ BuildRequires: perl(File::Spec::Functions)
|
|||||||
# Module Runtime
|
# Module Runtime
|
||||||
BuildRequires: perl(bytes)
|
BuildRequires: perl(bytes)
|
||||||
BuildRequires: perl(Carp)
|
BuildRequires: perl(Carp)
|
||||||
BuildRequires: perl(Compress::Raw::Bzip2) >= %{version}
|
BuildRequires: perl(Compress::Raw::Bzip2) >= %{?depver}%{!?depver:%{version}}
|
||||||
BuildRequires: perl(Compress::Raw::Zlib) >= %{version}
|
BuildRequires: perl(Compress::Raw::Zlib) >= %{?depver}%{!?depver:%{version}}
|
||||||
BuildRequires: perl(constant)
|
BuildRequires: perl(constant)
|
||||||
BuildRequires: perl(Encode)
|
BuildRequires: perl(Encode)
|
||||||
BuildRequires: perl(Exporter)
|
BuildRequires: perl(Exporter)
|
||||||
@ -41,16 +44,19 @@ BuildRequires: perl(File::Spec)
|
|||||||
BuildRequires: perl(IO::File)
|
BuildRequires: perl(IO::File)
|
||||||
BuildRequires: perl(IO::Handle)
|
BuildRequires: perl(IO::Handle)
|
||||||
BuildRequires: perl(List::Util)
|
BuildRequires: perl(List::Util)
|
||||||
BuildRequires: perl(POSIX)
|
|
||||||
BuildRequires: perl(Scalar::Util)
|
BuildRequires: perl(Scalar::Util)
|
||||||
BuildRequires: perl(strict)
|
BuildRequires: perl(strict)
|
||||||
BuildRequires: perl(Symbol)
|
BuildRequires: perl(Symbol)
|
||||||
|
BuildRequires: perl(Time::Local)
|
||||||
BuildRequires: perl(utf8)
|
BuildRequires: perl(utf8)
|
||||||
BuildRequires: perl(warnings)
|
BuildRequires: perl(warnings)
|
||||||
# Test Suite
|
# Test Suite
|
||||||
BuildRequires: perl(File::Path)
|
BuildRequires: perl(File::Path)
|
||||||
BuildRequires: perl(lib)
|
BuildRequires: perl(lib)
|
||||||
BuildRequires: perl(threads::shared)
|
BuildRequires: perl(threads::shared)
|
||||||
|
%if !%{defined perl_bootstrap}
|
||||||
|
BuildRequires: perl(Test::More)
|
||||||
|
%endif
|
||||||
%if %{with perl_IO_Compress_enables_optional_test}
|
%if %{with perl_IO_Compress_enables_optional_test}
|
||||||
# Optional Tests
|
# Optional Tests
|
||||||
BuildRequires: perl(bytes)
|
BuildRequires: perl(bytes)
|
||||||
@ -60,7 +66,6 @@ BuildRequires: perl(overload)
|
|||||||
# Dual-lived module needs building early in the boot process
|
# Dual-lived module needs building early in the boot process
|
||||||
%if !%{defined perl_bootstrap}
|
%if !%{defined perl_bootstrap}
|
||||||
BuildRequires: perl(Test::NoWarnings)
|
BuildRequires: perl(Test::NoWarnings)
|
||||||
BuildRequires: perl(Test::Pod) >= 1.00
|
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
# Runtime
|
# Runtime
|
||||||
@ -77,6 +82,16 @@ Provides: perl-IO-Compress-Bzip2 = %{version}-%{release}
|
|||||||
Obsoletes: perl-IO-Compress-Zlib < %{version}-%{release}
|
Obsoletes: perl-IO-Compress-Zlib < %{version}-%{release}
|
||||||
Provides: perl-IO-Compress-Zlib = %{version}-%{release}
|
Provides: perl-IO-Compress-Zlib = %{version}-%{release}
|
||||||
|
|
||||||
|
# Filter modules bundled for tests
|
||||||
|
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(CompTestUtils\\)
|
||||||
|
%global __requires_exclude %{__requires_exclude}|^perl\\(.*\.pl)\s*$
|
||||||
|
%if %{defined perl_bootstrap}
|
||||||
|
%global __requires_exclude %{__requires_exclude}|^perl\\(Test::Builder)\s*$
|
||||||
|
%global __requires_exclude %{__requires_exclude}|^perl\\(Test::More)\s*$
|
||||||
|
%global __requires_exclude %{__requires_exclude}|^perl\\(Test::Simple)\s*$
|
||||||
|
%endif
|
||||||
|
%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_libexecdir}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This distribution provides a Perl interface to allow reading and writing of
|
This distribution provides a Perl interface to allow reading and writing of
|
||||||
compressed data created with the zlib and bzip2 libraries.
|
compressed data created with the zlib and bzip2 libraries.
|
||||||
@ -91,6 +106,15 @@ included with the IO-Compress distribution:
|
|||||||
* IO-Compress-Bzip2
|
* IO-Compress-Bzip2
|
||||||
* IO-Compress-Base
|
* IO-Compress-Base
|
||||||
|
|
||||||
|
%package tests
|
||||||
|
Summary: Tests for %{name}
|
||||||
|
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||||
|
Requires: perl-Test-Harness
|
||||||
|
|
||||||
|
%description tests
|
||||||
|
Tests from %{name}-%{version}. Execute them
|
||||||
|
with "%{_libexecdir}/%{name}/test".
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n IO-Compress-%{version}
|
%setup -q -n IO-Compress-%{version}
|
||||||
|
|
||||||
@ -98,19 +122,58 @@ included with the IO-Compress distribution:
|
|||||||
chmod -c -x lib/IO/Uncompress/{Adapter/Identity,RawInflate}.pm
|
chmod -c -x lib/IO/Uncompress/{Adapter/Identity,RawInflate}.pm
|
||||||
find examples -type f -exec chmod -c -x {} \;
|
find examples -type f -exec chmod -c -x {} \;
|
||||||
|
|
||||||
|
%if ! %{defined perl_bootstrap}
|
||||||
|
# Remove bundled Test::* modules
|
||||||
|
rm -rf t/Test
|
||||||
|
perl -i -ne 'print $_ unless m{^t/Test/}' MANIFEST
|
||||||
|
%endif
|
||||||
|
|
||||||
# Fix shellbangs in examples
|
# Fix shellbangs in examples
|
||||||
perl -MConfig -pi -e 's|^#!/usr/local/bin/perl\b|$Config{startperl}|' examples/io/anycat \
|
perl -MConfig -pi -e 's|^#!/usr/local/bin/perl\b|$Config{startperl}|' examples/io/anycat \
|
||||||
examples/io/bzip2/* examples/io/gzip/* examples/compress-zlib/*
|
examples/io/bzip2/* examples/io/gzip/* examples/compress-zlib/*
|
||||||
|
|
||||||
|
# Help file to recognise the Perl scripts and normalize shebangs
|
||||||
|
for F in `find t -name *.t` `find t -name *.pl`; do
|
||||||
|
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F"
|
||||||
|
chmod +x "$F"
|
||||||
|
done
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Makefile.PL NO_PACKLIST=1
|
perl Makefile.PL NO_PACKLIST=1 NO_PERLLOCAL=1
|
||||||
make %{?_smp_mflags}
|
%{make_build}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make pure_install DESTDIR=%{buildroot} INSTALLDIRS=perl
|
%{make_install} INSTALLDIRS=perl
|
||||||
|
|
||||||
|
# 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
|
||||||
|
set -e
|
||||||
|
# Lots of tests write into temporary files/directories. The easiest solution
|
||||||
|
# is to copy the tests into a writable directory and execute them from there.
|
||||||
|
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"
|
||||||
|
EOF
|
||||||
|
chmod +x %{buildroot}/%{_libexecdir}/%{name}/test
|
||||||
|
|
||||||
%{_fixperms} -c %{buildroot}
|
%{_fixperms} -c %{buildroot}
|
||||||
|
|
||||||
%check
|
%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
|
# Build using "--without long_tests" to avoid very long tests
|
||||||
# (full suite can take nearly an hour on an i7 920)
|
# (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
|
make test COMPRESS_ZLIB_RUN_%{?with_long_tests:ALL}%{!?with_long_tests:MOST}=1
|
||||||
@ -143,7 +206,74 @@ make test COMPRESS_ZLIB_RUN_%{?with_long_tests:ALL}%{!?with_long_tests:MOST}=1
|
|||||||
%{_mandir}/man3/IO::Compress::*.3*
|
%{_mandir}/man3/IO::Compress::*.3*
|
||||||
%{_mandir}/man3/IO::Uncompress::*.3*
|
%{_mandir}/man3/IO::Uncompress::*.3*
|
||||||
|
|
||||||
|
%files tests
|
||||||
|
%{_libexecdir}/%{name}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.201-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jul 14 2022 Jitka Plesnikova <jplesnik@redhat.com> - 2.201-2
|
||||||
|
- Disable version check in tests
|
||||||
|
|
||||||
|
* Sat Jun 25 2022 Paul Howarth <paul@city-fan.org> - 2.201-1
|
||||||
|
- 2.201 bump
|
||||||
|
|
||||||
|
* Fri Jun 03 2022 Jitka Plesnikova <jplesnik@redhat.com> - 2.106-489
|
||||||
|
- Perl 5.36 re-rebuild of bootstrapped packages
|
||||||
|
|
||||||
|
* Mon May 30 2022 Jitka Plesnikova <jplesnik@redhat.com> - 2.106-488
|
||||||
|
- Increase release to favour standalone package
|
||||||
|
|
||||||
|
* Mon Apr 25 2022 Jitka Plesnikova <jplesnik@redhat.com> - 2.103-1
|
||||||
|
- 2.106 bump
|
||||||
|
|
||||||
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.102-480
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.102-479
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon May 24 2021 Jitka Plesnikova <jplesnik@redhat.com> - 2.102-478
|
||||||
|
- Perl 5.34 re-rebuild of bootstrapped packages
|
||||||
|
|
||||||
|
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 2.102-477
|
||||||
|
- Increase release to favour standalone package
|
||||||
|
|
||||||
|
* Mon Mar 01 2021 Jitka Plesnikova <jplesnik@redhat.com> - 2.102-2
|
||||||
|
- Package tests
|
||||||
|
|
||||||
|
* Sun Feb 28 2021 Paul Howarth <paul@city-fan.org> - 2.102-1
|
||||||
|
- 2.102 bump
|
||||||
|
|
||||||
|
* Sat Feb 20 2021 Paul Howarth <paul@city-fan.org> - 2.101-1
|
||||||
|
- 2.101 bump
|
||||||
|
|
||||||
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.100-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jan 7 2021 Paul Howarth <paul@city-fan.org> - 2.100-1
|
||||||
|
- 2.100 bump
|
||||||
|
- Use %%{make_build} and %%{make_install}
|
||||||
|
|
||||||
|
* Sat Aug 1 2020 Paul Howarth <paul@city-fan.org> - 2.096-1
|
||||||
|
- 2.096 bump
|
||||||
|
|
||||||
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.095-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Jul 21 2020 Petr Pisar <ppisar@redhat.com> - 2.095-1
|
||||||
|
- 2.095 bump
|
||||||
|
|
||||||
|
* Tue Jul 14 2020 Jitka Plesnikova <jplesnik@redhat.com> - 2.094-1
|
||||||
|
- 2.094 bump
|
||||||
|
|
||||||
|
* Fri Jun 26 2020 Jitka Plesnikova <jplesnik@redhat.com> - 2.093-457
|
||||||
|
- Perl 5.32 re-rebuild of bootstrapped packages
|
||||||
|
|
||||||
|
* Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 2.093-456
|
||||||
|
- Increase release to favour standalone package
|
||||||
|
|
||||||
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.093-2
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.093-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||||
|
|
||||||
|
5
plans/sanity.fmf
Normal file
5
plans/sanity.fmf
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
summary: Sanity tests
|
||||||
|
discover:
|
||||||
|
how: fmf
|
||||||
|
execute:
|
||||||
|
how: tmt
|
2
sources
2
sources
@ -1 +1 @@
|
|||||||
SHA512 (IO-Compress-2.093.tar.gz) = 5921d6c32b48bd78acec8b2083ebefea85de7931c6091982eb80ffef877504dc709ad3435aade04f53981d47f98123f5225d7dd427c172dd6a1bb1b21cf4ae8c
|
SHA512 (IO-Compress-2.201.tar.gz) = fc5b69df0eedbc91da05c7ff8a62fe8d194a2daf1fc3c8c1aacd5aad0a3d76ad59fee29dcf96db4e3537d00f65f980ae34c45bce5481f1e92278e52295cbde14
|
||||||
|
4
tests/upstream-tests.fmf
Normal file
4
tests/upstream-tests.fmf
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
summary: Upstream tests
|
||||||
|
component: perl-IO-Compress
|
||||||
|
require: perl-IO-Compress-tests
|
||||||
|
test: /usr/libexec/perl-IO-Compress/test
|
Loading…
Reference in New Issue
Block a user