Ai
5 Star 0 Fork 2

src-openEuler/perl-File-PathList

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
perl-File-PathList.spec 2.18 KB
一键复制 编辑 原始数据 按行查看 历史
刘峯 提交于 2021-07-22 14:00 +08:00 . initial package
Name: perl-File-PathList
Version: 1.04
Release: 1
Summary: Find a file within a set of paths (like @INC or Java classpaths)
License: GPL+ or Artistic
URL: https://metacpan.org/release/File-PathList
Source0: https://cpan.metacpan.org/authors/id/A/AD/ADAMK/File-PathList-%{version}.tar.gz
BuildArch: noarch
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: make
BuildRequires: perl-interpreter
BuildRequires: perl-generators
BuildRequires: perl(inc::Module::Install) >= 0.76
BuildRequires: perl(Module::Install::Metadata)
BuildRequires: perl(Module::Install::WriteAll)
BuildRequires: sed
# Run-time:
BuildRequires: perl(File::Spec) >= 0.80
BuildRequires: perl(File::Spec::Unix)
BuildRequires: perl(Params::Util) >= 0.24
BuildRequires: perl(strict)
BuildRequires: perl(vars)
# Tests only:
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(Test::More) >= 0.47
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(File::Spec) >= 0.80
Requires: perl(Params::Util) >= 0.24
# Remove underspecified dependencies
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\((File::Spec|Params::Util)\\)$
%description
Many systems that map generic relative paths to absolute paths do so with a
set of base paths. For example, perl itself when loading classes first turn
a "Class::Name" into a path like "Class/Name.pm", and then looks through each
element of @INC to find the actual file. To aid in portability, all relative
paths are provided as UNIX-style relative paths, and converted to the
localized version in the process of looking up the path.
%prep
%setup -q -n File-PathList-%{version}
# Remove bundled modules
rm -r ./inc
sed -i -e '/^inc\//d' MANIFEST
%build
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
make pure_install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%files
%license LICENSE
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
* Thu Jul 22 2021 liufeng <liufeng@kylinos.cn> - 1.04-1
- Initial package.
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/perl-File-PathList.git
git@gitee.com:src-openeuler/perl-File-PathList.git
src-openeuler
perl-File-PathList
perl-File-PathList
master

搜索帮助