perl-PPI/perl-PPI.spec

107 lines
3.1 KiB
RPMSpec
Raw Normal View History

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
%define with_MinimumVersion 0
Name: perl-PPI
Version: 1.275
Release: 1mamba
Summary: PPI - Parse, Analyze and Manipulate Perl (without perl)
Group: System/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.cpan.org
Source: https://cpan.metacpan.org/modules/by-module/PPI/PPI-%{version}.tar.gz
License: GPL, Artistic
## AUTOBUILDREQ-BEGIN
BuildRequires: libperl
BuildRequires: perl-Clone
BuildRequires: perl-Params-Util
BuildRequires: perl-devel
## AUTOBUILDREQ-END
BuildRequires: perl(Clone)
BuildRequires: perl(Digest::MD5)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Find::Rule)
BuildRequires: perl(File::Remove)
BuildRequires: perl(IO::String)
BuildRequires: perl(List::MoreUtils)
BuildRequires: perl(List::Util)
BuildRequires: perl(Params::Util)
BuildRequires: perl(Storable)
BuildRequires: perl(Task::Weaken)
BuildRequires: perl(Test::ClassAPI)
BuildRequires: perl(Test::CPAN::Meta)
%if %with_MinimumVersion
# TODO
BuildRequires: perl(Perl::MinimumVersion)
BuildRequires: perl(Test::MinimumVersion)
%endif
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::NoWarnings)
BuildRequires: perl(Test::Object)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::SubCalls)
BuildRequires: perl-devel
Requires: perl >= %perl_major_ver
%description
PPI - Parse, Analyze and Manipulate Perl (without perl)
%prep
%setup -q -n PPI-%{version}
iconv -f iso8859-1 -t utf-8 < Changes > Changes.1
mv Changes.1 Changes
chmod -c 644 lib/PPI/Document/File.pm
%build
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
%make
%if %with_MinimumVersion
%make test TEST_FILES="xt/*.t" RELEASE_TESTING=1
%else
%make test
%endif
%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}/PPI.pm
%{perl_vendorlib}/PPI/
%{_mandir}/man3/*.3pm*
%doc LICENSE
%changelog
* Tue Jul 19 2022 Automatic Build System <autodist@mambasoft.it> 1.275-1mamba
- automatic version update by autodist
* Thu May 05 2022 Automatic Build System <autodist@mambasoft.it> 1.274-1mamba
- automatic version update by autodist
* Sat Apr 23 2022 Automatic Build System <autodist@mambasoft.it> 1.273-1mamba
- automatic version update by autodist
* Sat Feb 05 2022 Automatic Build System <autodist@mambasoft.it> 1.272-1mamba
- automatic version update by autodist
* Wed Jan 26 2022 Automatic Build System <autodist@mambasoft.it> 1.271-1mamba
- automatic version update by autodist
* Sat Feb 27 2021 Automatic Build System <autodist@mambasoft.it> 1.270-1mamba
- automatic version update by autodist
* Mon May 02 2011 Automatic Build System <autodist@mambasoft.it> 1.215-1mamba
- automatic update by autodist
* Thu Feb 17 2011 gil <puntogil@libero.it> 1.213-1mamba
- package created by autospec