3 %bcond_without tests # do not perform "make test"
7 Summary: Finance::Quote - Get stock and mutual fund quotes from various exchanges
8 Summary(pl.UTF-8): Finance::Quote - Pobieranie notowań giełdowych i funduszy powierniczych
9 Name: perl-Finance-Quote
12 License: GPL v1+ or Artistic
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/Finance/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5: 446dba3837ffa395bffdea268824e0c1
16 URL: http://search.cpan.org/dist/Finance-Quote/
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRequires: perl(Crypt::SSLeay)
21 BuildRequires: perl(HTML::TableExtract)
22 BuildRequires: perl(HTML::TreeBuilder)
23 BuildRequires: perl-libwww
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 This module gets stock quotes from various Internet sources, including
30 Yahoo! Finance, Fidelity Investments, and the Australian Stock
31 Exchange. There are two methods of using this module - a functional
32 interface that is depreciated, and an object-orientated method that
33 provides greater flexibility and stability.
35 %description -l pl.UTF-8
36 Ten moduł pobiera notowania giełdowe z różnych źródeł w Internecie, w
37 tym z Yahoo! Finance, Fidelity Investments i Australian Stock Exchange
38 (giełdy australijskiej). Istnieją dwie metody użycia tego modułu -
39 przestarzały interfejs funkcyjny i zorientowana obiektowo metoda
40 dająca większą elastyczność i stabilność.
43 %setup -q -n %{pdir}-%{pnam}-%{version}
46 %{__perl} Makefile.PL \
51 %{?with_tests:%{__make} test}
54 rm -rf $RPM_BUILD_ROOT
56 %{__make} pure_install \
57 DESTDIR=$RPM_BUILD_ROOT
59 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
60 cp -a Examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
63 rm -rf $RPM_BUILD_ROOT
66 %defattr(644,root,root,755)
67 %doc ChangeLog INSTALL README
68 %dir %{perl_vendorlib}/Finance
69 %{perl_vendorlib}/Finance/*.pm
70 %dir %{perl_vendorlib}/Finance/Quote
71 %{perl_vendorlib}/Finance/Quote/*.pm
72 %dir %{perl_vendorlib}/Finance/Quote/Yahoo
73 %{perl_vendorlib}/Finance/Quote/Yahoo/*.pm
75 %{_examplesdir}/%{name}-%{version}