代码拉取完成,页面将自动刷新
# Run time expensive tests
%bcond_with long_tests
# Run optional test
%bcond_with perl_IO_Compress_enables_optional_test
%{?perl_default_filter}
Name: perl-IO-Compress
Version: 2.213
Release: 2
Summary: Read and write compressed data
License: GPL-1.0-or-later OR Artistic-1.0-Perl
URL: https://metacpan.org/release/IO-Compress
Source0: https://cpan.metacpan.org/authors/id/P/PM/PMQS/IO-Compress-%{version}.tar.gz
BuildArch: noarch
# Module Build
BuildRequires: coreutils findutils make perl-generators perl-interpreter
BuildRequires: perl(Config) perl(File::Copy) perl(File::Spec::Functions)
BuildRequires: perl(ExtUtils::MakeMaker) >= 5.16
# Module Runtime
BuildRequires: perl(bytes) perl(Carp) perl(constant) perl(Encode) perl(Exporter) perl(Fcntl)
BuildRequires: perl(Compress::Raw::Bzip2) >= %{version}
BuildRequires: perl(Compress::Raw::Zlib) >= %{version}
BuildRequires: perl(File::Glob) perl(File::Spec) perl(IO::File) perl(IO::Handle) perl(List::Util)
BuildRequires: perl(POSIX) perl(Scalar::Util) perl(strict) perl(Symbol) perl(utf8) perl(warnings)
# Test Suite
BuildRequires: perl(File::Path) perl(lib) perl(threads::shared)
%if %{with perl_IO_Compress_enables_optional_test}
# Optional Tests
BuildRequires: perl(File::Temp) perl(overload)
# Dual-lived module needs building early in the boot process
%if !%{defined perl_bootstrap}
BuildRequires: perl(Test::NoWarnings)
BuildRequires: perl(Test::Pod) >= 1.00
%endif
%endif
# Runtime
Requires: perl(File::Glob)
# This is wrapper for different Compress modules
Provides: perl-Compress-Zlib = %{version}-%{release}
Provides: perl-IO-Compress-Base = %{version}-%{release}
Provides: perl-IO-Compress-Bzip2 = %{version}-%{release}
Provides: perl-IO-Compress-Zlib = %{version}-%{release}
%description
This distribution provides a Perl interface to allow reading and writing of
compressed data created with the zlib and bzip2 libraries.
IO-Compress supports reading and writing of bzip2, RFC 1950, RFC 1951,
RFC 1952 (i.e. gzip) and zip files/buffers.
The following modules used to be distributed separately, but are now
included with the IO-Compress distribution:
Compress-Zlib
IO-Compress-Zlib
IO-Compress-Bzip2
IO-Compress-Base
%package help
Summary: Documents for perl-IO-Compress
Buildarch: noarch
%description help
Man pages and other related documents.
%prep
%setup -q -n IO-Compress-%{version}
# Remove spurious exec permissions
chmod -c -x lib/IO/Uncompress/{Adapter/Identity,RawInflate}.pm
find examples -type f -exec chmod -c -x {} \;
# Fix shellbangs in examples
perl -MConfig -pi -e 's|^#!/usr/local/bin/perl\b|$Config{startperl}|' examples/io/anycat \
examples/io/bzip2/* examples/io/gzip/* examples/compress-zlib/*
%build
perl Makefile.PL
%make_build
%install
make pure_install DESTDIR=%{buildroot} INSTALLDIRS=perl
find %{buildroot} -type f -name .packlist -delete
%{_fixperms} -c %{buildroot}
%check
# Build using "--without long_tests" to avoid very long tests
make test COMPRESS_ZLIB_RUN_%{?with_long_tests:ALL}%{!?with_long_tests:MOST}=1
%files
%license META.json
%{_bindir}/*
%{perl_privlib}/*
%files help
%doc Changes README examples/*
%{_mandir}/man?/*
%changelog
* Sun Jul 13 2025 Funda Wang <fundawang@yeah.net> - 2.213-2
- fix file list
* Tue Jun 03 2025 openeuler_bot <infra@openeuler.sh> - 2.213-1
- add perl5.40 to workflows (version: 2.213).
* Sat Jan 18 2025 Funda Wang <fundawang@yeah.net> - 2.212-2
- drop useless perl(:MODULE_COMPAT) requirement
* Mon Oct 28 2024 hugel <gengqihu2@h-partners.com> - 2.212-1
- upgrade version to 2.212
* Mon Jan 29 2024 dongyuzhen <dongyuzhen@h-partners.com> - 2.206-1
- upgrade version to 2.206:
- fix version checks to use correct method
- drop rt.cpan from SUPPORT section
* Wed Jul 26 2023 dongyuzhen <dongyuzhen@h-partners.com> - 2.205-1
- upgrade version to 2.205
* Fri Oct 28 2022 dongyuzhen <dongyuzhen@h-partners.com> - 2.201-1
- upgrade version to 2.201
* Mon Jun 13 2022 guozhaorui <guozhaorui1@h-partners.com> - 2.101-2
- skip long tests for check
* Fri Nov 19 2021 yuanxin <yuanxin24@huawei.com> - 2.101-1
- Upgrade to version 2.101
* Tue Apr 06 2021 SimpleUpdate Robot <tc@openeuler.org> - 2.100-1
- Upgrade to version 2.100
* Fri Jul 31 2020 shenyangyang <shenyangyang4@huawei.com> - 2.093-1
- Bump version to 2.093
* Tue Sep 17 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.081-6
- Package init
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。