%include /usr/lib/rpm/macros.perl %define pdir Math %define pnam MatrixReal Summary: Math::MatrixReal - Implements the data type "matrix of reals" Summary(pl): Math::MatrixReal - Implementacja typu danych "macierz liczb rzeczywistych" Name: perl-Math-MatrixReal Version: 1.9 Release: 4 License: GPL Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: 4df6e63d0e9ff902f1af5dc430a0b483 BuildRequires: perl-devel >= 5.6 BuildRequires: rpm-perlprov >= 4.1-13 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Implements the data type "matrix of reals" (and consequently also "vector of reals"), which can be used almost like any other basic Perl type thanks to OPERATOR OVERLOADING, i.e., "$product = $matrix1 * $matrix2;" does what you would like it to do (a matrix multiplication). %description -l pl Ten moduł jest implementacją typu danych "macierz liczb rzeczywistych" (i w konsekwencji także "wektor liczb rzeczywistych"), który może być używany prawie tak samo jak każdy inny podstawowy typ Perla dzięki przeciążaniu operatorów - tzn. "$product = $matrix1 * $matrix2;" zrobi to, czego się oczekuje (pomnoży macierze). %prep %setup -q -n %{pdir}-%{pnam}-%{version} %build %{__perl} Makefile.PL \ INSTALLDIRS=vendor %{__make} %install rm -rf $RPM_BUILD_ROOT %{__make} install DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc README %{perl_vendorlib}/Math/* %{_mandir}/man3/*