1 Star 0 Fork 2

phanddy/perl-Sub-Info

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
perl-Sub-Info.spec 1.83 KB
一键复制 编辑 原始数据 按行查看 历史
zhanliwen 提交于 2020-08-05 14:05 . package init
%global _empty_manifest_terminate_build 0
Name: perl-Sub-Info
Version: 0.002
Release: 1
Summary: Sub::Info Perl module
License: GPL+ or Artistic
Group: Development/Libraries
URL: https://metacpan.org/release/Sub-Info
Source0: https://cpan.metacpan.org/authors/id/E/EX/EXODIST/Sub-Info-%{version}.tar.gz
BuildArch: noarch
BuildRequires: make
BuildRequires: perl-interpreter
BuildRequires: perl-generators
BuildRequires: perl(:VERSION) >= 5.8.1
BuildRequires: perl(Importer) >= 0.024
BuildRequires: perl(Test2::Tools::Tiny) >= 1.302072
%description
This allows to inspect Perl subroutines.
%package help
Summary : Sub::Info Perl module
Provides: perl-Sub-Info-doc
%description help
This allows to inspect Perl subroutines.
%prep
%setup -q -n Sub-Info-%{version}
%build
export PERL_MM_OPT=""
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
export PERL_MM_OPT=""
rm -rf $RPM_BUILD_ROOT
make pure_install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/*
pushd %{buildroot}
touch filelist.lst
if [ -d usr/bin ];then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ];then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ];then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib ];then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
popd
mv %{buildroot}/filelist.lst .
%check
make test
%clean
rm -rf $RPM_BUILD_ROOT
%files -f filelist.lst
%defattr(-,root,root,-)
%doc Changes META.json README
%{perl_vendorlib}/*
%files help
%{_mandir}/*
%changelog
* Mon Aug 3 2020 dingyue <dingyue5@huawei.com> -0.002 -1
- Package init
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/phanddy/perl-Sub-Info.git
git@gitee.com:phanddy/perl-Sub-Info.git
phanddy
perl-Sub-Info
perl-Sub-Info
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385