61 lines
1.8 KiB
RPMSpec
61 lines
1.8 KiB
RPMSpec
%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 <puntogil@libero.it>
|
|
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 <puntogil@libero.it> 1.06-1mamba
|
|
- package created by autospec
|