Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Factory:Rebuild
perl-Finance-Quote
perl-Finance-Quote.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File perl-Finance-Quote.spec of Package perl-Finance-Quote
# # spec file for package perl-Finance-Quote # # Copyright (c) 2023 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-Quote Name: perl-Finance-Quote Version: 1.54 Release: 0 #Upstream: GPL-1.0-or-later License: GPL-2.0-or-later Summary: Get stock and mutual fund quotes from various exchanges URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/B/BP/BPSCHUCK/%{cpan_name}-%{version}.tar.gz Source1: cpanspec.yml # PATCH-FIX-UPSTREAM https://github.com/finance-quote/finance-quote/commit/504fcc1ae35fd9c1e59949281e2939bda6a971a5 Patch0: https://github.com/finance-quote/finance-quote/commit/504fcc1ae35f.patch#/Fix-FTFunds-regex.patch # PATCH-FIX-UPSTREAM https://rt.cpan.org/Public/Bug/Display.html?id=66235 Patch1: perl-Finance-Quote-66235-Cdnfundlibrary-row.patch BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Date::Manip) BuildRequires: perl(Date::Range) BuildRequires: perl(Date::Simple) BuildRequires: perl(DateTime) BuildRequires: perl(DateTime::Duration) BuildRequires: perl(DateTime::Format::ISO8601) BuildRequires: perl(DateTime::Format::Strptime) BuildRequires: perl(HTML::Entities) BuildRequires: perl(HTML::TableExtract) BuildRequires: perl(HTML::TokeParser) BuildRequires: perl(HTML::TokeParser::Simple) BuildRequires: perl(HTML::TreeBuilder) BuildRequires: perl(HTML::TreeBuilder::XPath) BuildRequires: perl(HTTP::Cookies) BuildRequires: perl(HTTP::Headers) BuildRequires: perl(HTTP::Request) BuildRequires: perl(HTTP::Request::Common) BuildRequires: perl(HTTP::Status) BuildRequires: perl(IO::Uncompress::Unzip) BuildRequires: perl(JSON) BuildRequires: perl(LWP::Protocol::https) BuildRequires: perl(LWP::Simple) BuildRequires: perl(LWP::UserAgent) >= 6.48 BuildRequires: perl(Module::Load) BuildRequires: perl(Mozilla::CA) BuildRequires: perl(Readonly) BuildRequires: perl(Spreadsheet::XLSX) BuildRequires: perl(String::Util) BuildRequires: perl(Test::Kwalitee) BuildRequires: perl(Test::Perl::Critic) BuildRequires: perl(Test::Pod) BuildRequires: perl(Test::Pod::Coverage) >= 1.00 BuildRequires: perl(Text::Template) BuildRequires: perl(Time::Piece) BuildRequires: perl(Time::Seconds) BuildRequires: perl(Try::Tiny) BuildRequires: perl(Web::Scraper) BuildRequires: perl(XML::LibXML) BuildRequires: perl(feature) Requires: perl(DateTime) Requires: perl(DateTime::Format::Strptime) Requires: perl(HTML::Entities) Requires: perl(HTML::TableExtract) Requires: perl(HTML::TokeParser) Requires: perl(HTML::TokeParser::Simple) Requires: perl(HTML::TreeBuilder) Requires: perl(HTML::TreeBuilder::XPath) Requires: perl(HTTP::Cookies) Requires: perl(HTTP::Headers) Requires: perl(HTTP::Request) Requires: perl(HTTP::Request::Common) Requires: perl(HTTP::Status) Requires: perl(IO::Uncompress::Unzip) Requires: perl(JSON) Requires: perl(LWP::Protocol::https) Requires: perl(LWP::Simple) Requires: perl(LWP::UserAgent) >= 6.48 Requires: perl(Module::Load) Requires: perl(Mozilla::CA) Requires: perl(Readonly) Requires: perl(Spreadsheet::XLSX) Requires: perl(String::Util) Requires: perl(Text::Template) Requires: perl(Time::Piece) Requires: perl(Time::Seconds) Requires: perl(Try::Tiny) Requires: perl(Web::Scraper) Requires: perl(XML::LibXML) %{perl_requires} %description This module gets stock quotes from various internet sources all over the world. Quotes are obtained by constructing a quoter object and using the fetch method to gather data, which is returned as a two-dimensional hash (or a reference to such a hash, if called in a scalar context). For example: $q = Finance::Quote->new; %info = $q->fetch("australia", "CML"); print "The price of CML is ".$info{"CML", "price"}; The first part of the hash (eg, "CML") is referred to as the stock. The second part (in this case, "price") is referred to as the label. %prep %autosetup -n %{cpan_name}-%{version} -p1 find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644 %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 README.md %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