]>
Commit | Line | Data |
---|---|---|
25a57aaa | 1 | %include /usr/lib/rpm/macros.perl |
9a7a18b4 | 2 | %define pdir Math |
3 | %define pnam Spline | |
247199e5 | 4 | Summary: Math::Spline - Cubic Spline Interpolation of data |
ee371995 | 5 | Name: perl-Math-Spline |
6 | Version: 0.01 | |
4d68ba20 | 7 | Release: 9 |
8b3aef57 | 8 | License: GPL |
ee371995 | 9 | Group: Development/Languages/Perl |
1ef620ba | 10 | Source0: ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
30edbf7e | 11 | Patch0: %{name}-man.patch |
9cdcfa5d | 12 | BuildRequires: rpm-perlprov >= 3.0.3-16 |
69b570d6 | 13 | BuildRequires: perl >= 5.6 |
2eea62ce | 14 | %if %{?_without_tests:0}%{!?_without_tests:1} |
9cdcfa5d | 15 | BuildRequires: perl-Math-Derivative |
2eea62ce | 16 | %endif |
a1f08b89 | 17 | BuildArch: noarch |
3941bd09 | 18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
ee371995 | 19 | |
20 | %description | |
247199e5 | 21 | This package provides cubic spline interpolation of numeric data. The |
22 | data is passed as references to two arrays containing the x and y | |
23 | ordinates. It may be used as an exporter of the numerical functions or, | |
24 | more easily as a class module. | |
ee371995 | 25 | |
26 | %prep | |
25a57aaa | 27 | %setup -q -n %{pdir}-%{pnam}-%{version} |
ee371995 | 28 | %patch -p0 |
29 | ||
30 | %build | |
31 | perl Makefile.PL | |
a84b9aff | 32 | %{__make} |
2eea62ce | 33 | %{!?_without_tests:%{__make} test} |
ee371995 | 34 | |
35 | %install | |
36 | rm -rf $RPM_BUILD_ROOT | |
ee371995 | 37 | |
30edbf7e | 38 | %{__make} install DESTDIR=$RPM_BUILD_ROOT |
ee371995 | 39 | |
69b570d6 | 40 | gzip -9nf README |
ee371995 | 41 | |
42 | %clean | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | ||
45 | %files | |
46 | %defattr(644,root,root,755) | |
30edbf7e | 47 | %doc *.gz |
ee371995 | 48 | %{perl_sitelib}/Math/Spline.pm |
ee371995 | 49 | %{_mandir}/man3/* |