Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
devel:languages:perl:CPAN-D
perl-Date-Holidays
perl-Date-Holidays.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File perl-Date-Holidays.spec of Package perl-Date-Holidays
# # spec file for package perl-Date-Holidays # # 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 Date-Holidays Name: perl-Date-Holidays Version: 1.36 Release: 0 License: Artistic-2.0 Summary: Date::Holidays::* adapter and aggregator for all your holiday needs URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/J/JO/JONASBN/%{cpan_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Carp) >= 1.5 BuildRequires: perl(DateTime) >= 1.59 BuildRequires: perl(Env) >= 1.04 BuildRequires: perl(File::Slurp) >= 9999.32 BuildRequires: perl(FindBin) >= 1.53 BuildRequires: perl(JSON) >= 4.1 BuildRequires: perl(Locale::Country) >= 3.76 BuildRequires: perl(Module::Build) >= 0.423400 BuildRequires: perl(Module::Load) >= 0.36 BuildRequires: perl(Pod::Coverage::TrustPod) >= 0.100006 BuildRequires: perl(Scalar::Util) >= 1.63 BuildRequires: perl(Test::Class) >= 0.52 BuildRequires: perl(Test::Fatal) >= 0.017 BuildRequires: perl(Test::Kwalitee) >= 1.28 BuildRequires: perl(Test::MockModule) >= 0.13 BuildRequires: perl(Test::More) >= 1.302195 BuildRequires: perl(Test::Pod) >= 1.52 BuildRequires: perl(Test::Pod::Coverage) >= 1.1 BuildRequires: perl(Try::Tiny) >= 0.31 Requires: perl(Carp) >= 1.5 Requires: perl(DateTime) >= 1.59 Requires: perl(Env) >= 1.04 Requires: perl(File::Slurp) >= 9999.32 Requires: perl(JSON) >= 4.1 Requires: perl(Locale::Country) >= 3.76 Requires: perl(Module::Load) >= 0.36 Requires: perl(Scalar::Util) >= 1.63 Requires: perl(Try::Tiny) >= 0.31 %{perl_requires} %description Date::Holidays is an adapters exposing a uniform API to a set of distributions 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 procedural. 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 %autosetup -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 %doc CHANGELOG.md CONTRIBUTING.md cpanfile.snapshot dictionary.dic README %license LICENSE %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor