diff --git a/Number-Compare-0.03.tar.gz b/Number-Compare-0.03.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..1fb122f6bc8371b17e674505e0009b75b13ab7ed Binary files /dev/null and b/Number-Compare-0.03.tar.gz differ diff --git a/perl-Number-Compare.spec b/perl-Number-Compare.spec new file mode 100644 index 0000000000000000000000000000000000000000..6df4ed121ca95620e2ed81e366914ca3ab69e549 --- /dev/null +++ b/perl-Number-Compare.spec @@ -0,0 +1,68 @@ +%global _empty_manifest_terminate_build 0 +Name: perl-Number-Compare +Version: 0.03 +Release: 1%{?dist} +Summary: Numeric comparisons +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Number-Compare/ +Source0: http://www.cpan.org/authors/id/R/RC/RCLAMP/Number-Compare-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Test::More) +Requires: perl(Test::More) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +%description +Number::Compare compiles a simple comparison to an anonymous subroutine, +which you can call with a value to be tested again. +%package help +Summary : Numeric comparisons +Provides: perl-Number-Compare-doc +%description help +Number::Compare compiles a simple comparison to an anonymous subroutine, +which you can call with a value to be tested again. +%prep +%setup -q -n Number-Compare-%{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 +popd +mv %{buildroot}/filelist.lst . +%check +make test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files -f filelist.lst +%defattr(-,root,root,-) +%doc Changes +%{perl_vendorlib}/* +%files help +%{_mandir}/* + +%changelog +* Wed Jun 10 2020 Perl_Bot 0.03-1 +- Specfile autogenerated by Perl_Bot