%include /usr/lib/rpm/macros.perl %define pdir Math %define pnam Spline Summary: Math::Spline - Cubic Spline Interpolation of data Name: perl-Math-Spline Version: 0.01 Release: 9 License: GPL Group: Development/Languages/Perl Source0: ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz Patch0: %{name}-man.patch BuildRequires: rpm-perlprov >= 3.0.3-16 BuildRequires: perl >= 5.6 %if %{?_without_tests:0}%{!?_without_tests:1} BuildRequires: perl-Math-Derivative %endif BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description This package provides cubic spline interpolation of numeric data. The data is passed as references to two arrays containing the x and y ordinates. It may be used as an exporter of the numerical functions or, more easily as a class module. %prep %setup -q -n %{pdir}-%{pnam}-%{version} %patch -p0 %build perl Makefile.PL %{__make} %{!?_without_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT %{__make} install DESTDIR=$RPM_BUILD_ROOT gzip -9nf README %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc *.gz %{perl_sitelib}/Math/Spline.pm %{_mandir}/man3/*