diff --git a/PPIx-Regexp-0.085.tar.gz b/PPIx-Regexp-0.085.tar.gz new file mode 100644 index 0000000..5e26126 Binary files /dev/null and b/PPIx-Regexp-0.085.tar.gz differ diff --git a/perl-PPIx-Regexp.spec b/perl-PPIx-Regexp.spec new file mode 100644 index 0000000..f2b9c21 --- /dev/null +++ b/perl-PPIx-Regexp.spec @@ -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 - 0.085-1 +- Init package