1 Star 0 Fork 13

yoo/perl-Alien-Build

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
perl-Alien-Build.spec 4.43 KB
一键复制 编辑 原始数据 按行查看 历史
starlet_dx 提交于 2022-06-15 15:25 . Package upgrade
%global _empty_manifest_terminate_build 0
Name: perl-Alien-Build
Version: 2.48
Release: 1
Summary: Alien::Build Perl module
License: GPL+ or Artistic
URL: https://metacpan.org/release/Alien-Build
Source0: https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/Alien-Build-%{version}.tar.gz
BuildArch: noarch
BuildRequires: make
BuildRequires: gcc
BuildRequires: perl-devel
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(ExtUtils::CBuilder)
BuildRequires: perl(Capture::Tiny) >= 0.17
BuildRequires: perl(FFI::CheckLib)
BuildRequires: perl(File::Which)
BuildRequires: perl-File-chdir
BuildRequires: perl(Path::Tiny) >= 0.077
BuildRequires: perl(PkgConfig::LibPkgConf::Client) >= 0.04
BuildRequires: perl(PkgConfig::LibPkgConf::Util) >= 0.04
BuildRequires: perl(Test2::API) >= 1.302096
BuildRequires: perl(Test2::V0) >= 0.000060
Requires: gcc
Requires: perl(PkgConfig::LibPkgConf::Client) >= 0.04
Requires: perl(PkgConfig::LibPkgConf::Util) >= 0.04
Requires: perl(Test2::API) >= 1.302096
%description
This package provides tools for building external (non-CPAN) dependencies
for CPAN. It is mainly designed to be used at install time of a CPAN
client, and work closely with Alien::Base which is used at run time.
%package Plugin-Decode-HTML
Summary: Alien::Build plugin to extract links from HTML
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Conflicts: perl-Alien-Build < 1.76
%description Plugin-Decode-HTML
This Alien::Build plugin decodes an HTML file listing into a list of
candidates for your Prefer plugin.
%package Plugin-Decode-Mojo
Summary: Alien::Build plugin to extract links from HTML
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%description Plugin-Decode-Mojo
This Alien::Build plugin decodes an HTML file listing into a list of
candidates for your Prefer plugin.
%package help
Summary: Alien::Build Perl module
Provides: perl-Alien-Build-doc
%description help
This package provides tools for building external (non-CPAN) dependencies
for CPAN. It is mainly designed to be used at install time of a CPAN
client, and work closely with Alien::Base which is used at run time.
%prep
%autosetup -n Alien-Build-%{version} -p1
%build
export PERL_MM_OPT=""
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}
%install
export PERL_MM_OPT=""
rm -rf $RPM_BUILD_ROOT
%{make_install}
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
%files -f filelist.lst
%defattr(-,root,root,-)
%doc Changes Changes.Alien-Base Changes.Alien-Base-Wrapper Changes.Test-Alien
%doc example README SUPPORT
%{perl_vendorlib}/*
%exclude %{perl_vendorlib}/Alien/Build/Plugin/Decode/HTML.pm
%exclude %{perl_vendorlib}/Alien/Build/Plugin/Decode/Mojo.pm
%{_mandir}/man3/*
%exclude %{_mandir}/man3/Alien::Build::Plugin::Decode::HTML.3pm.*
%exclude %{_mandir}/man3/Alien::Build::Plugin::Decode::Mojo.3pm.*
%files Plugin-Decode-HTML
%{perl_vendorlib}/Alien/Build/Plugin/Decode/HTML.pm
%{_mandir}/man3/Alien::Build::Plugin::Decode::HTML.3pm.*
%files Plugin-Decode-Mojo
%doc Changes.Alien-Build-Decode-Mojo
%{perl_vendorlib}/Alien/Build/Plugin/Decode/Mojo.pm
%{_mandir}/man3/Alien::Build::Plugin::Decode::Mojo.3pm.*
%files help
%{_mandir}/*
%changelog
* Tue Jun 14 2022 SimpleUpdate Robot <tc@openeuler.org> - 2.48-1
- Upgrade to version 2.48
* Fri Sep 3 2021 jiangxinyu <jiangxinyu@kylinos.cn> - 2.41-2
- Solve the problem of missing 'File::Which' module when compiling
* Mon Jul 19 2021 Xu Jin <jinxu@kylinos.cn> - 2.41-1
- Update package to 2.41
* Thu Aug 13 2020 dingyue<dingyue5@huawei.com> - 2.28-2
- delete requires
* Fri Aug 7 2020 dingyue<dingyue5@huawei.com> - 2.28-1
- Package Init
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mdLUbG/perl-Alien-Build.git
git@gitee.com:mdLUbG/perl-Alien-Build.git
mdLUbG
perl-Alien-Build
perl-Alien-Build
master

搜索帮助