* Tue Feb 08 2022 Gavin Carr <gavin@openfusion.net> 1.55-1

- Update to version 1.55.
This commit is contained in:
Jean-Philippe Pialasse 2025-01-19 15:33:48 -05:00
parent 1491d3ee20
commit 62929a3924
2 changed files with 109 additions and 43 deletions

BIN
DateTime-1.55.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,19 +1,63 @@
%define name perl-DateTime %define module DateTime
%define version 1.0
%define release 1 Name: perl-DateTime
Summary: This is what perl-DateTime does. # Bump epoch to 2 following base
Name: %{name} %if %{rhel} >= 7
Version: %{version} Epoch: 2
Release: %{release}%{?dist} %else
Source: %{name}-%{version}.tar.gz Epoch: 1
License: GNU GPL version 2 %endif
Group: SMEserver/addon Version: 1.55
BuildRoot: %{_tmppath}/%{name}-buildroot Release: 1%{?dist}
Prefix: %{_prefix} Summary: Date and time object
BuildArchitectures: noarch License: Artistic 2.0
BuildRequires: smeserver-devtools Group: Development/Libraries
Requires: smeserver-release >= 11.0 URL: http://search.cpan.org/dist/DateTime/
AutoReqProv: no 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 %description
DateTime is a class for the representation of date/time combinations, and DateTime is a class for the representation of date/time combinations, and
@ -22,37 +66,56 @@ 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 answer many "how do I do X?" questions. The FAQ is at
http://datetime.perl.org/wiki/datetime/page/FAQ. http://datetime.perl.org/wiki/datetime/page/FAQ.
%changelog
* Day MMMM DD YYYY <brianr@koozali.org> 1.0-1.sme
- Initial code - create RPM [SME:99999]
%prep %prep
%setup -q -n DateTime-%{version}
%setup -q
%build %build
perl Makefile.PL \
INSTALLDIRS=vendor \
OPTIMIZE="%{optflags}" \
NO_PACKLIST=1 \
NO_PERLLOCAL=1
make %{?_smp_mflags}
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf %{buildroot}
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
rm -f %{name}-%{version}-filelist make pure_install PERL_INSTALL_ROOT=%{buildroot}
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
> %{name}-%{version}-filelist find %{buildroot} -type f -name .packlist -exec rm -f {} \;
#echo "%doc COPYING" >> %{name}-%{version}-filelist find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
#--dir <dir> 'attr(755,user,grp)' \
#--file <file> 'attr(755,root,root)' \ %{_fixperms} %{buildroot}/*
%check
make test
%clean %clean
cd .. rm -rf %{buildroot}
rm -rf %{name}-%{version}
%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 <gavin@openfusion.net> 1.55-1
- Update to version 1.55.
%post * Thu Jul 24 2014 Gavin Carr <gavin@openfusion.com.au> 1.10-1
- Update to version 1.10.
%postun * Mon May 14 2012 Gavin Carr <gavin@openfusion.com.au> 0.7400-1
#uninstall - Bump to version 0.74.
%files -f %{name}-%{version}-filelist
%defattr(-,root,root) * Fri Aug 12 2011 Gavin Carr <gavin@openfusion.com.au> 0.7000-2
- Change to epoch:1 for rhel5 as well.
* Thu Jul 21 2011 Gavin Carr <gavin@openfusion.com.au> 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 <gavin@openfusion.com.au> 0.66-1
- Specfile autogenerated by cpanspec 1.79.