diff --git a/README.md b/README.md index 5fe176c..d5e46ba 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ # perl-Test-ClassAPI +For many APIs with large numbers of classes, it can be very useful to be able to do a quick once-over to make sure that +classes, methods, and inheritance is correct, before doing more comprehensive testing. This module aims to provide such +a capability. + diff --git a/perl-Test-ClassAPI.spec b/perl-Test-ClassAPI.spec new file mode 100644 index 0000000..5af82d6 --- /dev/null +++ b/perl-Test-ClassAPI.spec @@ -0,0 +1,60 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: perl-Test-ClassAPI +Version: 1.06 +Release: 1mamba +Summary: Test::ClassAPI - Provides basic first-pass API testing for large class trees +Group: System/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: gil +URL: http://www.cpan.org +Source: http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/Test-ClassAPI-%{version}.tar.gz +License: GPL, Artistic +BuildRequires: perl(Class::Inspector) +BuildRequires: perl(Config::Tiny) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(File::Spec) +BuildRequires: perl(Params::Util) +BuildRequires: perl(Pod::Simple) +BuildRequires: perl(Test::CPAN::Meta) +#BuildRequires: perl(Test::MinimumVersion) +BuildRequires: perl(Test::Pod) +BuildRequires: perl-devel +Requires: perl >= %perl_major_ver +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +For many APIs with large numbers of classes, it can be very useful to be able to do a quick once-over to make sure that +classes, methods, and inheritance is correct, before doing more comprehensive testing. This module aims to provide such +a capability. + +%prep +%setup -q -n Test-ClassAPI-%{version} + + +%build +perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor +%make +%make test + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall_perl + +find %{buildroot} -type f -name .packlist -exec rm -f {} ';' +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' +chmod -R u+w %{buildroot}/* + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{perl_vendorlib}/Test/ +%{_mandir}/man3/*.3pm.gz +%doc Changes LICENSE README + +%changelog +* Fri Feb 18 2011 gil 1.06-1mamba +- package created by autospec