2009-11-28 21:43:57 +00:00
|
|
|
#
|
2010-11-24 21:53:51 +00:00
|
|
|
# spec file for package perl-Test-ClassAPI (Version 1.06)
|
2009-11-28 21:43:57 +00:00
|
|
|
#
|
2010-11-24 21:53:51 +00:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2009-11-28 21:43:57 +00:00
|
|
|
#
|
2010-11-24 21:53:51 +00:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2009-11-28 21:43:57 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2010-12-14 10:53:57 +00:00
|
|
|
|
2010-11-24 21:53:51 +00:00
|
|
|
Name: perl-Test-ClassAPI
|
2009-11-28 21:43:57 +00:00
|
|
|
%define cpan_name Test-ClassAPI
|
2010-11-24 21:53:51 +00:00
|
|
|
Summary: Provides basic first-pass API testing for large class trees
|
|
|
|
Version: 1.06
|
|
|
|
Release: 1
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
Url: http://search.cpan.org/dist/Test-ClassAPI/
|
|
|
|
#Source: http://www.cpan.org/authors/id/A/AD/ADAMK/Test-ClassAPI-1.06.tar.gz
|
|
|
|
Source: %{cpan_name}-%{version}.tar.bz2
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-12-03 14:51:55 +00:00
|
|
|
%{perl_requires}
|
2010-11-24 21:53:51 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
BuildRequires: perl(Test::More) >= 0.47
|
|
|
|
BuildRequires: perl(Class::Inspector) >= 1.12
|
|
|
|
BuildRequires: perl(Config::Tiny) >= 2.00
|
|
|
|
BuildRequires: perl(File::Spec) >= 0.83
|
|
|
|
BuildRequires: perl(Params::Util) >= 1.00
|
|
|
|
#
|
|
|
|
Requires: perl(Class::Inspector) >= 1.12
|
|
|
|
Requires: perl(Config::Tiny) >= 2.00
|
|
|
|
Requires: perl(File::Spec) >= 0.83
|
|
|
|
Requires: perl(Params::Util) >= 1.00
|
2009-11-28 21:43:57 +00:00
|
|
|
|
|
|
|
%description
|
2010-11-24 21:53:51 +00:00
|
|
|
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.
|
2009-11-28 21:43:57 +00:00
|
|
|
|
|
|
|
Authors:
|
2010-11-24 21:53:51 +00:00
|
|
|
--------
|
|
|
|
Adam Kennedy <adamk@cpan.org>
|
2009-11-28 21:43:57 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
|
|
|
|
|
|
%build
|
2010-11-24 21:53:51 +00:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%{__make} %{?_smp_mflags}
|
2009-11-28 21:43:57 +00:00
|
|
|
|
|
|
|
%check
|
2010-11-24 21:53:51 +00:00
|
|
|
%{__make} test
|
2009-11-28 21:43:57 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
2010-11-24 21:53:51 +00:00
|
|
|
### since 11.4 perl_process_packlist
|
|
|
|
### removes .packlist, perllocal.pod files
|
|
|
|
%if 0%{?suse_version} > 1130
|
2009-11-28 21:43:57 +00:00
|
|
|
%perl_process_packlist
|
2010-11-24 21:53:51 +00:00
|
|
|
%else
|
|
|
|
# do not perl_process_packlist
|
|
|
|
# remove .packlist file
|
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch
|
|
|
|
# remove perllocal.pod file
|
|
|
|
%{__rm} -f $RPM_BUILD_ROOT%perl_archlib/perllocal.pod
|
|
|
|
%endif
|
|
|
|
%perl_gen_filelist
|
2009-11-28 21:43:57 +00:00
|
|
|
|
|
|
|
%clean
|
2010-11-24 21:53:51 +00:00
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
2009-11-28 21:43:57 +00:00
|
|
|
|
2010-11-24 21:53:51 +00:00
|
|
|
%files -f %{name}.files
|
2009-11-28 21:43:57 +00:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc Changes LICENSE README
|
|
|
|
|
|
|
|
%changelog
|