Files
perl-DateTime-Format-Oracle/perl-DateTime-Format-Oracle.spec

81 lines
2.7 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package perl-DateTime-Format-Oracle
#
# 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 DateTime-Format-Oracle
Name: perl-DateTime-Format-Oracle
Version: 0.60.0
Release: 0
# 0.06 -> normalize -> 0.60.0
%define cpan_version 0.06
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Parse and format Oracle dates and timestamps
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/K/KO/KOLIBRIE/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
2025-08-12 18:13:16 +02:00
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Convert::NLS_DATE_FORMAT) >= 0.30.0
BuildRequires: perl(DateTime)
BuildRequires: perl(DateTime::Format::Builder)
Requires: perl(Convert::NLS_DATE_FORMAT) >= 0.30.0
Requires: perl(DateTime)
Requires: perl(DateTime::Format::Builder)
Provides: perl(DateTime::Format::Oracle) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
This module may be used to convert Oracle date and timestamp values into
'DateTime' objects. It also can take a 'DateTime' object and produce a date
string matching the 'NLS_DATE_FORMAT'.
Oracle has flexible date formatting via its 'NLS_DATE_FORMAT' session
variable. Date values will be returned from Oracle according to the current
value of that variable. Date values going into Oracle must also match the
current setting of 'NLS_DATE_FORMAT'.
Timestamp values will match either the 'NLS_TIMESTAMP_FORMAT' or
'NLS_TIMESTAMP_TZ_FORMAT' session variables.
This module keeps track of these Oracle session variable values by
examining environment variables of the same name. Each time one of Oracle's
formatting session variables is updated, the '%ENV' hash must also be
updated.
%prep
%autosetup -n %{cpan_name}-%{cpan_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
%changelog