Ai
11 Star 0 Fork 17

src-openEuler/perl-IO-Compress

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
perl-IO-Compress.spec 4.42 KB
一键复制 编辑 原始数据 按行查看 历史
Funda Wang 提交于 2025-07-13 19:59 +08:00 . fix file list
# 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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/perl-IO-Compress.git
git@gitee.com:src-openeuler/perl-IO-Compress.git
src-openeuler
perl-IO-Compress
perl-IO-Compress
master

搜索帮助