diff --git a/Test-Number-Delta-1.06.tar.gz b/Test-Number-Delta-1.06.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..aefab6c65877dc3d61b2708b8eb2ea1ddbb4b6cc Binary files /dev/null and b/Test-Number-Delta-1.06.tar.gz differ diff --git a/perl-Test-Number-Delta.spec b/perl-Test-Number-Delta.spec new file mode 100644 index 0000000000000000000000000000000000000000..853d6379c1b3bbcb4d748eb8d6dfce3006152dde --- /dev/null +++ b/perl-Test-Number-Delta.spec @@ -0,0 +1,96 @@ +%global _empty_manifest_terminate_build 0 +Name: perl-Test-Number-Delta +Version: 1.06 +Release: 1 +Summary: Compare the difference between numbers against a given tolerance +License: GPL-1.0-only or Artistic-1.0-Perl +Group: Development/Libraries +URL: http://search.cpan.org/dist/Test-Number-Delta/ +Source0: http://www.cpan.org/authors/id/D/DA/DAGOLDEN/Test-Number-Delta-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl >= 0:5.006 +BuildRequires: perl-generators +BuildRequires: perl(Carp) +BuildRequires: perl(Exporter) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(File::Spec) +BuildRequires: perl(strict) +BuildRequires: perl(Test::Builder) +BuildRequires: perl(Test::Builder::Tester) >= 1.02 +BuildRequires: perl(Test::More) +BuildRequires: perl(vars) +BuildRequires: perl(warnings) +Requires: perl(Carp) +Requires: perl(Exporter) +Requires: perl(strict) +Requires: perl(vars) +Requires: perl(warnings) +%description +At some point or another, most programmers find they need to compare floating- +point numbers for equality. The typical idiom is to test if the absolute +value of the difference of the numbers is within a desired tolerance, +usually called epsilon. This module provides such a function for use with +Test::More. Usage is similar to other test functions described in +Test::More. Semantically, the delta_within function replaces this kind of +construct: +%package help +Summary : Compare the difference between numbers against a given tolerance +Provides: perl-Test-Number-Delta-doc +%description help +At some point or another, most programmers find they need to compare floating- +point numbers for equality. The typical idiom is to test if the absolute +value of the difference of the numbers is within a desired tolerance, +usually called epsilon. This module provides such a function for use with +Test::More. Usage is similar to other test functions described in +Test::More. Semantically, the delta_within function replaces this kind of +construct: +%prep +%setup -q -n Test-Number-Delta-%{version} +%build +export PERL_MM_OPT="" +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +export PERL_MM_OPT="" +rm -rf $RPM_BUILD_ROOT + +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT + +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* + +pushd %{buildroot} +touch filelist.lst +if [ -d usr/bin ];then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ];then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ];then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib ];then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +popd +mv %{buildroot}/filelist.lst . +%check || : +make test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files -f filelist.lst +%defattr(-,root,root,-) +%doc Changes CONTRIBUTING.mkdn cpanfile dist.ini LICENSE META.json perlcritic.rc README tidyall.ini +%{perl_vendorlib}/* +%files help +%{_mandir}/* + +%changelog +* Sun May 23 2021 Perl_Bot 1.06-1 +- Specfile autogenerated by Perl_Bot