8
0
Files
perl-Test-ClassAPI/perl-Test-ClassAPI.spec

75 lines
2.0 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-Test-ClassAPI (Version 1.06)
#
# Copyright (c) 2009 Novell
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://www.suse.de/feedback/
#
# norootforbuild
Name: perl-Test-ClassAPI
Version: 1.06
Release: 1
%define cpan_name Test-ClassAPI
Provides: %cpan_name
Requires: perl = %{perl_version}
Requires: perl-Params-Util >= 1.00
Requires: perl-Class-Inspector >= 1.12
Requires: perl-Config-Tiny >= 2.00
Autoreqprov: on
Group: Development/Libraries/Perl
License: Artistic License, GPL, see package
URL: http://search.cpan.org/~adamk/Test-ClassAPI-1.06/lib/Test/ClassAPI.pm
Summary: Test::ClassAPI - Provides basic first-pass API testing for large class trees
Source0: %{cpan_name}-%{version}.tar.gz
BuildRequires: perl-Params-Util >= 1.00
BuildRequires: perl-Class-Inspector >= 1.12
BuildRequires: perl-Config-Tiny >= 2.00
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-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.
Authors:
Adam Kennedy <adamk@cpan.org>
%prep
%setup -q -n %{cpan_name}-%{version}
%build
perl Makefile.PL
make
%check
make test
%install
%perl_make_install
%perl_process_packlist
%__rm -f %{buildroot}%{perl_vendorarch}/auto/Test/ClassAPI/.packlist
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc Changes LICENSE README
%doc %{_mandir}/man3/*
%dir %{perl_vendorlib}/Test
%{perl_vendorlib}/Test/ClassAPI.pm
/var/adm/perl-modules/%{name}
%changelog
* Wed Oct 14 2009 Robert Schweikert <rschweikert@novell.com> - Test-ClassAPI
- Initial build.