2024-01-06 09:45:14 +01:00
|
|
|
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
|
|
|
%define with_MinimumVersion 0
|
|
|
|
Name: perl-Test-Script
|
2024-01-06 09:45:14 +01:00
|
|
|
Version: 1.29
|
2024-01-06 09:45:14 +01:00
|
|
|
Release: 1mamba
|
|
|
|
Summary: Test::Script - Basic cross-platform tests for scripts
|
|
|
|
Group: System/Libraries/Perl
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-06 09:45:14 +01:00
|
|
|
URL: https://www.cpan.org/
|
|
|
|
Source: https://cpan.metacpan.org/modules/by-module/Test/Test-Script-%{version}.tar.gz
|
2024-01-06 09:45:14 +01:00
|
|
|
License: GPL, Artistic
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: libperl
|
2024-01-06 09:45:14 +01:00
|
|
|
BuildRequires: perl-Capture-Tiny
|
2024-01-06 09:45:14 +01:00
|
|
|
BuildRequires: perl-Probe-Perl
|
|
|
|
BuildRequires: perl-Test-Simple
|
|
|
|
BuildRequires: perl-devel
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
BuildRequires: perl(IPC::Run3)
|
|
|
|
BuildRequires: perl(Probe::Perl)
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
BuildRequires: perl(Test::CPAN::Meta)
|
|
|
|
BuildRequires: perl(Test::Pod)
|
|
|
|
%if %with_MinimumVersion
|
|
|
|
# TODO
|
|
|
|
BuildRequires: perl(Perl::MinimumVersion)
|
|
|
|
BuildRequires: perl(Test::MinimumVersion)
|
|
|
|
%endif
|
2024-01-06 09:45:14 +01:00
|
|
|
BuildRequires: perl-Test2-Suite
|
2024-01-06 09:45:14 +01:00
|
|
|
BuildRequires: perl-devel
|
|
|
|
Requires: perl >= %perl_major_ver
|
|
|
|
|
|
|
|
%description
|
|
|
|
The intent of this module is to provide a series of basic tests for scripts in the bin directory of your Perl distribution.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n Test-Script-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
|
|
|
|
%make
|
|
|
|
%if %with_MinimumVersion
|
|
|
|
%make test AUTOMATED_TESTING=1 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}/
|
2024-01-06 09:45:14 +01:00
|
|
|
%{_mandir}/man3/Test::Script.3pm*
|
2024-01-06 09:45:14 +01:00
|
|
|
%doc LICENSE
|
|
|
|
|
|
|
|
%changelog
|
2024-01-06 09:45:14 +01:00
|
|
|
* Sun May 23 2021 Automatic Build System <autodist@mambasoft.it> 1.29-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 09:45:14 +01:00
|
|
|
* Fri Feb 18 2011 gil <puntogil@libero.it> 1.07-1mamba
|
|
|
|
- package created by autospec
|