2015-04-14 08:05:33 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-DateTime-Format-Natural
|
|
|
|
#
|
2020-05-20 04:34:23 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2015-04-14 08:05:33 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-11-08 15:26:52 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-04-14 08:05:33 +00:00
|
|
|
#
|
|
|
|
|
2010-08-22 23:33:25 +00:00
|
|
|
|
|
|
|
Name: perl-DateTime-Format-Natural
|
2020-06-30 15:30:19 +00:00
|
|
|
Version: 1.10
|
2010-08-22 23:33:25 +00:00
|
|
|
Release: 0
|
2015-04-14 08:05:33 +00:00
|
|
|
%define cpan_name DateTime-Format-Natural
|
2015-09-20 16:07:55 +00:00
|
|
|
Summary: Parse informal natural language date/time strings
|
2018-11-08 15:26:52 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2010-08-22 23:33:25 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2020-05-20 04:34:23 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2017-04-24 08:29:11 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/S/SC/SCHUBIGER/%{cpan_name}-%{version}.tar.gz
|
2015-09-20 16:07:55 +00:00
|
|
|
Source1: cpanspec.yml
|
2015-04-14 08:05:33 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: perl
|
2010-12-03 14:01:41 +00:00
|
|
|
BuildRequires: perl-macros
|
2015-04-14 08:05:33 +00:00
|
|
|
BuildRequires: perl(Clone)
|
2010-08-22 23:33:25 +00:00
|
|
|
BuildRequires: perl(DateTime)
|
2015-04-14 08:05:33 +00:00
|
|
|
BuildRequires: perl(DateTime::TimeZone)
|
2010-08-22 23:33:25 +00:00
|
|
|
BuildRequires: perl(List::MoreUtils)
|
2015-09-20 16:07:55 +00:00
|
|
|
BuildRequires: perl(Module::Build) >= 0.420000
|
2011-05-17 23:18:11 +00:00
|
|
|
BuildRequires: perl(Module::Util)
|
2020-05-20 04:34:23 +00:00
|
|
|
BuildRequires: perl(Params::Validate) >= 1.15
|
2015-04-14 08:05:33 +00:00
|
|
|
BuildRequires: perl(Test::MockTime)
|
|
|
|
BuildRequires: perl(boolean)
|
|
|
|
Requires: perl(Clone)
|
2010-08-22 23:33:25 +00:00
|
|
|
Requires: perl(DateTime)
|
2015-04-14 08:05:33 +00:00
|
|
|
Requires: perl(DateTime::TimeZone)
|
2010-08-22 23:33:25 +00:00
|
|
|
Requires: perl(List::MoreUtils)
|
2020-05-20 04:34:23 +00:00
|
|
|
Requires: perl(Params::Validate) >= 1.15
|
2010-08-22 23:33:25 +00:00
|
|
|
Requires: perl(boolean)
|
2015-04-14 08:05:33 +00:00
|
|
|
Recommends: perl(Date::Calc)
|
|
|
|
%{perl_requires}
|
2010-08-22 23:33:25 +00:00
|
|
|
|
|
|
|
%description
|
2015-09-20 16:07:55 +00:00
|
|
|
'DateTime::Format::Natural' parses informal natural language date/time
|
|
|
|
strings. In addition, parsable date/time substrings may be extracted from
|
|
|
|
ordinary strings.
|
2010-08-22 23:33:25 +00:00
|
|
|
|
|
|
|
%prep
|
2015-04-14 08:05:33 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2019-12-09 08:31:02 +00:00
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
2010-08-22 23:33:25 +00:00
|
|
|
|
|
|
|
%build
|
2018-11-08 15:26:52 +00:00
|
|
|
perl Build.PL installdirs=vendor
|
2015-04-14 08:05:33 +00:00
|
|
|
./Build build flags=%{?_smp_mflags}
|
2010-08-22 23:33:25 +00:00
|
|
|
|
|
|
|
%check
|
2015-04-14 08:05:33 +00:00
|
|
|
./Build test
|
2010-08-22 23:33:25 +00:00
|
|
|
|
2015-04-14 08:05:33 +00:00
|
|
|
%install
|
|
|
|
./Build install destdir=%{buildroot} create_packlist=0
|
|
|
|
%perl_gen_filelist
|
2010-08-22 23:33:25 +00:00
|
|
|
|
2015-04-14 08:05:33 +00:00
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,755)
|
2019-12-09 08:31:02 +00:00
|
|
|
%doc Changes README
|
2010-08-22 23:33:25 +00:00
|
|
|
|
2015-04-14 08:05:33 +00:00
|
|
|
%changelog
|