diff --git a/Time-Duration-1.21.tar.gz b/Time-Duration-1.21.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..7b2c59d5984d18f80b16f4c4fc86c7bddd1bd217 Binary files /dev/null and b/Time-Duration-1.21.tar.gz differ diff --git a/perl-Time-Duration.spec b/perl-Time-Duration.spec new file mode 100644 index 0000000000000000000000000000000000000000..972d2cb01de0c9b4ffdbfad4a753af078b10eba0 --- /dev/null +++ b/perl-Time-Duration.spec @@ -0,0 +1,81 @@ +%global _empty_manifest_terminate_build 0 +Name: perl-Time-Duration +Version: 1.21 +Release: 1 +Summary: Rounded or exact English expression of durations +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Time-Duration/ +Source0: http://www.cpan.org/authors/id/N/NE/NEILB/Time-Duration-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl >= 0:5.006 +BuildRequires: perl-generators +BuildRequires: perl(constant) +BuildRequires: perl(Exporter) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(strict) +BuildRequires: perl(Test) +BuildRequires: perl(warnings) +Requires: perl(constant) +Requires: perl(Exporter) +Requires: perl(strict) +Requires: perl(warnings) +%description +This module provides functions for expressing durations in rounded or +exact terms. +%package help +Summary : Rounded or exact English expression of durations +Provides: perl-Time-Duration-doc +%description help +This module provides functions for expressing durations in rounded or +exact terms. +%prep +%setup -q -n Time-Duration-%{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 dist.ini LICENSE META.json README +%{perl_vendorlib}/* +%files help +%{_mandir}/* + +%changelog +* Sun May 23 2021 Perl_Bot 1.21-1 +- Specfile autogenerated by Perl_Bot