File perl-Finance-Quote.spec of Package perl-Finance-Quote

# spec file for package perl-Finance-Quote
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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

# norootforbuild

Name:           perl-Finance-Quote
License:        GPL-2.0+
Group:          Development/Libraries/Perl
AutoReqProv:    on
Requires:       perl-Crypt-SSLeay perl-libwww-perl
Requires:       perl-HTML-Parser perl-HTML-TableExtract perl-HTML-TokeParser-Simple perl-HTML-Tree
Requires:       perl-URI perl-XML-SAX
Summary:        Provides access to time-delayed stockquotes
%define gitversion 20110222
Version:        1.17.0.%{gitversion}
Release:        9
Source:         finance-quote-git%{gitversion}.tar.bz2
Patch:          perl-Finance-Quote-LeRevenu.patch
Patch10:        perl-Finance-Quote-debian-02_typo.patch
Patch11:        perl-Finance-Quote-debian-03_whatis.patch
Patch12:        perl-Finance-Quote-debian-04_deka.patch
Patch13:        perl-Finance-Quote-debian-06_seb.patch
Patch14:        perl-Finance-Quote-debian-08_deka.patch
Patch15:        perl-Finance-Quote-debian-10_whatis.patch
Patch30:        perl-Finance-Quote-fedora-tiaa-cref.patch
Patch60:        perl-Finance-Quote-66235-Cdnfundlibrary-row.patch
Patch61:        perl-Finance-Quote-70690-IndiaMutual-temp.patch
Patch62:        perl-Finance-Quote-65269-ftfunds.patch
Patch63:        perl-Finance-Quote-64897-0001-adopted-to-site-changes.patch
Patch64:        perl-Finance-Quote-64897-0002-support-palladium-lookup.patch
Patch65:        perl-Finance-Quote-57401-financecanada.patch 
Patch66:        perl-Finance-Quote-61750-comdirect.patch 
Patch67:        perl-Finance-Quote-62619-vwd.patch
Patch68:        perl-Finance-Quote-64474-stooq.patch
Patch69:        perl-Finance-Quote-70690-IndiaMutual-temp-del.patch
Patch100:       perl-Finance-Quote-fsf-address.patch
Patch101:       perl-Finance-Quote-goldmoney-decimal-point.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildRequires:  perl-macros

Finance::Quote provides access to time-delayed stockquotes from a
number of sources.  After you've installed the pacakage, try 'perldoc
Finance::Quote' for full information.  Alternatively, you can 'perldoc
lib/Finance/' before the install.

    Paul Fenwick <>

%setup -q -n finance-quote
%patch -p1
%patch30 -p1
%patch60 -p1
%patch61 -p1
%patch62 -p1
%patch63 -p1
%patch64 -p1
%patch65 -p1
%patch66 -p1
%patch67 -p1
%patch68 -p1
%patch69 -p1
%patch100 -p1
%patch101 -p1
rm lib/Finance/*.orig lib/Finance/Quote/*.orig
mv Documentation/README Documentation/README2

perl Makefile.PL
make %{?_smp_mflags}

make DESTDIR=$RPM_BUILD_ROOT install_vendor

[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT

%doc ChangeLog ChangeLog.1 MANIFEST README Documentation/*
%doc %{_mandir}/man?/*