!1 Init package

From: @misaka00251 
Reviewed-by: @shinwell_hu 
Signed-off-by: @shinwell_hu
This commit is contained in:
openeuler-ci-bot 2022-10-12 02:22:12 +00:00 committed by Gitee
commit 677dac4124
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 118 additions and 0 deletions

BIN
PPI-1.274.tar.gz Normal file

Binary file not shown.

118
perl-PPI.spec Normal file
View File

@ -0,0 +1,118 @@
%global _empty_manifest_terminate_build 0
Name: perl-PPI
Version: 1.274
Release: 1
Summary: Parse, Analyze and Manipulate Perl
License: GPL+ or Artistic
URL: https://metacpan.org/release/PPI
Source0: https://cpan.metacpan.org/modules/by-module/PPI/PPI-%{version}.tar.gz
BuildArch: noarch
BuildRequires: perl >= 0:5.006
BuildRequires: perl-generators
BuildRequires: perl(Carp)
BuildRequires: perl(Class::Inspector) >= 1.22
BuildRequires: perl(Clone) >= 0.30
BuildRequires: perl(constant)
BuildRequires: perl(Digest::MD5) >= 2.35
BuildRequires: perl(Encode)
BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Path)
BuildRequires: perl(File::Spec) >= 0.84
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(File::Temp)
BuildRequires: perl(List::Util) >= 1.33
BuildRequires: perl(Params::Util) >= 1.00
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Storable) >= 2.17
BuildRequires: perl(strict)
BuildRequires: perl(Task::Weaken)
BuildRequires: perl(Test::More) >= 0.96
BuildRequires: perl(Test::NoWarnings)
BuildRequires: perl(Test::Object) >= 0.07
BuildRequires: perl(Test::SubCalls) >= 1.07
BuildRequires: perl(utf8)
BuildRequires: perl(warnings)
Requires: perl(Carp)
Requires: perl(Clone) >= 0.30
Requires: perl(constant)
Requires: perl(Digest::MD5) >= 2.35
Requires: perl(Exporter)
Requires: perl(File::Path)
Requires: perl(File::Spec)
Requires: perl(List::Util) >= 1.33
Requires: perl(Params::Util) >= 1.00
Requires: perl(Scalar::Util)
Requires: perl(Storable) >= 2.17
Requires: perl(strict)
Requires: perl(Task::Weaken)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
# Strip unwanted dependencies
%global __provides_exclude ^perl\\(PPI::.+\\)$
%description
Parse, analyze and manipulate Perl (without perl).
%package help
Summary: Parse, Analyze and Manipulate Perl (without perl)
Provides: perl-PPI-doc
%description help
Docs of perl-PPI
%prep
%setup -q -n PPI-%{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 cpanfile dev_notes.txt dist.ini LICENSE META.json README
%{perl_vendorlib}/*
%files help
%{_mandir}/*
%changelog
* Wed Jul 06 2022 misaka00251 <misaka00251@misakanet.cn> - 1.274-1
- Init package