Sync from SUSE:SLFO:Main perl-Date-Calc revision f214f49fc75c23a3d2ac57bb6e8869a0

This commit is contained in:
Adrian Schröter 2025-02-26 13:53:28 +01:00
parent 2abdf128fd
commit 20bf0fdf67
2 changed files with 38 additions and 23 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Feb 6 22:21:05 UTC 2025 - Tina Müller <tina.mueller@suse.com>
- Normalize CPAN version
See https://github.com/openSUSE/cpanspec/issues/47 for details
-------------------------------------------------------------------
Mon Mar 4 12:36:54 UTC 2024 - pgajdos@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package perl-Date-Calc
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -12,48 +12,57 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: perl-Date-Calc
Version: 6.4
Release: 0
%define cpan_name Date-Calc
Name: perl-Date-Calc
Version: 6.400.0
Release: 0
# 6.4 -> normalize -> 6.400.0
%define cpan_version 6.4
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Gregorian calendar date calculations
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Date-Calc/
Source0: http://www.cpan.org/authors/id/S/ST/STBEY/%{cpan_name}-%{version}.tar.gz
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/S/ST/STBEY/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
Patch0: fix2038.patch
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Bit::Vector) >= 7.4
BuildRequires: perl(Carp::Clan) >= 6.04
Requires: perl(Bit::Vector) >= 7.4
Requires: perl(Carp::Clan) >= 6.04
Recommends: perl(Date::Calc::XS) >= 6.4
BuildRequires: perl(Bit::Vector) >= 7.400
BuildRequires: perl(Carp::Clan) >= 6.40.0
Requires: perl(Bit::Vector) >= 7.400
Requires: perl(Carp::Clan) >= 6.40.0
Provides: perl(Date::Calc) = %{version}
Provides: perl(Date::Calc::Object) = %{version}
Provides: perl(Date::Calc::PP) = %{version}
Provides: perl(Date::Calendar) = %{version}
Provides: perl(Date::Calendar::Profiles) = %{version}
Provides: perl(Date::Calendar::Year) = %{version}
%undefine __perllib_provides
Recommends: perl(Date::Calc::XS) >= 6.400
%{perl_requires}
%description
* *
* 'use Date::Calc qw( Days_in_Year Days_in_Month ... );'
'use Date::Calc qw( Days_in_Year Days_in_Month ... );'
* 'use Date::Calc qw(:all);'
* *
You can either specify the functions you want to import explicitly by
enumerating them between the parentheses of the "'qw()'" operator, or you
can use the "':all'" tag instead to import *ALL* available functions.
%prep
%autosetup -p1 -n %{cpan_name}-%{version}
%autosetup -n %{cpan_name}-%{cpan_version} -p1
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
%{__make} test
make test
%install
%perl_make_install
@ -61,7 +70,7 @@ Recommends: perl(Date::Calc::XS) >= 6.4
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc CHANGES.txt CREDITS.txt README.txt
%license license
%changelog