Resolves: RHEL-19126 - rebase to 2.60
This commit is contained in:
parent
8a606c1362
commit
3b6abc335e
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
||||
1
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,2 +1,4 @@
|
||||
/DateTime-TimeZone-2.19.tar.gz
|
||||
/tzdata2018e.tar.gz
|
||||
/DateTime-TimeZone-2.60.tar.gz
|
||||
/tzdata2023c.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
|
||||
|
||||
|
7
gating.yaml
Normal file
7
gating.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
--- !Policy
|
||||
product_versions:
|
||||
- rhel-8
|
||||
decision_context: osci_compose_gate
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
||||
- !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.tier1.functional}
|
@ -6,10 +6,10 @@
|
||||
%endif
|
||||
|
||||
# Regenerate Perl library code from upstream Olson database of this date
|
||||
%global tzversion 2018e
|
||||
%global tzversion 2023c
|
||||
|
||||
Name: perl-DateTime-TimeZone
|
||||
Version: 2.19
|
||||
Version: 2.60
|
||||
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,13 @@ make test
|
||||
%{perl_vendorlib}/*
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%files tests
|
||||
%{_libexecdir}/%{name}
|
||||
|
||||
%changelog
|
||||
* 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)
|
||||
|
||||
|
5
plans/sanity.fmf
Normal file
5
plans/sanity.fmf
Normal file
@ -0,0 +1,5 @@
|
||||
summary: Sanity tests
|
||||
discover:
|
||||
how: fmf
|
||||
execute:
|
||||
how: tmt
|
4
sources
4
sources
@ -1,2 +1,2 @@
|
||||
SHA512 (DateTime-TimeZone-2.19.tar.gz) = 77c40e390da5747d10135dbe3652051e727a42e57eee7d7659d48bb284e64b94b006b6b7c0deea2354e46e2f50aeacff9299f4ca2a0c221de59d58e869f929eb
|
||||
SHA512 (tzdata2018e.tar.gz) = d059fcd381b2f6ecdafcd68fdd2a00451d1bf9b1affeb164ae7cabca2e022d499e77f0706ec3f3091b8e84c2211aa66da6c90937108771f1bf070cfebc105cae
|
||||
SHA512 (DateTime-TimeZone-2.60.tar.gz) = c3fc0dbed3aaa8250f8031de4fc2e9201d1229c42d59dd6fcdbded0bcc51184bf126a090e371dd4997133a3c174b6324115ce78e7725917953b7236e4a0a8526
|
||||
SHA512 (tzdata2023c.tar.gz) = 608bd286ebcbd0004cfdc1da183273f08aff61f90c8867661154453d77a05d421e4c46ad6d066a1fe2e87d5c82ec0f1c0224667a3b35f3180a3eb7f6ff84cbf5
|
||||
|
4
tests/upstream-tests.fmf
Normal file
4
tests/upstream-tests.fmf
Normal file
@ -0,0 +1,4 @@
|
||||
summary: Upstream tests
|
||||
component: perl-DateTime-TimeZone
|
||||
require: perl-DateTime-TimeZone-tests
|
||||
test: /usr/libexec/perl-DateTime-TimeZone/test
|
Loading…
Reference in New Issue
Block a user