66 lines
2.0 KiB
RPMSpec
66 lines
2.0 KiB
RPMSpec
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
|
|
|
Name: perl-PPIx-Utilities
|
|
Version: 1.001000
|
|
Release: 2mamba
|
|
Summary: PPIx::Utilities - Extensions to PPI
|
|
Group: System/Libraries/Perl
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Automatic Build System <autodist@mambasoft.it>
|
|
URL: https://www.cpan.org/
|
|
Source: http://search.cpan.org/CPAN/authors/id/E/EL/ELLIOTJS/PPIx-Utilities-%{version}.tar.gz
|
|
License: GPL, Artistic
|
|
BuildRequires: perl(Data::Dumper)
|
|
BuildRequires: perl(Exception::Class)
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
BuildRequires: perl(File::Slurp)
|
|
BuildRequires: perl(PPI::Document)
|
|
BuildRequires: perl(PPI::Dumper)
|
|
BuildRequires: perl(Readonly)
|
|
BuildRequires: perl(Task::Weaken)
|
|
BuildRequires: perl(Test::Deep)
|
|
BuildRequires: perl(Test::More)
|
|
BuildRequires: perl-devel
|
|
Requires: perl >= %perl_major_ver
|
|
Requires: perl(Exporter)
|
|
|
|
%description
|
|
This is a collection of functions for dealing with PPI objects, many of
|
|
which originated in Perl::Critic. They are organized into modules by the
|
|
kind of PPI class they relate to, by replacing the "PPI" at the front of
|
|
the module name with "PPIx::Utilities", e.g. functionality related to
|
|
PPI::Nodes is in PPIx::Utilities::Node.
|
|
|
|
%prep
|
|
%setup -q -n PPIx-Utilities-%{version}
|
|
|
|
%build
|
|
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
|
|
%make
|
|
%make test
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
%makeinstall_perl
|
|
|
|
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
|
|
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
|
|
chmod -R u+w %{buildroot}/*
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{perl_vendorlib}/PPIx/
|
|
%{_mandir}/man3/*.3pm.gz
|
|
%doc Changes LICENSE README
|
|
|
|
%changelog
|
|
* Wed Sep 07 2022 Automatic Build System <autodist@mambasoft.it> 1.001000-2mamba
|
|
- automatic rebuild by autodist
|
|
|
|
* Fri Feb 18 2011 gil <puntogil@libero.it> 1.001000-1mamba
|
|
- package created by autospec
|