diff --git a/Test-CPAN-Meta-0.25.tar.gz b/Test-CPAN-Meta-0.25.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..5aa37950954b84e84d1d99d966528fc4e43e21d9 Binary files /dev/null and b/Test-CPAN-Meta-0.25.tar.gz differ diff --git a/perl-Test-CPAN-Meta.spec b/perl-Test-CPAN-Meta.spec new file mode 100644 index 0000000000000000000000000000000000000000..56cc33c5ef7a56f9aac1a941c837eaa7ca5e709b --- /dev/null +++ b/perl-Test-CPAN-Meta.spec @@ -0,0 +1,80 @@ +%global _empty_manifest_terminate_build 0 +Name: perl-Test-CPAN-Meta +Version: 0.25 +Release: 1 +Summary: Validate your CPAN META.yml files +License: Artistic 2.0 +Group: Development/Libraries +URL: http://search.cpan.org/dist/Test-CPAN-Meta/ +Source0: http://www.cpan.org/authors/id/B/BA/BARBIE/Test-CPAN-Meta-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: perl >= 0:5.006 perl-generators perl(ExtUtils::MakeMaker) perl(IO::File) perl(Parse::CPAN::Meta) >= 0.02 perl(Test::Builder) perl(Test::Builder::Tester) perl(Test::More) >= 0.70 perl(Test::Pod) >= 1.00 perl(Test::Pod::Coverage) >= 0.08 + +Requires: perl(Parse::CPAN::Meta) >= 0.02 perl(Test::Builder) perl(Test::Pod) >= 1.00 perl(Test::Pod::Coverage) >= 0.08 perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +This distribution was written to ensure that a META.yml file, provided with +a standard distribution uploaded to CPAN, meets the specifications that are +slowly being introduced to module uploads, via the use of package makers +and installers such as ExtUtils::MakeMaker, Module::Build and +Module::Install. +%package help +Summary : Validate your CPAN META.yml files +Provides: perl-Test-CPAN-Meta-help +%description help +This distribution was written to ensure that a META.yml file, provided with +a standard distribution uploaded to CPAN, meets the specifications that are +slowly being introduced to module uploads, via the use of package makers +and installers such as ExtUtils::MakeMaker, Module::Build and +Module::Install. +%prep +%setup -q -n Test-CPAN-Meta-%{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 LICENSE META.json README +%{perl_vendorlib}/* +%files help +%{_mandir}/* + +%changelog +* Wed Aug 12 2020 weidong 0.25-1 +- Initial release for OpenEuler diff --git a/perl-Test-CPAN-Meta.yaml b/perl-Test-CPAN-Meta.yaml new file mode 100644 index 0000000000000000000000000000000000000000..3ea8c5633c25aae843bdd1ad74011e9dfdc0e2b7 --- /dev/null +++ b/perl-Test-CPAN-Meta.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: barbie/Test-CPAN-Meta +tag_prefix: "release-" +seperator: "."