]>
Commit | Line | Data |
---|---|---|
0f74ebfc | 1 | # |
2 | # Conditional build: | |
0eef5e47 | 3 | %bcond_without tests # do not perform "make test" |
0f74ebfc | 4 | # |
5 | %include /usr/lib/rpm/macros.perl | |
cac32f3e | 6 | %define pdir Math |
7 | %define pnam GSL | |
0f74ebfc | 8 | Summary: Math::GSL Perl module - resticted interface to GNU Scientific Library |
caf6cc40 | 9 | Summary(pl.UTF-8): Moduł Perla Math::GSL - ograniczony interfejs do GNU Scientific Library |
0f74ebfc | 10 | Name: perl-Math-GSL |
11 | Version: 0.01 | |
b5a42ad4 | 12 | Release: 9 |
905a8f81 | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
0f74ebfc | 15 | Group: Development/Languages/Perl |
8fd85412 | 16 | Source0: http://www.cpan.org/modules/by-module/Math/%{pdir}-%{pnam}-%{version}.tar.gz |
0f74ebfc | 17 | # Source0-md5: abc4474bbbf5439b46a551284013cb35 |
8fd85412 | 18 | URL: http://search.cpan.org/dist/Math-GSL/ |
b3c27b44 | 19 | BuildRequires: gsl-devel |
260b8a7c | 20 | BuildRequires: perl-devel >= 1:5.8.0 |
0f74ebfc | 21 | BuildRequires: rpm-perlprov >= 4.1-13 |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | Math::GSL Perl module is a very resticted perl interface to -lgsl - | |
26 | GNU Scientific Library. Only the routines relating the solving of | |
27 | polynomials are exported. It exists to provide that function to | |
28 | "tkscope" in Audio::Data. | |
29 | ||
c17612c0 JR |
30 | %description -l pl.UTF-8 |
31 | Moduł Perla Math::GSL stanowi bardzo ograniczony interfejs do -lgsl - | |
0f74ebfc | 32 | Biblioteki Naukowej GNU (GNU Scientific Library). Eksportuje jedynie |
c17612c0 JR |
33 | funkcje dotyczące rozwiązywania równań wielomianowych. Istnieje, aby |
34 | udostępnić te funkcje "tkscope" w module Audio::Data. | |
0f74ebfc | 35 | |
36 | %prep | |
37 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
38 | ||
39 | %build | |
40 | %{__perl} Makefile.PL \ | |
41 | INSTALLDIRS=vendor | |
0f74ebfc | 42 | %{__make} \ |
80fb6af3 | 43 | CC="%{__cc}" \ |
0f74ebfc | 44 | OPTIMIZE="%{rpmcflags}" |
45 | ||
0eef5e47 | 46 | %{?with_tests:%{__make} test} |
0f74ebfc | 47 | |
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %{__make} install \ | |
52 | DESTDIR=$RPM_BUILD_ROOT | |
53 | ||
54 | %clean | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
59 | %doc README | |
60 | %{perl_vendorarch}/Math/* | |
61 | %dir %{perl_vendorarch}/auto/Math/GSL | |
0f74ebfc | 62 | %attr(755,root,root) %{perl_vendorarch}/auto/Math/GSL/*.so |