|
|
|
@ -1,36 +1,42 @@
|
|
|
|
|
Name: perl-Date-Manip
|
|
|
|
|
Version: 6.60
|
|
|
|
|
Version: 6.85
|
|
|
|
|
Release: 3%{?dist}
|
|
|
|
|
Summary: Date manipulation routines
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
|
URL: http://search.cpan.org/dist/Date-Manip/
|
|
|
|
|
Source0: http://www.cpan.org/authors/id/S/SB/SBECK/Date-Manip-%{version}.tar.gz
|
|
|
|
|
URL: https://metacpan.org/release/Date-Manip
|
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/S/SB/SBECK/Date-Manip-%{version}.tar.gz
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
# Build
|
|
|
|
|
BuildRequires: coreutils
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
|
BuildRequires: perl(Config)
|
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
|
|
|
|
BuildRequires: perl(strict)
|
|
|
|
|
BuildRequires: perl(warnings)
|
|
|
|
|
# Runtime
|
|
|
|
|
BuildRequires: perl(:VERSION) >= 5.10.0
|
|
|
|
|
BuildRequires: perl(Carp)
|
|
|
|
|
# XXX: BuildRequires: perl(Cwd)
|
|
|
|
|
# XXX: BuildRequires: perl(Data::Dumper)
|
|
|
|
|
# Cwd not used at tests
|
|
|
|
|
BuildRequires: perl(Data::Dumper)
|
|
|
|
|
BuildRequires: perl(Encode)
|
|
|
|
|
BuildRequires: perl(Exporter)
|
|
|
|
|
# XXX: BuildRequires: perl(File::Find)
|
|
|
|
|
# XXX: BuildRequires: perl(File::Spec)
|
|
|
|
|
# File::Find not used at tests
|
|
|
|
|
# File::Spec not used at tests
|
|
|
|
|
BuildRequires: perl(integer)
|
|
|
|
|
BuildRequires: perl(IO::File)
|
|
|
|
|
BuildRequires: perl(Storable)
|
|
|
|
|
BuildRequires: perl(utf8)
|
|
|
|
|
# Win32::TieRegistry not used
|
|
|
|
|
# Tests only
|
|
|
|
|
BuildRequires: perl(Test::Inter)
|
|
|
|
|
# File::Basename not used
|
|
|
|
|
# File::Find::Rule not used
|
|
|
|
|
# lib not used
|
|
|
|
|
BuildRequires: perl(Test::Inter) >= 1.09
|
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
|
Requires: perl-libs
|
|
|
|
|
# Test::Pod 1.00 not used
|
|
|
|
|
# Test::Pod::Coverage 1.00 not used
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
|
|
|
|
|
Requires: perl(Cwd)
|
|
|
|
|
Requires: perl(File::Find)
|
|
|
|
|
Requires: perl(File::Spec)
|
|
|
|
@ -43,50 +49,28 @@ Obsoletes: perl-DateManip < 5.48-1
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Date::Manip is a series of modules designed to make any common date/time
|
|
|
|
|
operation easy to do. Operations such as comparing two times, determining a
|
|
|
|
|
data a given amount of time from another, or parsing international times
|
|
|
|
|
operation easy to do. Operations such as comparing two times, determining
|
|
|
|
|
a data a given amount of time from another, or parsing international times
|
|
|
|
|
are all easily done. It deals with time as it is used in the Gregorian
|
|
|
|
|
calendar (the one currently in use) with full support for time changes due
|
|
|
|
|
to daylight saving time.
|
|
|
|
|
|
|
|
|
|
%package tests
|
|
|
|
|
Summary: Tests for %{name}
|
|
|
|
|
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
|
|
Requires: perl-Test-Harness
|
|
|
|
|
|
|
|
|
|
%description tests
|
|
|
|
|
Tests from %{name}. Execute them
|
|
|
|
|
with "%{_libexecdir}/%{name}/test".
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n Date-Manip-%{version}
|
|
|
|
|
|
|
|
|
|
# Help generators to recognize Perl scripts
|
|
|
|
|
for F in t/*.t; do
|
|
|
|
|
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F"
|
|
|
|
|
chmod +x "$F"
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
|
|
|
|
|
%{make_build}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make pure_install DESTDIR=%{buildroot}
|
|
|
|
|
%{make_install}
|
|
|
|
|
%{_fixperms} %{buildroot}/*
|
|
|
|
|
|
|
|
|
|
# Install tests
|
|
|
|
|
mkdir -p %{buildroot}%{_libexecdir}/%{name}
|
|
|
|
|
cp -a t %{buildroot}%{_libexecdir}/%{name}
|
|
|
|
|
# Remove release tests
|
|
|
|
|
rm -f %{buildroot}%{_libexecdir}/%{name}/t/pod*
|
|
|
|
|
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
|
|
|
|
|
unset DATE_MANIP DATE_MANIP_DEBUG DATE_MANIP_DEBUG_ABBREVS \
|
|
|
|
|
DATE_MANIP_DEBUG_ZONES DATE_MANIP_TEST_DM5 OS MULTINET_TIMEZONE \
|
|
|
|
|
RELEASE_TESTING 'SYS$TIMEZONE_DIFFERENTIAL' 'SYS$TIMEZONE_NAME' \
|
|
|
|
|
'SYS$TIMEZONE_RULE' 'TCPIP$TZ' 'UCX$TZ'
|
|
|
|
|
make test
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
@ -96,14 +80,82 @@ make test
|
|
|
|
|
%{_mandir}/man[13]/*.[13]*
|
|
|
|
|
%{_bindir}/dm_*
|
|
|
|
|
|
|
|
|
|
%files tests
|
|
|
|
|
%{_libexecdir}/%{name}
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Thu Jul 20 2023 Jitka Plesnikova <jplesnik@redhat.com> - 6.60-3
|
|
|
|
|
- Replace versioned MODULE_COMPAT by non-versioned perl-libs
|
|
|
|
|
- Package tests
|
|
|
|
|
- Resolves: rhbz#2219504
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 6.85-3
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 6.85-2
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
* Tue Mar 03 2021 Jan Pazdziora <jpazdziora@redhat.com> - 6.85-1
|
|
|
|
|
- 1933868 - Rebase to upstream version 6.85.
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 6.83-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jan 15 2021 Petr Pisar <ppisar@redhat.com> - 6.83-2
|
|
|
|
|
- Specify all dependendencies
|
|
|
|
|
|
|
|
|
|
* Tue Dec 15 2020 Jan Pazdziora <jpazdziora@redhat.com> - 6.83-1
|
|
|
|
|
- 1902872 - Rebase to upstream version 6.83.
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 6.82-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 6.82-2
|
|
|
|
|
- Perl 5.32 rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jun 08 2020 Jan Pazdziora <jpazdziora@redhat.com> - 6.82-1
|
|
|
|
|
- 1842524 - Rebase to upstream version 6.82.
|
|
|
|
|
|
|
|
|
|
* Mon Apr 27 2020 Jan Pazdziora <jpazdziora@redhat.com> - 6.81-1
|
|
|
|
|
- 1827253 - Rebase to upstream version 6.81.
|
|
|
|
|
|
|
|
|
|
* Tue Mar 03 2020 Jan Pazdziora <jpazdziora@redhat.com> - 6.80-1
|
|
|
|
|
- 1809202 - Rebase to upstream version 6.80.
|
|
|
|
|
|
|
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 6.79-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Dec 09 2019 Jan Pazdziora <jpazdziora@redhat.com> - 6.79-1
|
|
|
|
|
- 1778849 - Rebase to upstream version 6.79.
|
|
|
|
|
|
|
|
|
|
* Mon Sep 02 2019 Jan Pazdziora <jpazdziora@redhat.com> - 6.78-1
|
|
|
|
|
- 1747170 - Rebase to upstream version 6.78.
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 6.77-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jun 06 2019 Jan Pazdziora <jpazdziora@redhat.com> - 6.77-1
|
|
|
|
|
- 1716417 - Rebase to upstream version 6.77.
|
|
|
|
|
|
|
|
|
|
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 6.76-2
|
|
|
|
|
- Perl 5.30 rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Mar 04 2019 Jan Pazdziora <jpazdziora@redhat.com> - 6.76-1
|
|
|
|
|
- 1684273 - Rebase to upstream version 6.76.
|
|
|
|
|
|
|
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 6.75-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Dec 10 2018 Jan Pazdziora <jpazdziora@redhat.com> - 6.75-1
|
|
|
|
|
- 1656324 - Rebase to upstream version 6.75.
|
|
|
|
|
|
|
|
|
|
* Mon Sep 10 2018 Jan Pazdziora <jpazdziora@redhat.com> - 6.73-1
|
|
|
|
|
- 1624940 - Rebase to upstream version 6.73.
|
|
|
|
|
|
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.72-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 6.72-2
|
|
|
|
|
- Perl 5.28 rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jun 07 2018 Jan Pazdziora <jpazdziora@redhat.com> - 6.72-1
|
|
|
|
|
- 1585345 - Rebase to upstream version 6.72.
|
|
|
|
|
|
|
|
|
|
* Fri Mar 02 2018 Jan Pazdziora <jpazdziora@redhat.com> - 6.70-1
|
|
|
|
|
- 1550748 - Rebase to upstream version 6.70.
|
|
|
|
|
|
|
|
|
|
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.60-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|