File perl-Calendar-Indonesia-Holiday.spec of Package perl-Calendar-Indonesia-Holiday
#
# spec file for package perl-Calendar-Indonesia-Holiday
#
# 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
# 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 Calendar-Indonesia-Holiday
Name: perl-Calendar-Indonesia-Holiday
Version: 0.354
Release: 0
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: List Indonesian public holidays
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/P/PE/PERLANCAR/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(DateTime)
BuildRequires: perl(Function::Fallback::CoreOrPP)
BuildRequires: perl(Perinci::Sub::Gen::AccessTable) >= 0.592
BuildRequires: perl(Perinci::Sub::Property::result::table)
BuildRequires: perl(Perinci::Sub::Util) >= 0.472
BuildRequires: perl(Test::More) >= 0.98
Requires: perl(DateTime)
Requires: perl(Function::Fallback::CoreOrPP)
Requires: perl(Perinci::Sub::Gen::AccessTable) >= 0.592
Requires: perl(Perinci::Sub::Property::result::table)
Requires: perl(Perinci::Sub::Util) >= 0.472
%{perl_requires}
%description
This module provides functions to list Indonesian holidays. There is a
command-line script interface for this module: list-idn-holidays and a few
others distributed in App::IndonesianHolidayUtils distribution.
Calendar years supported: 1990-2025.
Note: Note that sometimes the holiday (as set by law) falls at a different
date than the actual religious commemoration date. When you use the
'detail' option, the 'original_date' key will show you the actual religious
date.
Note: it is also possible that multiple (religious, cultural) holidays fall
on the same national holiday. An example is May 8, 1997 which is
commemorated as Hijra 1418H as well as Ascension Day. When this happens,
the 'holidays' key will contain the details of each religious/cultural
holiday.
Caveat: aside from national holidays, some provinces sometimes declare
their own (e.g. governor election day for East Java province, etc). This is
currently not yet included in this module.
%prep
%autosetup -n %{cpan_name}-%{version}
%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
%license LICENSE
%changelog