1 Star 0 Fork 3

大漠行舟/perl-Compress-LZ4

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
perl-Compress-LZ4.spec 1.99 KB
一键复制 编辑 原始数据 按行查看 历史
大漠行舟 提交于 2024-02-01 17:03 . Init package with version 0.25
Name: perl-Compress-LZ4
Version: 0.25
Release: 1
Summary: Perl interface to the LZ4 compression library
# other files: GPL+ or Artistic
## Not in binary package
# src: BSD
License: GPL-1.0-or-later OR Artistic-1.0-Perl
URL: https://metacpan.org/release/Compress-LZ4
Source0: https://cpan.metacpan.org/modules/by-module/Compress/Compress-LZ4-%{version}.tar.gz
# Do not use bundled lz4 sources
Patch0: Compress-LZ4-0.22-Build-against-system-lz4.patch
BuildRequires: gcc
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: lz4-devel
BuildRequires: perl-interpreter
BuildRequires: perl-devel
BuildRequires: perl-generators
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: sed
# Run-time:
BuildRequires: perl(Exporter) >= 5.57
BuildRequires: perl(XSLoader)
# Tests:
BuildRequires: perl(Config)
BuildRequires: perl(overload)
BuildRequires: perl(Test::More) >= 0.82
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(Exporter) >= 5.57
# Filter under-specified dependencies
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Exporter\\)$
%description
The Compress::LZ4 module provides an interface to the LZ4 compression library
%prep
%setup -q -n Compress-LZ4-%{version}
%patch0 -p1
# Remove bundled lz4
rm -Rf src
sed -i -e '/^src\//d' MANIFEST
# Correct permissions
chmod -c -x ex/*
%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
make %{?_smp_mflags}
%install
make pure_install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -delete
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%files
%doc Changes README ex
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/Compress*
%{_mandir}/man3/*
%changelog
* Thu Feb 1 2024 Dongxing Wang <dongxing.wang_a@thundersoft.com> - 0.25-1
- Initial package
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/desert-sailor/perl-Compress-LZ4.git
git@gitee.com:desert-sailor/perl-Compress-LZ4.git
desert-sailor
perl-Compress-LZ4
perl-Compress-LZ4
master

搜索帮助