Import from AlmaLinux stable repository
This commit is contained in:
parent
7e05445ad5
commit
95f059e3b8
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,2 +1,2 @@
|
||||
SOURCES/DateTime-TimeZone-2.19.tar.gz
|
||||
SOURCES/tzdata2018e.tar.gz
|
||||
SOURCES/DateTime-TimeZone-2.62.tar.gz
|
||||
SOURCES/tzdata2024a.tar.gz
|
||||
|
@ -1,2 +0,0 @@
|
||||
7ca1160c4e2007a709f49721748a0a51577edb71 SOURCES/DateTime-TimeZone-2.19.tar.gz
|
||||
9ab1932256674075fb74ff84792582b5ac12c476 SOURCES/tzdata2018e.tar.gz
|
@ -72,7 +72,7 @@ index ae26fae..c5d44fe 100644
|
||||
+
|
||||
=back
|
||||
|
||||
=head1 SUPPORT
|
||||
B<Note:> Some systems such as virtual machine boxes may lack any of these
|
||||
--
|
||||
1.9.3
|
||||
|
||||
|
@ -6,10 +6,10 @@
|
||||
%endif
|
||||
|
||||
# Regenerate Perl library code from upstream Olson database of this date
|
||||
%global tzversion 2018e
|
||||
%global tzversion 2024a
|
||||
|
||||
Name: perl-DateTime-TimeZone
|
||||
Version: 2.19
|
||||
Version: 2.62
|
||||
Release: 1%{?dist}
|
||||
Summary: Time zone object base class and factory
|
||||
# tzdata%%{tzversion}.tar.gz archive: Public Domain
|
||||
@ -17,7 +17,6 @@ Summary: Time zone object base class and factory
|
||||
# Some other files are generated from tzdata%%{tzversion}.tar.gz content by
|
||||
# upstream or locally: Public Domain
|
||||
License: (GPL+ or Artistic) and Public Domain
|
||||
Group: Development/Libraries
|
||||
URL: http://search.cpan.org/dist/DateTime-TimeZone/
|
||||
Source0: http://www.cpan.org/authors/id/D/DR/DROLSKY/DateTime-TimeZone-%{version}.tar.gz
|
||||
%if %{defined tzversion}
|
||||
@ -28,9 +27,11 @@ Source1: ftp://ftp.iana.org/tz/releases/tzdata%{tzversion}.tar.gz
|
||||
Patch0: DateTime-TimeZone-2.04-Parse-etc-localtime-by-DateTime-TimeZone-Tzfile.patch
|
||||
BuildArch: noarch
|
||||
# Build
|
||||
BuildRequires: coreutils
|
||||
BuildRequires: make
|
||||
BuildRequires: perl-interpreter
|
||||
BuildRequires: perl-generators
|
||||
BuildRequires: perl-interpreter
|
||||
BuildRequires: perl(Config)
|
||||
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
||||
BuildRequires: perl(strict)
|
||||
BuildRequires: perl(warnings)
|
||||
@ -113,17 +114,40 @@ Provides: bundled(tzdata)
|
||||
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(DateTime::Duration\\)
|
||||
%endif
|
||||
|
||||
# Filter modules bundled for tests
|
||||
%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_libexecdir}
|
||||
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(T::RequireDateTime\\)
|
||||
|
||||
%description
|
||||
This class is the base class for all time zone objects. A time zone is
|
||||
represented internally as a set of observances, each of which describes the
|
||||
offset from GMT for a given time period.
|
||||
|
||||
%package tests
|
||||
Summary: Tests for %{name}
|
||||
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||
Requires: perl-Test-Harness
|
||||
%if %{with perl_DateTime_TimeZone_enables_optional_test}
|
||||
Requires: perl(Test::Output)
|
||||
Requires: perl(Test::Taint)
|
||||
%endif
|
||||
|
||||
%description tests
|
||||
Tests from %{name}. Execute them
|
||||
with "%{_libexecdir}/%{name}/test".
|
||||
|
||||
%prep
|
||||
%if !%{defined perl_bootstrap} && %{defined tzversion}
|
||||
%setup -q -T -a 1 -c -n tzdata-%{tzversion}
|
||||
%endif
|
||||
%setup -q -T -b 0 -n DateTime-TimeZone-%{version}
|
||||
%patch0 -p1
|
||||
%patch -P0 -p1
|
||||
|
||||
# Help generators to recognize Perl scripts
|
||||
for F in t/*.t t/*.pl; do
|
||||
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F"
|
||||
chmod +x "$F"
|
||||
done
|
||||
|
||||
%build
|
||||
%if !%{defined perl_bootstrap} && %{defined tzversion}
|
||||
@ -138,7 +162,17 @@ make %{?_smp_mflags}
|
||||
make pure_install DESTDIR=%{buildroot}
|
||||
%{_fixperms} %{buildroot}/*
|
||||
|
||||
# Install tests
|
||||
mkdir -p %{buildroot}%{_libexecdir}/%{name}
|
||||
cp -a t %{buildroot}%{_libexecdir}/%{name}
|
||||
cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
|
||||
#!/bin/sh
|
||||
cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
|
||||
EOF
|
||||
chmod +x %{buildroot}%{_libexecdir}/%{name}/test
|
||||
|
||||
%check
|
||||
export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
|
||||
make test
|
||||
|
||||
%files
|
||||
@ -147,7 +181,16 @@ make test
|
||||
%{perl_vendorlib}/*
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%files tests
|
||||
%{_libexecdir}/%{name}
|
||||
|
||||
%changelog
|
||||
* Mon Feb 05 2024 Jitka Plesnikova <jplesnik@redhat.com> - 2.62-1
|
||||
- 2.62 bump (2024a Olson database)
|
||||
|
||||
* Tue Dec 12 2023 Jitka Plesnikova <jplesnik@redhat.com> - 2.60-1
|
||||
- 2.60 bump (2023c Olson database)
|
||||
|
||||
* Mon May 14 2018 Jitka Plesnikova <jplesnik@redhat.com> - 2.19-1
|
||||
- 2.19 bump (2018e Olson database)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user