2009-03-19 10:13:00 +00:00
|
|
|
#
|
2011-11-17 15:26:54 +00:00
|
|
|
# spec file for package perl-Date-Business
|
2010-11-29 14:36:01 +00:00
|
|
|
#
|
2024-07-14 17:50:26 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2010-11-29 14:36:01 +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.
|
|
|
|
|
2024-07-14 17:50:26 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2009-03-19 10:13:00 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2010-11-29 14:36:01 +00:00
|
|
|
%define cpan_name Date-Business
|
2024-07-14 17:50:26 +00:00
|
|
|
Name: perl-Date-Business
|
2025-01-06 16:49:39 +00:00
|
|
|
Version: 1.300.0
|
2024-07-14 17:50:26 +00:00
|
|
|
Release: 0
|
2025-01-06 16:49:39 +00:00
|
|
|
# 1.3 -> normalize -> 1.300.0
|
|
|
|
%define cpan_version 1.3
|
2024-07-14 17:50:26 +00:00
|
|
|
License: CHECK(Artistic-1.0 or GPL-1.0-or-later)
|
2010-11-29 14:36:01 +00:00
|
|
|
Summary: Fast calendar and business date calculations
|
2024-07-14 17:50:26 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2025-01-06 16:49:39 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/B/BP/BPSCHUCK/%{cpan_name}-%{cpan_version}.tar.gz
|
2025-08-12 18:13:11 +02:00
|
|
|
Source100: README.md
|
2010-11-29 14:36:01 +00:00
|
|
|
BuildArch: noarch
|
2010-10-19 08:45:49 +00:00
|
|
|
BuildRequires: perl
|
2010-11-29 14:36:01 +00:00
|
|
|
BuildRequires: perl-macros
|
2024-07-14 17:50:26 +00:00
|
|
|
Provides: perl(Date::Business) = %{version}
|
|
|
|
%undefine __perllib_provides
|
|
|
|
%{perl_requires}
|
2009-03-19 10:13:00 +00:00
|
|
|
|
|
|
|
%description
|
2010-11-29 14:36:01 +00:00
|
|
|
Date::Business provides the functionality to perform simple date
|
2024-07-14 17:50:26 +00:00
|
|
|
manipulations quickly. Support for calendar date and business date math is
|
|
|
|
provided.
|
|
|
|
|
|
|
|
Business dates are weekdays only. Adding 1 to a weekend returns Monday,
|
|
|
|
subtracting 1 returns Friday.
|
|
|
|
|
|
|
|
The difference in business days between Friday and the following Monday
|
|
|
|
(using the diffb function) is one business day. The number of business days
|
|
|
|
between Friday and the following Monday (using the betweenb function) is
|
|
|
|
zero.
|
2009-03-19 10:13:00 +00:00
|
|
|
|
|
|
|
%prep
|
2024-07-14 17:50:26 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
2009-03-19 10:13:00 +00:00
|
|
|
|
|
|
|
%build
|
2024-07-14 17:50:26 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%make_build
|
2009-03-19 10:13:00 +00:00
|
|
|
|
|
|
|
%check
|
2024-07-14 17:50:26 +00:00
|
|
|
make test
|
2009-03-19 10:13:00 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
2024-07-14 17:50:26 +00:00
|
|
|
%perl_process_packlist
|
2010-11-29 14:36:01 +00:00
|
|
|
%perl_gen_filelist
|
2009-03-19 10:13:00 +00:00
|
|
|
|
2010-11-29 14:36:01 +00:00
|
|
|
%files -f %{name}.files
|
2024-07-14 17:50:26 +00:00
|
|
|
%doc Changes README
|
|
|
|
%license LICENSE
|
2009-03-19 10:13:00 +00:00
|
|
|
|
2010-11-29 14:36:01 +00:00
|
|
|
%changelog
|