diff --git a/.cvsignore b/.cvsignore index e69de29..e0cef02 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Finance-Quote-1.11.tar.gz diff --git a/perl-Finance-Quote.spec b/perl-Finance-Quote.spec new file mode 100644 index 0000000..3edc7cf --- /dev/null +++ b/perl-Finance-Quote.spec @@ -0,0 +1,56 @@ +Name: perl-Finance-Quote +Version: 1.11 +Release: 3 +Summary: A Perl module that retrieves stock and mutual fund quotes +Group: Development/Libraries +License: GPL +URL: http://finance-quote.sourceforge.net/ +Source0: http://search.cpan.org/CPAN/authors/id/P/PJ/PJF/Finance-Quote-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +BuildRequires: perl(HTML::TableExtract) + +%description +This module retrieves stock and mutual fund quotes from various exchanges +using various source. + +%prep +%setup -q -n Finance-Quote-%{version} +find . -name *.pm | xargs %{__sed} -i -e '/^#!.*\/usr\/bin\/perl/d' + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' +find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' +chmod -R u+w $RPM_BUILD_ROOT/* + +%check +make test + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc ChangeLog* Documentation/* +%{perl_vendorlib}/Finance/ +%{_mandir}/man3/*.3* + + +%changelog +* Mon Apr 10 2006 Bill Nottingham - 1.11-3 +- add buildreq for perl-HTML-TableExtract +- clean up sed + +* Mon Apr 10 2006 Bill Nottingham - 1.11-2 +- clean up spec file + +* Fri Apr 7 2006 Bill Nottingham - 1.11-1 +- initial packaging diff --git a/sources b/sources index e69de29..5ca1686 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +1fd84f6524ca6e470272c94d8de441bd Finance-Quote-1.11.tar.gz