diff --git a/DateTime-1.55.tar.gz b/DateTime-1.55.tar.gz new file mode 100644 index 0000000..f35269a --- /dev/null +++ b/DateTime-1.55.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:83eee03e377e0e6f8bdaa250353b5860a551b69cec46a327e489145b97f5abd0 +size 319958 diff --git a/perl-DateTime.spec b/perl-DateTime.spec index 7fe2985..9c26702 100644 --- a/perl-DateTime.spec +++ b/perl-DateTime.spec @@ -1,58 +1,121 @@ -%define name perl-DateTime -%define version 1.0 -%define release 1 -Summary: This is what perl-DateTime does. -Name: %{name} -Version: %{version} -Release: %{release}%{?dist} -Source: %{name}-%{version}.tar.gz -License: GNU GPL version 2 -Group: SMEserver/addon -BuildRoot: %{_tmppath}/%{name}-buildroot -Prefix: %{_prefix} -BuildArchitectures: noarch -BuildRequires: smeserver-devtools -Requires: smeserver-release >= 11.0 -AutoReqProv: no +%define module DateTime + +Name: perl-DateTime +# Bump epoch to 2 following base +%if %{rhel} >= 7 +Epoch: 2 +%else +Epoch: 1 +%endif +Version: 1.55 +Release: 1%{?dist} +Summary: Date and time object +License: Artistic 2.0 +Group: Development/Libraries +URL: http://search.cpan.org/dist/DateTime/ +Source0: http://www.cpan.org/authors/id/D/DR/DROLSKY/DateTime-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +# Build: +BuildRequires: coreutils +BuildRequires: findutils +BuildRequires: gcc +BuildRequires: make +BuildRequires: perl-interpreter +BuildRequires: perl-devel +BuildRequires: perl-generators +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 + +BuildRequires: perl(CPAN::Meta::Check) >= 0.011 +BuildRequires: perl(CPAN::Meta::Requirements) +BuildRequires: perl(DateTime::Locale) >= 1.06 +BuildRequires: perl(DateTime::TimeZone) >= 2.44 +BuildRequires: perl(Dist::CheckConflicts) >= 0.02 +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(namespace::autoclean) >= 0.19 +BuildRequires: perl(overload) +BuildRequires: perl(Params::ValidationCompiler) >= 0.26 +BuildRequires: perl(parent) +BuildRequires: perl(Specio) >= 0.18 +BuildRequires: perl(Try::Tiny) +BuildRequires: perl(Test::Fatal) +BuildRequires: perl(Test::More) >= 0.88 +BuildRequires: perl(Test::Warnings) >= 0.005 +BuildRequires: perl(warnings::register) +Requires: perl(DateTime::Locale) >= 1.06 +Requires: perl(DateTime::TimeZone) >= 2.44 +Requires: perl(Dist::CheckConflicts) >= 0.02 +Requires: perl(namespace::autoclean) >= 0.19 +Requires: perl(overload) +Requires: perl(Params::ValidationCompiler) >= 0.26 +Requires: perl(parent) +Requires: perl(Specio) >= 0.18 +Requires: perl(Try::Tiny) +Requires: perl(warnings::register) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +#AutoReqProv: yes +# Avoid provides from DateTime.so +%{?perl_default_filter} + +# Filter under-specified dependencies +%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\((DateTime::Locale|DateTime::TimeZone)\\)$ %description -DateTime is a class for the representation of date/time combinations, and -is part of the Perl DateTime project. For details on this project please -see http://datetime.perl.org/. The DateTime site has a FAQ which may help -answer many "how do I do X?" questions. The FAQ is at +DateTime is a class for the representation of date/time combinations, and +is part of the Perl DateTime project. For details on this project please +see http://datetime.perl.org/. The DateTime site has a FAQ which may help +answer many "how do I do X?" questions. The FAQ is at http://datetime.perl.org/wiki/datetime/page/FAQ. -%changelog -* Day MMMM DD YYYY 1.0-1.sme -- Initial code - create RPM [SME:99999] - %prep - -%setup -q +%setup -q -n DateTime-%{version} %build +perl Makefile.PL \ + INSTALLDIRS=vendor \ + OPTIMIZE="%{optflags}" \ + NO_PACKLIST=1 \ + NO_PERLLOCAL=1 +make %{?_smp_mflags} %install -rm -rf $RPM_BUILD_ROOT -(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) -rm -f %{name}-%{version}-filelist -/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ -> %{name}-%{version}-filelist -#echo "%doc COPYING" >> %{name}-%{version}-filelist -#--dir 'attr(755,user,grp)' \ -#--file 'attr(755,root,root)' \ +rm -rf %{buildroot} + +make pure_install PERL_INSTALL_ROOT=%{buildroot} + +find %{buildroot} -type f -name .packlist -exec rm -f {} \; +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} %{buildroot}/* + +%check +make test %clean -cd .. -rm -rf %{name}-%{version} +rm -rf %{buildroot} -%pre +%files +%defattr(-,root,root,-) +%doc CODE_OF_CONDUCT.md CONTRIBUTING.md Changes CREDITS LICENSE META.json META.yml README.md TODO +%{perl_vendorarch}/auto/* +%{perl_vendorarch}/DateTime* +%{_mandir}/man3/* -%preun +%changelog +* Tue Feb 08 2022 Gavin Carr 1.55-1 +- Update to version 1.55. -%post +* Thu Jul 24 2014 Gavin Carr 1.10-1 +- Update to version 1.10. -%postun -#uninstall -%files -f %{name}-%{version}-filelist -%defattr(-,root,root) +* Mon May 14 2012 Gavin Carr 0.7400-1 +- Bump to version 0.74. + +* Fri Aug 12 2011 Gavin Carr 0.7000-2 +- Change to epoch:1 for rhel5 as well. + +* Thu Jul 21 2011 Gavin Carr 0.7000-1 +- Update to version 0.70. +- Change to epoch:1 (for rhel6) and 4-digit version numbers to match base. + +* Fri Apr 01 2011 Gavin Carr 0.66-1 +- Specfile autogenerated by cpanspec 1.79.