File perl-Date-Holidays.spec of Package perl-Date-Holidays

#
# spec file for package perl-Date-Holidays
#
# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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/
#


Name:           perl-Date-Holidays
Version:        1.20
Release:        0
%define cpan_name Date-Holidays
Summary:        Date::Holidays::* adapter and aggregator for all your holiday needs
License:        Artistic-2.0
Group:          Development/Libraries/Perl
Url:            https://metacpan.org/release/%{cpan_name}
Source0:        https://cpan.metacpan.org/authors/id/J/JO/JONASBN/%{cpan_name}-%{version}.tar.gz
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(DateTime)
BuildRequires:  perl(File::Slurp)
BuildRequires:  perl(JSON)
BuildRequires:  perl(Module::Build) >= 0.300000
BuildRequires:  perl(Module::Load)
BuildRequires:  perl(Pod::Coverage::TrustPod)
BuildRequires:  perl(Test::Class)
BuildRequires:  perl(Test::Fatal)
BuildRequires:  perl(Test::Kwalitee) >= 1.21
BuildRequires:  perl(Test::Pod) >= 1.41
BuildRequires:  perl(Test::Pod::Coverage) >= 1.08
BuildRequires:  perl(TryCatch)
Requires:       perl(DateTime)
Requires:       perl(File::Slurp)
Requires:       perl(JSON)
Requires:       perl(Module::Load)
Requires:       perl(TryCatch)
%{perl_requires}

%description
Date::Holidays is an adapters exposing a uniform API to a set of
dsitributions in the Date::Holidays::* namespace. All of these modules
deliver methods and information on national calendars, but no standardized
API exist.

The distributions more or less follow a _de_ _facto_ standard (see: also
the generic adapter at https://metacpan.org/pod/Date::Holidays::Adapter),
but the adapters are implemented to uniform this and Date::Holidays exposes
a more readable API and at the same time it provides an OO interface, to
these diverse implementations, which primarily holds a are produceral.

As described below it is recommended that a certain API is implemented
(SEE: *holidays* and *is_holiday* below), but taking the adapter strategy
into consideration this does not matter, or we attempt to do what we can
with what is available on CPAN.

If you are an module author/CPAN contributor who wants to comply to the
suggested, either look at some of the other modules in the
Date::Holidays::* namespace to get an idea of the _de_ _facto_ standard or
have a look at at https://metacpan.org/pod/Date::Holidays::Abstract and at
https://metacpan.org/pod/Date::Holidays::Super - or write me.

In addition to the adapter feature, Date::Holidays also do aggregation, so
you can combine calendars and you can overwrite and redefined existing
calendars.

%prep
%setup -q -n %{cpan_name}-%{version}

%build
perl Build.PL installdirs=vendor
./Build build flags=%{?_smp_mflags}

%check
./Build test

%install
./Build install destdir=%{buildroot} create_packlist=0
%perl_gen_filelist

%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes cpanfile.snapshot perl-date-holidays.code-workspace README TODO
%license LICENSE

%changelog
openSUSE Build Service is sponsored by