]>
Commit | Line | Data |
---|---|---|
29b7880d | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
4396b476 | 5 | %define pdir Math |
6 | %define pnam MatrixReal | |
a4e4b0b8 | 7 | Summary: Math::MatrixReal - implements the data type "matrix of reals" |
6aa0ab72 | 8 | Summary(pl.UTF-8): Math::MatrixReal - implementacja typu danych "macierz liczb rzeczywistych" |
294890f1 | 9 | Name: perl-Math-MatrixReal |
46aff1f7 | 10 | Version: 2.05 |
ee017604 | 11 | Release: 1 |
29b7880d | 12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
294890f1 | 14 | Group: Development/Languages/Perl |
9b43a476 | 15 | Source0: http://www.cpan.org/modules/by-module/Math/%{pdir}-%{pnam}-%{version}.tar.gz |
46aff1f7 | 16 | # Source0-md5: 67f23122424830b5eea044f987b892b9 |
9b43a476 | 17 | URL: http://search.cpan.org/dist/Math-MatrixReal/ |
c29a04ec | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
a02f9fec | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
ce7bab9e | 20 | BuildArch: noarch |
87bdce24 | 21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
294890f1 | 22 | |
23 | %description | |
0dd97c97 | 24 | Implements the data type "matrix of reals" (and consequently also |
25 | "vector of reals"), which can be used almost like any other basic Perl | |
755f34e4 JB |
26 | type thanks to OPERATOR OVERLOADING, i.e., "$product = $matrix1 * |
27 | $matrix2;" does what you would like it to do (a matrix | |
28 | multiplication). | |
29 | ||
8daa5ae7 JR |
30 | %description -l pl.UTF-8 |
31 | Ten moduł jest implementacją typu danych "macierz liczb rzeczywistych" | |
32 | (i w konsekwencji także "wektor liczb rzeczywistych"), który może być | |
33 | używany prawie tak samo jak każdy inny podstawowy typ Perla dzięki | |
34 | przeciążaniu operatorów - tzn. "$product = $matrix1 * $matrix2;" zrobi | |
35 | to, czego się oczekuje (pomnoży macierze). | |
294890f1 | 36 | |
37 | %prep | |
55ba19c3 | 38 | %setup -q -n %{pdir}-%{pnam}-%{version} |
294890f1 | 39 | |
40 | %build | |
a02f9fec | 41 | %{__perl} Makefile.PL \ |
a11cc985 | 42 | INSTALLDIRS=vendor |
daa630c0 | 43 | %{__make} |
294890f1 | 44 | |
29b7880d | 45 | %{?with_tests:%{__make} test} |
46 | ||
294890f1 | 47 | %install |
48 | rm -rf $RPM_BUILD_ROOT | |
0dd97c97 | 49 | |
80ae6e67 | 50 | %{__make} install \ |
51 | DESTDIR=$RPM_BUILD_ROOT | |
294890f1 | 52 | |
3a6dd040 AG |
53 | # get rid of pod documentation |
54 | rm -f $RPM_BUILD_ROOT%{perl_vendorlib}/Math/*.pod | |
55 | ||
294890f1 | 56 | %clean |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %files | |
60 | %defattr(644,root,root,755) | |
63dfb953 | 61 | %doc CHANGES CREDITS GOALS README TODO |
6f9a5b69 | 62 | %{perl_vendorlib}/Math/MatrixReal.pm |
46aff1f7 | 63 | %{perl_vendorlib}/Math/funcs.pl |
6f9a5b69 JB |
64 | %{_mandir}/man3/Math::Kleene.3pm* |
65 | %{_mandir}/man3/Math::MatrixReal.3pm* |