27932ed
Name:           perl-Finance-Quote
4d4dbb0
Version:        1.48
4d4dbb0
Release:        1%{?dist}
52a49af
Summary:        A Perl module that retrieves stock and mutual fund quotes
e5fbfeb
License:        GPLv2+
da88aea
URL:            https://metacpan.org/release/Finance-Quote
4d4dbb0
Source0:        https://cpan.metacpan.org/modules/by-module/Finance/Finance-Quote-%{version}.tar.gz
4d4dbb0
Patch0:         0001-FTfunds-updated-to-current-website.patch
52a49af
BuildArch:      noarch
27932ed
# Module Build
4d4dbb0
BuildRequires:  coreutils
4d4dbb0
BuildRequires:  findutils
4d4dbb0
BuildRequires:  make
ebfec58
BuildRequires:  perl-generators
868cd3e
BuildRequires:  perl-interpreter >= 4:5.10.0
0c6324e
BuildRequires:  perl(ExtUtils::MakeMaker)
27932ed
# Module Runtime
5871272
BuildRequires:  perl(base)
5871272
BuildRequires:  perl(Carp)
5871272
BuildRequires:  perl(CGI)
27932ed
BuildRequires:  perl(constant)
0c6324e
BuildRequires:  perl(DateTime)
4d4dbb0
BuildRequires:  perl(DateTime::Format::Strptime)
5871272
BuildRequires:  perl(Encode)
5871272
BuildRequires:  perl(Exporter)
4d4dbb0
BuildRequires:  perl(File::Temp)
5871272
BuildRequires:  perl(HTML::Parser)
27932ed
BuildRequires:  perl(HTML::TableExtract)
27932ed
BuildRequires:  perl(HTML::TokeParser)
5871272
BuildRequires:  perl(HTML::TreeBuilder)
27932ed
BuildRequires:  perl(HTTP::Cookies)
5871272
BuildRequires:  perl(HTTP::Headers)
5871272
BuildRequires:  perl(HTTP::Request::Common)
5871272
BuildRequires:  perl(HTTP::Status)
Bill Nottingham 024d03a
BuildRequires:  perl(JSON)
4d4dbb0
BuildRequires:  perl(JSON::Parse)
0c6324e
BuildRequires:  perl(LWP::Protocol::https)
5871272
BuildRequires:  perl(LWP::Simple)
27932ed
BuildRequires:  perl(LWP::UserAgent)
Bill Nottingham aebdbe8
BuildRequires:  perl(Mozilla::CA)
27932ed
BuildRequires:  perl(POSIX)
4d4dbb0
BuildRequires:  perl(Scalar::Util)
27932ed
BuildRequires:  perl(strict)
4d4dbb0
BuildRequires:  perl(String::Util)
4d4dbb0
BuildRequires:  perl(Text::Template)
4d4dbb0
BuildRequires:  perl(Time::HiRes)
27932ed
BuildRequires:  perl(Time::Piece)
5871272
BuildRequires:  perl(URI)
5871272
BuildRequires:  perl(URI::QueryParam)
27932ed
BuildRequires:  perl(utf8)
27932ed
BuildRequires:  perl(vars)
27932ed
BuildRequires:  perl(warnings)
27932ed
# Test Suite
27932ed
BuildRequires:  perl(Data::Dumper)
4d4dbb0
BuildRequires:  perl(feature)
5871272
BuildRequires:  perl(File::Spec)
27932ed
BuildRequires:  perl(Test::More)
27932ed
# Runtime
27932ed
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
27932ed
52a49af
%description
52a49af
This module retrieves stock and mutual fund quotes from various exchanges
52a49af
using various source.
52a49af
52a49af
%prep
a04325c
%setup -q -n Finance-Quote-%{version}
52a49af
4d4dbb0
# Remove BerkeleyDB files shipped by mistake
4d4dbb0
rm lib/G*
4d4dbb0
sed -i -e '/^lib\/G/d' MANIFEST
4d4dbb0
1ccabfd
# Remove redundant exec permissions
1ccabfd
find lib/ -type f -name '*.pm' -exec chmod -c -x {} \;
1ccabfd
4d4dbb0
# Fix FTfunds (CPAN RT#129586)
4d4dbb0
%patch0 -p1
4d4dbb0
a04325c
# Avoid documentation name clash
a04325c
cp -p README README.dist
042ca5e
52a49af
%build
27932ed
perl Makefile.PL INSTALLDIRS=vendor
52a49af
make %{?_smp_mflags}
52a49af
52a49af
%install
27932ed
make pure_install DESTDIR=%{buildroot}
868cd3e
find %{buildroot} -type f -name .packlist -delete
868cd3e
%{_fixperms} -c %{buildroot}
52a49af
52a49af
%check
52a49af
make test
52a49af
52a49af
%files
27932ed
%if 0%{?_licensedir:1}
27932ed
%license LICENSE
27932ed
%else
27932ed
%doc LICENSE
27932ed
%endif
a04325c
%doc Change* Documentation/* README.dist
52a49af
%{perl_vendorlib}/Finance/
27932ed
%{_mandir}/man3/Finance::Quote.3*
27932ed
%{_mandir}/man3/Finance::Quote::AEX.3*
27932ed
%{_mandir}/man3/Finance::Quote::AIAHK.3*
27932ed
%{_mandir}/man3/Finance::Quote::ASEGR.3*
27932ed
%{_mandir}/man3/Finance::Quote::ASX.3*
27932ed
%{_mandir}/man3/Finance::Quote::BMONesbittBurns.3*
27932ed
%{_mandir}/man3/Finance::Quote::BSERO.3*
27932ed
%{_mandir}/man3/Finance::Quote::Bourso.3*
27932ed
%{_mandir}/man3/Finance::Quote::CSE.3*
27932ed
%{_mandir}/man3/Finance::Quote::Cdnfundlibrary.3*
27932ed
%{_mandir}/man3/Finance::Quote::Citywire.3*
27932ed
%{_mandir}/man3/Finance::Quote::Cominvest.3*
27932ed
%{_mandir}/man3/Finance::Quote::Currencies.3*
27932ed
%{_mandir}/man3/Finance::Quote::DWS.3*
27932ed
%{_mandir}/man3/Finance::Quote::Deka.3*
27932ed
%{_mandir}/man3/Finance::Quote::FTPortfolios.3*
27932ed
%{_mandir}/man3/Finance::Quote::FTfunds.3*
27932ed
%{_mandir}/man3/Finance::Quote::Fidelity.3*
a04325c
%{_mandir}/man3/Finance::Quote::FidelityFixed.3*
27932ed
%{_mandir}/man3/Finance::Quote::FinanceCanada.3*
27932ed
%{_mandir}/man3/Finance::Quote::Finanzpartner.3*
27932ed
%{_mandir}/man3/Finance::Quote::Fool.3*
27932ed
%{_mandir}/man3/Finance::Quote::GoldMoney.3*
27932ed
%{_mandir}/man3/Finance::Quote::HEX.3*
27932ed
%{_mandir}/man3/Finance::Quote::HU.3*
27932ed
%{_mandir}/man3/Finance::Quote::IndiaMutual.3*
27932ed
%{_mandir}/man3/Finance::Quote::LeRevenu.3*
27932ed
%{_mandir}/man3/Finance::Quote::MStaruk.3*
27932ed
%{_mandir}/man3/Finance::Quote::ManInvestments.3*
27932ed
%{_mandir}/man3/Finance::Quote::Morningstar.3*
4d4dbb0
%{_mandir}/man3/Finance::Quote::MorningstarAU.3*
4d4dbb0
%{_mandir}/man3/Finance::Quote::MorningstarCH.3*
27932ed
%{_mandir}/man3/Finance::Quote::MorningstarJP.3*
27932ed
%{_mandir}/man3/Finance::Quote::NZX.3*
27932ed
%{_mandir}/man3/Finance::Quote::Platinum.3*
27932ed
%{_mandir}/man3/Finance::Quote::SEB.3*
27932ed
%{_mandir}/man3/Finance::Quote::TNetuk.3*
27932ed
%{_mandir}/man3/Finance::Quote::TSP.3*
27932ed
%{_mandir}/man3/Finance::Quote::TSX.3*
27932ed
%{_mandir}/man3/Finance::Quote::Tdefunds.3*
27932ed
%{_mandir}/man3/Finance::Quote::Tdwaterhouse.3*
27932ed
%{_mandir}/man3/Finance::Quote::Tiaacref.3*
27932ed
%{_mandir}/man3/Finance::Quote::Troweprice.3*
27932ed
%{_mandir}/man3/Finance::Quote::Trustnet.3*
27932ed
%{_mandir}/man3/Finance::Quote::USFedBonds.3*
27932ed
%{_mandir}/man3/Finance::Quote::Union.3*
27932ed
%{_mandir}/man3/Finance::Quote::VWD.3*
27932ed
%{_mandir}/man3/Finance::Quote::YahooJSON.3*
a04325c
%{_mandir}/man3/Finance::Quote::YahooYQL.3*
27932ed
%{_mandir}/man3/Finance::Quote::ZA.3*
27932ed
%{_mandir}/man3/Finance::Quote::ZA_UnitTrusts.3*
52a49af
52a49af
%changelog
4d4dbb0
* Sun Jun 30 2019 Paul Howarth <paul@city-fan.org> - 1.48-1
4d4dbb0
- Update to 1.48
4d4dbb0
  - Alphavantage: Add a waiting mechanism to comply with alphavantage use terms
4d4dbb0
  - Alphavantage: Added support for several stock exchanges and currencies
4d4dbb0
  - Updated modules: Union, Deka, Indiamutual, ASX, Yahoojson, TSP, AEX, Fool
4d4dbb0
  - New modules: IEXTrading, MorningstarAU, MorningstarCH, IEXCloud
4d4dbb0
  - Yahoo: removed modules referring to yahoo API, which yahoo stopped
4d4dbb0
  - BUGFIX: 'use of uninitialized value' returned by perl could make gnucash
4d4dbb0
    fail when more than 15 quotes were requested
4d4dbb0
  - BUGFIX: MS Windows does not support %%T in strftime call
4d4dbb0
  - Added new documentation files: Release.txt, Hackers-Guide,
4d4dbb0
    Modules-README.yml
4d4dbb0
  - We started moving known failing tests into TODO blocks
4d4dbb0
- Fix FTfunds (CPAN RT#129586)
4d4dbb0
a997376
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.47-6
a997376
- Perl 5.30 rebuild
a997376
4ef7f28
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.47-5
4ef7f28
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
4ef7f28
9ca4f36
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.47-4
9ca4f36
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
9ca4f36
78de269
* Fri Jun 29 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.47-3
78de269
- Perl 5.28 rebuild
78de269
95809dc
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.47-2
95809dc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
95809dc
fe4f0bc
* Mon Nov 13 2017 Paul Howarth <paul@city-fan.org> - 1.47-1
fe4f0bc
- Update to 1.47
fe4f0bc
  - Drop long-obsolete debian directory
fe4f0bc
  - AlphaVantage:
fe4f0bc
    - Added support for .IL ⇒ USD currency and division
fe4f0bc
    - Graceful error catchup
fe4f0bc
  - Yahoojson:
fe4f0bc
    - Module adapted to new URL and returned json
fe4f0bc
  - Use AlphaVantage for currency quotes instead of Yahoo
fe4f0bc
58d50c9
* Fri Nov 10 2017 Paul Howarth <paul@city-fan.org> - 1.45-1
58d50c9
- Update to 1.45
58d50c9
  - AlphaVantage:
58d50c9
    - More suffix - currency pairs added
58d50c9
    - GBP and GBX divided by 100
58d50c9
1ccabfd
* Wed Nov  8 2017 Paul Howarth <paul@city-fan.org> - 1.44-1
1ccabfd
- Update to 1.44
1ccabfd
  - Added currencies for .SA (Brazil) and .TO (Canada/Toronto) markets
1ccabfd
  - Set up a pause of .7s between queries in AlphaVantage.pm to limit queries
1ccabfd
f02dad0
* Tue Nov  7 2017 Paul Howarth <paul@city-fan.org> - 1.43-1
f02dad0
- Update to 1.43
f02dad0
  - More tests in alphavantage.t
f02dad0
  - Bug resolved: removed time from $last_refresh when markets are open
f02dad0
  - Added currency for .DE market
f02dad0
  - Bugfix in currency determination regex
f02dad0
930763d
* Mon Nov  6 2017 Paul Howarth <paul@city-fan.org> - 1.41-1
930763d
- Update to 1.41
868cd3e
  - Added AlphaVantage module
930763d
  - Some other module changes: yahoojson, Morningstar, Bourso, ASX, TSX
930763d
    (not working)
868cd3e
- Simplify find command using -delete
868cd3e
4ebb974
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.38-6
4ebb974
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
4ebb974
6594c47
* Tue Jun 06 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.38-5
6594c47
- Perl 5.26 rebuild
6594c47
19b409d
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.38-4
19b409d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
19b409d
f8d029e
* Mon May 16 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.38-3
f8d029e
- Perl 5.24 rebuild
f8d029e
57022fb
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.38-2
57022fb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
57022fb
a04325c
* Mon Aug 31 2015 Paul Howarth <paul@city-fan.org> - 1.38-1
a04325c
- Update to 1.38
a04325c
  - Module updates: tiaacref, yahooJSON, FTfunds, MStaruk, USFedBonds, GoldMoney
a04325c
  - New modules: fidelityfixed, yahooYQL
a04325c
  - Removed modules: MTGox
a04325c
  - More tests: yahoo_speed.t, tiaacref.t
a04325c
- Avoid documentation name clash between two README files
a04325c
74e9a91
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.37-4
74e9a91
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
74e9a91
787cc47
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.37-3
787cc47
- Perl 5.22 rebuild
787cc47
042ca5e
* Tue Feb 24 2015 Paul Howarth <paul@city-fan.org> - 1.37-2
042ca5e
- Fix GBX pricing in FTfunds (CPAN RT#99783)
042ca5e
- Fix MStaruk quote retrieval (CPAN RT#99784)
042ca5e
0c6324e
* Mon Feb  2 2015 Paul Howarth <paul@city-fan.org> - 1.37-1
0c6324e
- Update to 1.37
0c6324e
  - MorningstarJP: changed dependency from Date::Calc to DateTime
0c6324e
  - Modified 00-use.t to show more info
0c6324e
  - Remove Crypt::SSLeay dependency in favour of LWP::Protocol::https
0c6324e
  - Updated HU.pm and test file to current website
0c6324e
27932ed
* Fri Nov 14 2014 Paul Howarth <paul@city-fan.org> - 1.35-1
27932ed
- Update to 1.35
27932ed
- Clean up and modernize spec somewhat (can't build for EL < 7 as the module
27932ed
  requires Mozilla::CA)
27932ed
ea44fed
* Fri Aug 29 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.20-4
ea44fed
- Perl 5.20 rebuild
ea44fed
7f20a87
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.20-3
7f20a87
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
7f20a87
Bill Nottingham aebdbe8
* Tue Feb 18 2014 Bill Nottingham <notting@redhat.com> - 1.20-2
Bill Nottingham aebdbe8
- add missing https requires (#859607)
Bill Nottingham aebdbe8
Bill Nottingham 024d03a
* Mon Feb 17 2014 Bill Nottingham <notting@redhat.com> - 1.20-1
Bill Nottingham 024d03a
- update to 1.20
Bill Nottingham 024d03a
a18423e
* Sun Aug 04 2013 Petr Pisar <ppisar@redhat.com> - 1.17-13
a18423e
- Perl 5.18 rebuild
a18423e
8dd6c6e
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.17-12
8dd6c6e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
8dd6c6e
788d0be
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.17-11
788d0be
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
788d0be
f3837c6
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.17-10
f3837c6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
f3837c6
a284b70
* Mon Jun 25 2012 Petr Pisar <ppisar@redhat.com> - 1.17-9
a284b70
- Perl 5.16 rebuild
5871272
- Specify all dependencies
a284b70
5f09e88
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.17-8
5f09e88
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
5f09e88
Petr Sabata 57533ff
* Tue Jul 19 2011 Petr Sabata <contyk@redhat.com> - 1.17-7
Petr Sabata 57533ff
- Perl mass rebuild
Petr Sabata 57533ff
00d8285
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.17-6
00d8285
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
00d8285
Bill Nottingham 33ec38d
* Wed Jan 12 2011 Bill Nottingham <notting@redhat.com> - 1.17-5
Bill Nottingham 33ec38d
- fix TIAA-CREF (#668935, <amessina@messinet.com>)
Bill Nottingham 33ec38d
Bill Nottingham 34e0fd7
* Mon Dec 06 2010 Bill Nottingham <notting@redhat.com> - 1.17-4
Bill Nottingham 34e0fd7
- fix buildrequires for F-15
Bill Nottingham 34e0fd7
f2dfa16
* Sat May 01 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.17-3
f2dfa16
- Mass rebuild with perl-5.12.0
f2dfa16
5dc734c
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 1.17-2
5dc734c
- rebuild against perl 5.10.1
5dc734c
a111900
* Mon Nov 23 2009 Bradley Baetz <bbaetz@gmail.com> - 1.17-1
a111900
- Update to 1.17
a111900
- Add extra BuildRequires needed for tests to pass
a111900
b06b15d
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13-4
b06b15d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
b06b15d
501ed0b
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13-3
501ed0b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
501ed0b
fd709db
* Thu Mar 06 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.13-2
fd709db
Rebuild for new perl
fd709db
d6b41dc
* Wed Sep 26 2007 Bill Nottingham <notting@redhat.com>
d6b41dc
- add perl(ExtUtils::MakeMaker) buildreq
d6b41dc
7b35cd1
* Tue Sep 18 2007 Bill Nottingham <notting@redhat.com>
7b35cd1
- fix source download URL
7b35cd1
e5fbfeb
* Fri Aug  3 2007 Bill Nottingham <notting@redhat.com>
e5fbfeb
- tweak license tag
e5fbfeb
f3bde08
* Mon Jan  8 2007 Bill Nottingham <notting@redhat.com> - 1.13-1
f3bde08
- update to 1.13
f3bde08
3df1e92
* Thu Sep 14 2006 Bill Nottingham <notting@redhat.com> - 1.11-4
3df1e92
- bump for rebuild
3df1e92
52a49af
* Mon Apr 10 2006 Bill Nottingham <notting@redhat.com> - 1.11-3
52a49af
- add buildreq for perl-HTML-TableExtract
52a49af
- clean up sed
52a49af
52a49af
* Mon Apr 10 2006 Bill Nottingham <notting@redhat.com> - 1.11-2
52a49af
- clean up spec file
52a49af
52a49af
* Fri Apr  7 2006 Bill Nottingham <notting@redhat.com> - 1.11-1
52a49af
- initial packaging