diff --git a/.gitignore b/.gitignore index e69de29..cfcd961 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Test-API-[0-9.]*.tar.gz diff --git a/perl-Test-API.spec b/perl-Test-API.spec new file mode 100644 index 0000000..a034a99 --- /dev/null +++ b/perl-Test-API.spec @@ -0,0 +1,69 @@ +Name: perl-Test-API +Version: 0.004 +Release: 2%{?dist} +Summary: Test a list of subroutines provided by a module +License: ASL 2.0 +URL: http://search.cpan.org/dist/Test-API/ +Source0: http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/Test-API-%{version}.tar.gz +BuildArch: noarch +# Module Build +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.17 +# Module Runtime +BuildRequires: perl(strict) +BuildRequires: perl(Symbol) +BuildRequires: perl(Test::Builder::Module) >= 0.86 +BuildRequires: perl(warnings) +# Test Suite +BuildRequires: perl(Carp) +BuildRequires: perl(Exporter) +BuildRequires: perl(File::Spec::Functions) +BuildRequires: perl(List::Util) +BuildRequires: perl(Test::Builder::Tester) >= 1.18 +BuildRequires: perl(Test::More) +BuildRequires: perl(version) +# Optional Test Requirements (not available in EPEL-6) +%if "%{?rhel}" != "6" +BuildRequires: perl(CPAN::Meta) +BuildRequires: perl(CPAN::Meta::Requirements) >= 2.120900 +%endif +# Runtime +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +Requires: perl(Test::Builder::Module) >= 0.86 + +%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. + +%prep +%setup -q -n Test-API-%{version} + +%build +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=%{buildroot} +find %{buildroot} -type f -name .packlist -exec rm -f {} \; +%{_fixperms} %{buildroot} + +%check +make test + +%files +%doc Changes CONTRIBUTING LICENSE README +%{perl_vendorlib}/Test/ +%{_mandir}/man3/Test::API.3pm* + +%changelog +* Mon Mar 17 2014 Paul Howarth - 0.004-2 +- Sanitize for Fedora submission + +* Fri Mar 14 2014 Paul Howarth - 0.004-1 +- Update to 0.004 + - class_api_ok function tests methods that may be provided the module + tested or a superclass + - Dropped dependencies on superclass and Devel::Symdump + +* Thu Mar 13 2014 Paul Howarth - 0.003-1 +- Initial RPM version diff --git a/sources b/sources index e69de29..b6ede39 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +ed2abb463dd6448fdf9d949d975903cb Test-API-0.004.tar.gz