diff --git a/Test-API-0.010.tar.gz b/Test-API-0.010.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..a69cdf3395c4f730f619646f7b6e7b04d77db77e Binary files /dev/null and b/Test-API-0.010.tar.gz differ diff --git a/perl-Test-API.spec b/perl-Test-API.spec new file mode 100644 index 0000000000000000000000000000000000000000..7dddb8b6c098ea575c8c1dff6be506b3384365db --- /dev/null +++ b/perl-Test-API.spec @@ -0,0 +1,89 @@ +%global _empty_manifest_terminate_build 0 +Name: perl-Test-API +Version: 0.010 +Release: 1 +Summary: Test a list of subroutines provided by a module +License: Apache-2.0 +Group: Development/Libraries +URL: http://search.cpan.org/dist/Test-API/ +Source0: http://www.cpan.org/authors/id/D/DA/DAGOLDEN/Test-API-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl >= 0:5.006 +BuildRequires: perl-generators +BuildRequires: perl(Carp) +BuildRequires: perl(constant) +BuildRequires: perl(Exporter) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(File::Spec) +BuildRequires: perl(lib) +BuildRequires: perl(strict) +BuildRequires: perl(Symbol) +BuildRequires: perl(Test::Builder::Module) >= 0.86 +BuildRequires: perl(Test::Builder::Tester) >= 1.18 +BuildRequires: perl(Test::More) +BuildRequires: perl(warnings) +Requires: perl(strict) +Requires: perl(Symbol) +Requires: perl(Test::Builder::Module) >= 0.86 +Requires: perl(warnings) +%description +This simple test module checks the subroutines provided by a module. This +is useful for confirming a planned API in testing and ensuring that other +functions aren't unintentionally included via import. +%package help +Summary : Test a list of subroutines provided by a module +Provides: perl-Test-API-doc +%description help +This simple test module checks the subroutines provided by a module. This +is useful for confirming a planned API in testing and ensuring that other +functions aren't unintentionally included via import. +%prep +%setup -q -n Test-API-%{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 CONTRIBUTING.mkdn cpanfile dist.ini LICENSE META.json perlcritic.rc README tidyall.ini +%{perl_vendorlib}/* +%files help +%{_mandir}/* + +%changelog +* Sun May 23 2021 Perl_Bot 0.010-1 +- Specfile autogenerated by Perl_Bot