2021-06-23 14:59:05 +00:00
|
|
|
%global _empty_manifest_terminate_build 0
|
|
|
|
|
Name: perl-UNIVERSAL-isa
|
|
|
|
|
Version: 1.20171012
|
|
|
|
|
Release: 1
|
|
|
|
|
Summary: Attempt to recover from people calling UNIVERSAL::isa as a function
|
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
URL: http://search.cpan.org/dist/UNIVERSAL-isa/
|
|
|
|
|
Source0: http://www.cpan.org/authors/id/E/ET/ETHER/UNIVERSAL-isa-%{version}.tar.gz
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
BuildRequires: perl >= 0:5.006002
|
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
|
BuildRequires: perl(File::Spec)
|
|
|
|
|
BuildRequires: perl(Scalar::Util)
|
|
|
|
|
BuildRequires: perl(strict)
|
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
|
BuildRequires: perl(warnings)
|
|
|
|
|
Requires: perl(Scalar::Util)
|
|
|
|
|
Requires: perl(strict)
|
|
|
|
|
Requires: perl(warnings)
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
2021-06-25 15:57:17 +00:00
|
|
|
|
2021-06-23 14:59:05 +00:00
|
|
|
%description
|
2021-06-25 15:57:17 +00:00
|
|
|
perl-UNIVERSAL-isa - Hack around module authors using UNIVERSAL::isa as a function
|
|
|
|
|
|
2021-06-23 14:59:05 +00:00
|
|
|
%package help
|
|
|
|
|
Summary : Attempt to recover from people calling UNIVERSAL::isa as a function
|
|
|
|
|
Provides: perl-UNIVERSAL-isa-doc
|
2021-06-25 15:57:17 +00:00
|
|
|
|
2021-06-23 14:59:05 +00:00
|
|
|
%description help
|
2021-06-25 15:57:17 +00:00
|
|
|
perl-UNIVERSAL-isa - Hack around module authors using UNIVERSAL::isa as a function
|
|
|
|
|
|
2021-06-23 14:59:05 +00:00
|
|
|
%prep
|
|
|
|
|
%setup -q -n UNIVERSAL-isa-%{version}
|
2021-06-25 15:57:17 +00:00
|
|
|
|
2021-06-23 14:59:05 +00:00
|
|
|
%build
|
|
|
|
|
export PERL_MM_OPT=""
|
|
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
export PERL_MM_OPT=""
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
|
|
|
|
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
|
|
|
|
|
|
|
|
|
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
|
|
|
|
|
|
|
pushd %{buildroot}
|
|
|
|
|
touch filelist.lst
|
|
|
|
|
if [ -d usr/bin ];then
|
|
|
|
|
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
|
|
|
|
fi
|
|
|
|
|
if [ -d usr/sbin ];then
|
|
|
|
|
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
|
|
|
|
fi
|
|
|
|
|
if [ -d usr/lib64 ];then
|
|
|
|
|
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
|
|
|
|
|
fi
|
|
|
|
|
if [ -d usr/lib ];then
|
|
|
|
|
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
|
|
|
|
|
fi
|
|
|
|
|
popd
|
|
|
|
|
mv %{buildroot}/filelist.lst .
|
|
|
|
|
%check
|
|
|
|
|
make test
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
%files -f filelist.lst
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%doc Changes CONTRIBUTING dist.ini LICENCE META.json README
|
|
|
|
|
%{perl_vendorlib}/*
|
|
|
|
|
%files help
|
|
|
|
|
%{_mandir}/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Jun 23 2021 Perl_Bot <Perl_Bot@openeuler.org> 1.20171012-1
|
|
|
|
|
- Specfile autogenerated by Perl_Bot
|