84 lines
2.8 KiB
RPMSpec
84 lines
2.8 KiB
RPMSpec
#
|
|
# spec file for package perl-Time-ParseDate
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define cpan_name Time-ParseDate
|
|
Name: perl-Time-ParseDate
|
|
Version: 2015.103.0
|
|
Release: 0
|
|
# 2015.103 -> normalize -> 2015.103.0
|
|
%define cpan_version 2015.103
|
|
#Upstream: Inc. License hereby granted for anyone to use, modify or redistribute this module at their own risk. Please feed useful changes back to cpan@dave.sharnoff.org.
|
|
License: SUSE-Permissive
|
|
Summary: Parse and format time values
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/M/MU/MUIR/modules/%{cpan_name}-%{cpan_version}.tar.gz
|
|
Source1: cpanspec.yml
|
|
Source100: README.md
|
|
BuildArch: noarch
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(Time::Piece)
|
|
Provides: perl(Time::CTime) = 2011.50.500
|
|
Provides: perl(Time::DaysInMonth) = 99.111.700
|
|
Provides: perl(Time::JulianDay) = 2011.50.500
|
|
Provides: perl(Time::ParseDate) = %{version}
|
|
Provides: perl(Time::Timezone) = 2015.92.500
|
|
%undefine __perllib_provides
|
|
%{perl_requires}
|
|
# MANUAL BEGIN
|
|
BuildRequires: timezone
|
|
# MANUAL END
|
|
|
|
%description
|
|
This module recognizes the above date/time formats. Usually a date and a
|
|
time are specified. There are numerous options for controlling what is
|
|
recognized and what is not.
|
|
|
|
The return code is always the time in seconds since January 1st, 1970 or
|
|
undef if it was unable to parse the time.
|
|
|
|
If a timezone is specified it must be after the time. Year specifications
|
|
can be tacked onto the end of absolute times.
|
|
|
|
If 'parsedate()' is called from array context, then it will return two
|
|
elements. On successful parses, it will return the seconds and what remains
|
|
of its input string. On unsuccessful parses, it will return 'undef' and an
|
|
error string.
|
|
|
|
%prep
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
|
|
|
%build
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
%make_build
|
|
|
|
%check
|
|
make test
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
%perl_gen_filelist
|
|
|
|
%files -f %{name}.files
|
|
%doc Changes README
|
|
|
|
%changelog
|