提交perl-CPAN-Meta-Check 源代码
This commit is contained in:
parent
e5c07b993f
commit
a81108d551
BIN
CPAN-Meta-Check-0.014.tar.gz
Normal file
BIN
CPAN-Meta-Check-0.014.tar.gz
Normal file
Binary file not shown.
89
perl-CPAN-Meta-Check.spec
Normal file
89
perl-CPAN-Meta-Check.spec
Normal file
@ -0,0 +1,89 @@
|
|||||||
|
%global _empty_manifest_terminate_build 0
|
||||||
|
Name: perl-CPAN-Meta-Check
|
||||||
|
Version: 0.014
|
||||||
|
Release: 1
|
||||||
|
Summary: Verify requirements in a CPAN::Meta object
|
||||||
|
License: GPL+ or Artistic
|
||||||
|
Group: Development/Libraries
|
||||||
|
URL: http://search.cpan.org/dist/CPAN-Meta-Check/
|
||||||
|
Source0: http://www.cpan.org/authors/id/L/LE/LEONT/CPAN-Meta-Check-%{version}.tar.gz
|
||||||
|
BuildArch: noarch
|
||||||
|
BuildRequires: perl >= 0:5.006
|
||||||
|
BuildRequires: perl-generators
|
||||||
|
BuildRequires: perl(CPAN::Meta) >= 2.120920
|
||||||
|
BuildRequires: perl(CPAN::Meta::Prereqs) >= 2.132830
|
||||||
|
BuildRequires: perl(CPAN::Meta::Requirements) >= 2.121
|
||||||
|
BuildRequires: perl(Env)
|
||||||
|
BuildRequires: perl(Exporter)
|
||||||
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||||
|
BuildRequires: perl(Module::Metadata) >= 1.000023
|
||||||
|
BuildRequires: perl(strict)
|
||||||
|
BuildRequires: perl(Test::Deep)
|
||||||
|
BuildRequires: perl(Test::More) >= 0.88
|
||||||
|
BuildRequires: perl(warnings)
|
||||||
|
Requires: perl(CPAN::Meta::Prereqs) >= 2.132830
|
||||||
|
Requires: perl(CPAN::Meta::Requirements) >= 2.121
|
||||||
|
Requires: perl(Exporter)
|
||||||
|
Requires: perl(Module::Metadata) >= 1.000023
|
||||||
|
Requires: perl(strict)
|
||||||
|
Requires: perl(warnings)
|
||||||
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||||
|
%description
|
||||||
|
This module verifies if requirements described in a CPAN::Meta object
|
||||||
|
are present.
|
||||||
|
%package help
|
||||||
|
Summary : Verify requirements in a CPAN::Meta object
|
||||||
|
Provides: perl-CPAN-Meta-Check-doc
|
||||||
|
%description help
|
||||||
|
This module verifies if requirements described in a CPAN::Meta object
|
||||||
|
are present.
|
||||||
|
%prep
|
||||||
|
%setup -q -n CPAN-Meta-Check-%{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 PERL_INSTALL_ROOT=$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 dist.ini LICENSE META.json README
|
||||||
|
%{perl_vendorlib}/*
|
||||||
|
%files help
|
||||||
|
%{_mandir}/*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Wed Jun 30 2021 Perl_Bot <Perl_Bot@openeuler.org> 0.014-1
|
||||||
|
- Specfile autogenerated by Perl_Bot
|
||||||
Loading…
x
Reference in New Issue
Block a user