diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..338d485 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/PPIx-Utils-0.003.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 691b298..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# perl-PPIx-Utils - -The perl-PPIx-Utils package diff --git a/perl-PPIx-Utils.spec b/perl-PPIx-Utils.spec new file mode 100644 index 0000000..3762132 --- /dev/null +++ b/perl-PPIx-Utils.spec @@ -0,0 +1,65 @@ +Name: perl-PPIx-Utils +Version: 0.003 +Release: 2%{?dist} +Summary: Utility functions for PPI +License: GPL+ or Artistic + +URL: https://metacpan.org/release/PPIx-Utils/ +Source0: https://cpan.metacpan.org/authors/id/D/DB/DBOOK/PPIx-Utils-%{version}.tar.gz + +BuildArch: noarch + +BuildRequires: %{__make} +BuildRequires: perl-interpreter >= 0:5.008005 +BuildRequires: perl-generators + +BuildRequires: perl >= 0:5.006 +BuildRequires: perl(B::Keywords) >= 1.09 +BuildRequires: perl(Data::Dumper) +BuildRequires: perl(Exporter) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(File::Spec) +BuildRequires: perl(PPI) >= 1.250 +BuildRequires: perl(PPI::Dumper) +BuildRequires: perl(Scalar::Util) +BuildRequires: perl(Test::More) >= 0.88 + +Requires: perl(B::Keywords) >= 1.09 +Requires: perl(PPI) >= 1.250 + +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +# Filter duplicate unversioned requires +%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(B::Keywords\\)$ + +%description +PPIx::Utils is a collection of utility functions for working with PPI +documents. The functions are organized into submodules, and may be imported +from the appropriate submodule or via this module. + +%prep +%setup -q -n PPIx-Utils-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 +%{make_build} + +%install +%{make_install} +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +%{__make} test + +%files +%license LICENSE +%doc Changes README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Tue May 04 2021 Ralf Corsépius - 0.003-1 +- Reflect review. + +* Tue Apr 27 2021 Ralf Corsépius - 0.003-1 +- Initial Fedora package. diff --git a/sources b/sources new file mode 100644 index 0000000..abcf56e --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (PPIx-Utils-0.003.tar.gz) = 7f56bc2bf2afbf1f6d3c0e5bc0ed21752be809714e32b256feb1ea39125c7671c6ef949e2c122a95a41d3a603f5d5253133886f3700890387ad6cf0732ab87c6