]>
Commit | Line | Data |
---|---|---|
31cb7a50 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
c8029549 | 4 | |
a16b0092 | 5 | %define pdir Math |
6 | %define pnam Spline | |
247199e5 | 7 | Summary: Math::Spline - Cubic Spline Interpolation of data |
6a547e74 | 8 | Summary(pl.UTF-8): Math::Spline - interpolacja danych splajnami kubicznymi |
ee371995 | 9 | Name: perl-Math-Spline |
10 | Version: 0.01 | |
19a04d10 | 11 | Release: 13 |
5042c9ba | 12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
ee371995 | 14 | Group: Development/Languages/Perl |
744e31f0 | 15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
9265129e | 16 | # Source0-md5: a9ebe29ba1794d1dca60aa0c44178197 |
30edbf7e | 17 | Patch0: %{name}-man.patch |
c8029549 | 18 | URL: http://search.cpan.org/dist/Math-Spline/ |
59a5fdb9 | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
c8029549 | 20 | BuildRequires: rpm-perlprov >= 4.1-13 |
31cb7a50 | 21 | %if %{with tests} |
9cdcfa5d | 22 | BuildRequires: perl-Math-Derivative |
2eea62ce | 23 | %endif |
a1f08b89 | 24 | BuildArch: noarch |
3941bd09 | 25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
ee371995 | 26 | |
27 | %description | |
247199e5 | 28 | This package provides cubic spline interpolation of numeric data. The |
29 | data is passed as references to two arrays containing the x and y | |
8ba3c6fc JB |
30 | ordinates. It may be used as an exporter of the numerical functions |
31 | or, more easily as a class module. | |
32 | ||
6305b370 JR |
33 | %description -l pl.UTF-8 |
34 | Ten pakiet udostępnia interpolację danych numerycznych przy pomocy | |
35 | splajnów kubicznych. Dane są przekazywane jako referencje do dwóch | |
36 | tablic zawierających współrzędne x i y. Moduł może być używany do | |
37 | eksportowania funkcji numerycznych albo, łatwiej, jako klasa. | |
ee371995 | 38 | |
39 | %prep | |
25a57aaa | 40 | %setup -q -n %{pdir}-%{pnam}-%{version} |
724da64b | 41 | %patch0 -p0 |
ee371995 | 42 | |
43 | %build | |
db829b3a | 44 | %{__perl} Makefile.PL \ |
bd6b7a3b | 45 | INSTALLDIRS=vendor |
a84b9aff | 46 | %{__make} |
8ba3c6fc | 47 | |
31cb7a50 | 48 | %{?with_tests:%{__make} test} |
ee371995 | 49 | |
50 | %install | |
51 | rm -rf $RPM_BUILD_ROOT | |
ee371995 | 52 | |
a5df5ef7 | 53 | %{__make} install \ |
54 | DESTDIR=$RPM_BUILD_ROOT | |
ee371995 | 55 | |
ee371995 | 56 | %clean |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %files | |
60 | %defattr(644,root,root,755) | |
8ba3c6fc | 61 | %doc README |
db829b3a | 62 | %{perl_vendorlib}/Math/Spline.pm |
ee371995 | 63 | %{_mandir}/man3/* |