forked from pool/perl-Test-ClassAPI
Accepting request 530750 from devel:languages:perl:tobefixed
fix OBS-URL: https://build.opensuse.org/request/show/530750 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Test-ClassAPI?expand=0&rev=15
This commit is contained in:
committed by
Git OBS Bridge
parent
ec5692ca91
commit
933f59632e
3
cpanspec.yml
Normal file
3
cpanspec.yml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
post_prep:
|
||||||
|
sed -i -e 's/use inc::Module::Install/use lib q[.];\nuse inc::Module::Install/' Makefile.PL
|
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Oct 3 08:21:21 UTC 2017 - coolo@suse.com
|
||||||
|
|
||||||
|
- patch the Makefile to build with perl 5.26
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Nov 18 11:08:07 UTC 2011 - coolo@suse.com
|
Fri Nov 18 11:08:07 UTC 2011 - coolo@suse.com
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package perl-Test-ClassAPI
|
# spec file for package perl-Test-ClassAPI
|
||||||
#
|
#
|
||||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -15,34 +15,28 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
# norootforbuild
|
|
||||||
|
|
||||||
|
|
||||||
Name: perl-Test-ClassAPI
|
Name: perl-Test-ClassAPI
|
||||||
|
Version: 1.06
|
||||||
|
Release: 0
|
||||||
%define cpan_name Test-ClassAPI
|
%define cpan_name Test-ClassAPI
|
||||||
Summary: Provides basic first-pass API testing for large class trees
|
Summary: Provides basic first-pass API testing for large class trees
|
||||||
Version: 1.06
|
License: Artistic-1.0 or GPL-1.0+
|
||||||
Release: 2
|
|
||||||
License: GPL+ or Artistic
|
|
||||||
Group: Development/Libraries/Perl
|
Group: Development/Libraries/Perl
|
||||||
Url: http://search.cpan.org/dist/Test-ClassAPI/
|
Url: http://search.cpan.org/dist/Test-ClassAPI/
|
||||||
#Source: http://www.cpan.org/authors/id/A/AD/ADAMK/Test-ClassAPI-1.06.tar.gz
|
Source0: https://cpan.metacpan.org/authors/id/A/AD/ADAMK/%{cpan_name}-%{version}.tar.gz
|
||||||
Source: %{cpan_name}-%{version}.tar.gz
|
Source1: cpanspec.yml
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%{perl_requires}
|
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
BuildRequires: perl-macros
|
BuildRequires: perl-macros
|
||||||
BuildRequires: perl(Test::More) >= 0.47
|
|
||||||
BuildRequires: perl(Class::Inspector) >= 1.12
|
BuildRequires: perl(Class::Inspector) >= 1.12
|
||||||
BuildRequires: perl(Config::Tiny) >= 2.00
|
BuildRequires: perl(Config::Tiny) >= 2.00
|
||||||
BuildRequires: perl(File::Spec) >= 0.83
|
|
||||||
BuildRequires: perl(Params::Util) >= 1.00
|
BuildRequires: perl(Params::Util) >= 1.00
|
||||||
#
|
|
||||||
Requires: perl(Class::Inspector) >= 1.12
|
Requires: perl(Class::Inspector) >= 1.12
|
||||||
Requires: perl(Config::Tiny) >= 2.00
|
Requires: perl(Config::Tiny) >= 2.00
|
||||||
Requires: perl(File::Spec) >= 0.83
|
|
||||||
Requires: perl(Params::Util) >= 1.00
|
Requires: perl(Params::Util) >= 1.00
|
||||||
|
%{perl_requires}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
For many APIs with large numbers of classes, it can be very useful to be
|
For many APIs with large numbers of classes, it can be very useful to be
|
||||||
@@ -50,12 +44,11 @@ able to do a quick once-over to make sure that classes, methods, and
|
|||||||
inheritance is correct, before doing more comprehensive testing. This
|
inheritance is correct, before doing more comprehensive testing. This
|
||||||
module aims to provide such a capability.
|
module aims to provide such a capability.
|
||||||
|
|
||||||
Authors:
|
|
||||||
--------
|
|
||||||
Adam Kennedy <adamk@cpan.org>
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{cpan_name}-%{version}
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
|
# MANUAL BEGIN
|
||||||
|
sed -i -e 's/use inc::Module::Install/use lib q[.];\nuse inc::Module::Install/' Makefile.PL
|
||||||
|
# MANUAL END
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||||
@@ -66,24 +59,12 @@ Authors:
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%perl_make_install
|
%perl_make_install
|
||||||
### since 11.4 perl_process_packlist
|
|
||||||
### removes .packlist, perllocal.pod files
|
|
||||||
%if 0%{?suse_version} > 1130
|
|
||||||
%perl_process_packlist
|
%perl_process_packlist
|
||||||
%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
|
%perl_gen_filelist
|
||||||
|
|
||||||
%clean
|
|
||||||
%{__rm} -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%files -f %{name}.files
|
%files -f %{name}.files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,755)
|
||||||
%doc Changes LICENSE README
|
%doc Changes README
|
||||||
|
%license LICENSE
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user