Files
perl-Finance-QuoteHist/perl-Finance-QuoteHist.spec
2025-08-12 18:14:14 +02:00

100 lines
3.2 KiB
RPMSpec

#
# spec file for package perl-Finance-QuoteHist
#
# 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 Finance-QuoteHist
Name: perl-Finance-QuoteHist
Version: 1.320.0
Release: 0
# 1.32 -> normalize -> 1.320.0
%define cpan_version 1.32
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Perl module for fetching historical stock quotes
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/M/MS/MSISK/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Date::Manip)
BuildRequires: perl(HTML::TableExtract) >= 2.07
BuildRequires: perl(HTTP::Request)
BuildRequires: perl(JSON)
BuildRequires: perl(LWP::UserAgent)
BuildRequires: perl(Text::CSV)
Requires: perl(Date::Manip)
Requires: perl(HTML::TableExtract) >= 2.07
Requires: perl(HTTP::Request)
Requires: perl(JSON)
Requires: perl(LWP::UserAgent)
Requires: perl(Text::CSV)
Provides: perl(Finance::QuoteHist) = %{version}
Provides: perl(Finance::QuoteHist::Generic) = 1.220.0
Provides: perl(Finance::QuoteHist::Yahoo) = 1.260.0
%undefine __perllib_provides
%{perl_requires}
%description
Finance::QuoteHist is a top level interface for fetching historical stock
quotes from the web.
It is actually a front end to modules based on Finance::QuoteHist::Generic,
the main difference being that it has a default _lineup_ of web sites from
which to attempt quote retrieval. If the prospect of mixing data from
multiple sites seems scary to you, then use one of the site-specific
modules directly.
Unless otherwise defined via the _lineup_ attribute, this module will
select a _lineup_ for you, the default being:
Finance::QutoeHist::Yahoo
Finance::QutoeHist::Google
Once instantiated, this module behaves identically to the first module in
the _lineup_, sharing all of that module's methods.
Most queries will likely be handled by the first module in the lineup. If
the site is down for some reason, or perhaps that site does not provide
quotes for defunct ticker symbols, then the other sites in the lineup will
be attempted.
See Finance::QuoteHist::Generic(3) for gory details on all of the
parameters and methods this module accepts. The basic interface is noted
below.
%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
%license LICENSE
%changelog