perl-Module-CPANTS-Analyse/perl-Module-CPANTS-Analyse.spec

94 lines
3.1 KiB
RPMSpec

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-Module-CPANTS-Analyse
Version: 1.02
Release: 1mamba
Summary: Module::CPANTS::Analyse - tests a dist for Kwalitee
Group: System/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Aleph0 <aleph0@openmamba.org>
URL: https://www.cpan.org/
Source: http://www.cpan.org/modules/by-module/Module/Module-CPANTS-Analyse-%{version}.tar.gz
License: GPL, Artistic License
## AUTOBUILDREQ-BEGIN
BuildRequires: libperl
BuildRequires: perl-Archive-Any-Lite
BuildRequires: perl-Array-Diff
BuildRequires: perl-CPAN-Meta
BuildRequires: perl-Class-Accessor
BuildRequires: perl-Data-Binary
BuildRequires: perl-Encode
BuildRequires: perl-File-Find-Object
BuildRequires: perl-Module-Find
BuildRequires: perl-Parse-Distname
BuildRequires: perl-Perl-PrereqScanner-NotQuiteLite
BuildRequires: perl-Scalar-List-Utils
BuildRequires: perl-Software-License
BuildRequires: perl-devel
## AUTOBUILDREQ-END
BuildRequires: perl-devel >= %perl_major_ver
BuildRequires: perl-Archive-Tar
BuildRequires: perl-Class-Accessor
BuildRequires: perl-File-chdir
BuildRequires: perl-YAML
BuildRequires: perl-Set-Scalar
BuildRequires: perl-ExtUtils-MakeMaker-CPANfile
Requires: perl >= %perl_major_ver
%description
Module::CPANTS::Anaylse - tests a dist for Kwalitee.
%prep
%setup -q -n Module-CPANTS-Analyse-%{version}
%build
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
%make
%make test
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall_perl
packlist=`find %{buildroot} -name .packlist`
[ -z "$packlist" ] && exit 1 || cat $packlist | \
sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \
sort -u > .packlist && rm $packlist
strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'`
for dir in `find %{buildroot} -type d | grep $strid`; do
echo "%dir ${dir#%buildroot}" >> .packlist
done
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
rm -f .packlist
%files -f .packlist
%defattr(-,root,root)
%changelog
* Sun Sep 10 2023 Automatic Build System <autodist@mambasoft.it> 1.02-1mamba
- automatic version update by autodist
* Sun Dec 06 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.01-1mamba
- update to 1.01
* Thu Mar 21 2013 Automatic Build System <autodist@mambasoft.it> 0.87-1mamba
- automatic version update by autodist
* Sun Jul 12 2009 Automatic Build System <autodist@mambasoft.it> 0.85-1mamba
- automatic update by autodist
* Thu Jun 18 2009 Automatic Build System <autodist@mambasoft.it> 0.83-1mamba
- automatic update by autodist
* Thu Nov 06 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.82-2mamba
- automatic rebuild by autodist
* Mon Oct 20 2008 gil <puntogil@libero.it> 0.82-1mamba
- update to 0.82
* Fri Nov 09 2007 Aleph0 <aleph0@openmamba.org> 0.73-1mamba
- package created by autospec