Compare commits

...

No commits in common. 'c9' and 'c10-beta' have entirely different histories.
c9 ... c10-beta

2
.gitignore vendored

@ -1 +1 @@
SOURCES/Date-Manip-6.85.tar.gz SOURCES/Date-Manip-6.94.tar.gz

@ -1 +1 @@
c3711e7ac006cb1d026042ec81b604c0979180a7 SOURCES/Date-Manip-6.85.tar.gz cb53cf6614bf54e3050b20846c492159550f0840 SOURCES/Date-Manip-6.94.tar.gz

@ -1,8 +1,8 @@
Name: perl-Date-Manip Name: perl-Date-Manip
Version: 6.85 Version: 6.94
Release: 3%{?dist} Release: 4%{?dist}
Summary: Date manipulation routines Summary: Date manipulation routines
License: GPL+ or Artistic License: GPL-1.0-or-later OR Artistic-1.0-Perl
URL: https://metacpan.org/release/Date-Manip URL: https://metacpan.org/release/Date-Manip
Source0: https://cpan.metacpan.org/authors/id/S/SB/SBECK/Date-Manip-%{version}.tar.gz Source0: https://cpan.metacpan.org/authors/id/S/SB/SBECK/Date-Manip-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
@ -11,6 +11,7 @@ BuildRequires: coreutils
BuildRequires: make BuildRequires: make
BuildRequires: perl-generators BuildRequires: perl-generators
BuildRequires: perl-interpreter BuildRequires: perl-interpreter
BuildRequires: perl(Config)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(strict) BuildRequires: perl(strict)
BuildRequires: perl(warnings) BuildRequires: perl(warnings)
@ -36,7 +37,6 @@ BuildRequires: perl(Test::Inter) >= 1.09
BuildRequires: perl(Test::More) BuildRequires: perl(Test::More)
# Test::Pod 1.00 not used # Test::Pod 1.00 not used
# Test::Pod::Coverage 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(Cwd)
Requires: perl(File::Find) Requires: perl(File::Find)
Requires: perl(File::Spec) Requires: perl(File::Spec)
@ -47,6 +47,9 @@ Obsoletes: perl-DateManip < 5.48-1
%{?perl_default_filter} %{?perl_default_filter}
# Filter modules bundled for tests
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(tests.pl\\)
%description %description
Date::Manip is a series of modules designed to make any common date/time 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 operation easy to do. Operations such as comparing two times, determining
@ -55,9 +58,24 @@ 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 calendar (the one currently in use) with full support for time changes due
to daylight saving time. 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 %prep
%setup -q -n Date-Manip-%{version} %setup -q -n Date-Manip-%{version}
# 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 %build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build} %{make_build}
@ -66,29 +84,115 @@ perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_install} %{make_install}
%{_fixperms} %{buildroot}/* %{_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*
rm -f %{buildroot}%{_libexecdir}/%{name}/t/_version.t
cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
#!/bin/sh
unset DATE_MANIP DATE_MANIP_DEBUG DATE_MANIP_DEBUG_ABBREVS \
DATE_MANIP_DEBUG_ZONES Date_Manip_RELEASE_TESTING DATE_MANIP_TEST_DM5 \
OS MULTINET_TIMEZONE 'SYS$TIMEZONE_DIFFERENTIAL' 'SYS$TIMEZONE_NAME' \
'SYS$TIMEZONE_RULE' 'TCPIP$TZ' 'UCX$TZ'
cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
EOF
chmod +x %{buildroot}%{_libexecdir}/%{name}/test
%check %check
unset DATE_MANIP DATE_MANIP_DEBUG DATE_MANIP_DEBUG_ABBREVS \ unset DATE_MANIP DATE_MANIP_DEBUG DATE_MANIP_DEBUG_ABBREVS \
DATE_MANIP_DEBUG_ZONES DATE_MANIP_TEST_DM5 OS MULTINET_TIMEZONE \ DATE_MANIP_DEBUG_ZONES Date_Manip_RELEASE_TESTING DATE_MANIP_TEST_DM5 \
RELEASE_TESTING 'SYS$TIMEZONE_DIFFERENTIAL' 'SYS$TIMEZONE_NAME' \ OS MULTINET_TIMEZONE 'SYS$TIMEZONE_DIFFERENTIAL' 'SYS$TIMEZONE_NAME' \
'SYS$TIMEZONE_RULE' 'TCPIP$TZ' 'UCX$TZ' 'SYS$TIMEZONE_RULE' 'TCPIP$TZ' 'UCX$TZ'
export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
make test make test
%files %files
%license LICENSE %license LICENSE
%doc README README.first %doc README README.first
%{perl_vendorlib}/Date/ %dir %{perl_vendorlib}/Date
%{_mandir}/man[13]/*.[13]* %{perl_vendorlib}/Date/Manip
%{perl_vendorlib}/Date/Manip.{pm,pod}
%{_mandir}/man1/dm_*.1*
%{_mandir}/man3/Date::Manip.3*
%{_mandir}/man3/Date::Manip::*.3*
%{_bindir}/dm_* %{_bindir}/dm_*
%files tests
%{_libexecdir}/%{name}
%changelog %changelog
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 6.85-3 * Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 6.94-4
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags - Bump release for June 2024 mass rebuild
Related: rhbz#1991688
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 6.94-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 6.94-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Wed Jan 10 2024 Jitka Plesnikova <jplesnik@redhat.com> - 6.94-1
- 6.94 bump (rhbz#2257491)
- Package tests
* Wed Jan 03 2024 Petr Pisar <ppisar@redhat.com> - 6.93-2
- Adapt test envinronment guard to changes in 6.93
- List files explicitly
- Run tests in parallel
* Sun Dec 03 2023 Packit <hello@packit.dev> - 6.93-1
- Release: v6.93 (Sullivan Beck)
- Checkpoint: v6.93 (Sullivan Beck)
- Remove Travis (Sullivan Beck)
- Initial checkin of next release cycle: 6.93 (Sullivan Beck)
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 6.92-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Wed Jun 14 2023 Jan Pazdziora <jpazdziora@redhat.com> - 6.92-1
- 2213282 - Rebase to upstream version 6.92.
* Wed Mar 08 2023 Jan Pazdziora <jpazdziora@redhat.com> - 6.91-1
- 2174484 - Rebase to upstream version 6.91.
* Fri Mar 03 2023 Michal Josef Špaček <mspacek@redhat.com> - 6.90-3
- Update license to SPDX format
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 6.90-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Sat Dec 10 2022 Jan Pazdziora <jpazdziora@redhat.com> - 6.90-1
- 2150409 - Rebase to upstream version 6.90.
* Wed Sep 21 2022 Jan Pazdziora <jpazdziora@redhat.com> - 6.89-1
- 2123418 - Rebase to upstream version 6.89.
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 6.88-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Mon Jun 06 2022 Jitka Plesnikova <jplesnik@redhat.com> - 6.88-2
- Perl 5.36 re-rebuild updated packages
* Mon Jun 06 2022 Jan Pazdziora <jpazdziora@redhat.com> - 6.88-1
- 2093024 - Rebase to upstream version 6.88.
* Tue May 31 2022 Jitka Plesnikova <jplesnik@redhat.com> - 6.86-3
- Perl 5.36 rebuild
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 6.86-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Tue Nov 23 2021 Jan Pazdziora <jpazdziora@redhat.com> - 6.86-1
- 2023516 - Rebase to upstream version 6.86.
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 6.85-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 6.85-2 * Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 6.85-2
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 - Perl 5.34 rebuild
* Tue Mar 03 2021 Jan Pazdziora <jpazdziora@redhat.com> - 6.85-1 * Wed Mar 03 2021 Jan Pazdziora <jpazdziora@redhat.com> - 6.85-1
- 1933868 - Rebase to upstream version 6.85. - 1933868 - Rebase to upstream version 6.85.
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 6.83-3 * Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 6.83-3

Loading…
Cancel
Save