]>
Commit | Line | Data |
---|---|---|
1 | %include /usr/lib/rpm/macros.perl | |
2 | %define pdir Math | |
3 | %define pnam Spline | |
4 | Summary: Math::Spline - Cubic Spline Interpolation of data | |
5 | Name: perl-Math-Spline | |
6 | Version: 0.01 | |
7 | Release: 9 | |
8 | License: GPL | |
9 | Group: Development/Languages/Perl | |
10 | Source0: ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
11 | Patch0: %{name}-man.patch | |
12 | BuildRequires: rpm-perlprov >= 3.0.3-16 | |
13 | BuildRequires: perl >= 5.6 | |
14 | %if %{?_without_tests:0}%{!?_without_tests:1} | |
15 | BuildRequires: perl-Math-Derivative | |
16 | %endif | |
17 | BuildArch: noarch | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
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. | |
25 | ||
26 | %prep | |
27 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
28 | %patch -p0 | |
29 | ||
30 | %build | |
31 | perl Makefile.PL | |
32 | %{__make} | |
33 | %{!?_without_tests:%{__make} test} | |
34 | ||
35 | %install | |
36 | rm -rf $RPM_BUILD_ROOT | |
37 | ||
38 | %{__make} install DESTDIR=$RPM_BUILD_ROOT | |
39 | ||
40 | gzip -9nf README | |
41 | ||
42 | %clean | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | ||
45 | %files | |
46 | %defattr(644,root,root,755) | |
47 | %doc *.gz | |
48 | %{perl_sitelib}/Math/Spline.pm | |
49 | %{_mandir}/man3/* |