!1 Init package

From: @misaka00251 
Reviewed-by: @shinwell_hu 
Signed-off-by: @shinwell_hu
This commit is contained in:
openeuler-ci-bot 2022-10-14 03:10:25 +00:00 committed by Gitee
commit 1353e36076
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 105 additions and 0 deletions

BIN
PPIx-Regexp-0.085.tar.gz Normal file

Binary file not shown.

105
perl-PPIx-Regexp.spec Normal file
View File

@ -0,0 +1,105 @@
%global _empty_manifest_terminate_build 0
Name: perl-PPIx-Regexp
Version: 0.085
Release: 1
Summary: Represent a regular expression of some sort
License: GPL+ or Artistic
URL: https://metacpan.org/release/PPIx-Regexp
Source0: https://cpan.metacpan.org/authors/id/W/WY/WYANT/PPIx-Regexp-%{version}.tar.gz
BuildArch: noarch
BuildRequires: perl >= 0:5.006
BuildRequires: perl-generators
BuildRequires: perl(Carp)
BuildRequires: perl(constant)
BuildRequires: perl(Encode)
BuildRequires: perl(Exporter)
BuildRequires: perl(List::Util)
BuildRequires: perl(Module::Build)
BuildRequires: perl(PPI::Document) >= 1.238
BuildRequires: perl(PPI::Dumper) >= 1.238
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(strict)
BuildRequires: perl(Task::Weaken)
BuildRequires: perl(Test::More) >= 0.88
BuildRequires: perl(warnings)
Requires: perl(Carp)
Requires: perl(constant)
Requires: perl(Encode)
Requires: perl(Exporter)
Requires: perl(List::Util)
Requires: perl(PPI::Document) >= 1.238
Requires: perl(PPI::Dumper) >= 1.238
Requires: perl(Scalar::Util)
Requires: perl(strict)
Requires: perl(Task::Weaken)
Requires: perl(warnings)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
The purpose of the PPIx-Regexp package is to parse regular expressions in a
manner similar to the way the PPI package parses Perl. This class forms the
root of the parse tree, playing a role similar to PPI::Document.
%package help
Summary: Represent a regular expression of some sort
Provides: perl-PPIx-Regexp-doc
%description help
The purpose of the PPIx-Regexp package is to parse regular expressions in a
manner similar to the way the PPI package parses Perl. This class forms the
root of the parse tree, playing a role similar to PPI::Document.
%prep
%setup -q -n PPIx-Regexp-%{version}
%build
export PERL_MM_OPT=""
%{__perl} Build.PL --installdirs=vendor
./Build
%install
export PERL_MM_OPT=""
rm -rf $RPM_BUILD_ROOT
./Build install --destdir=$RPM_BUILD_ROOT --create_packlist=0
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
./Build test
%clean
rm -rf $RPM_BUILD_ROOT
%files -f filelist.lst
%defattr(-,root,root,-)
%doc Changes CONTRIBUTING eg LICENSES META.json README xt
%{perl_vendorlib}/*
%files help
%{_mandir}/*
%changelog
* Wed Jul 06 2022 misaka00251 <misaka00251@misakanet.cn> - 0.085-1
- Init package