code and spec file

This commit is contained in:
gc7500 2021-06-23 14:59:05 +00:00 committed by Gitee
parent aa74688457
commit 9256d1c565
2 changed files with 85 additions and 0 deletions

Binary file not shown.

85
perl-UNIVERSAL-isa.spec Normal file
View File

@ -0,0 +1,85 @@
%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))
%description
Whenever you use "isa" in UNIVERSAL as a function, a kitten using
Test::MockObject dies. Normally, the kittens would be helpless, but if they
use UNIVERSAL::isa (the module whose docs you are reading), the kittens can
live long and prosper.
%package help
Summary : Attempt to recover from people calling UNIVERSAL::isa as a function
Provides: perl-UNIVERSAL-isa-doc
%description help
Whenever you use "isa" in UNIVERSAL as a function, a kitten using
Test::MockObject dies. Normally, the kittens would be helpless, but if they
use UNIVERSAL::isa (the module whose docs you are reading), the kittens can
live long and prosper.
%prep
%setup -q -n UNIVERSAL-isa-%{version}
%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