3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Math::Vec - Object-Oriented Vector Math Methods in Perl
9 Summary(pl.UTF-8): Math::Vec - zorientowane obiektowo metody do wektorów w Perlu
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/Math/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 3d881e6f8074257d54125190719859eb
18 URL: http://search.cpan.org/dist/Math-Vec/
19 BuildRequires: perl-Module-Build
20 BuildRequires: perl-devel >= 1:5.8.0
21 BuildRequires: rpm-perlprov >= 4.1-13
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 This module was adapted from Math::Vector, written by Wayne M.
29 It uses most of the same algorithms, and currently preserves the same
30 names as the original functions, though some aliases have been added
31 to make the interface more natural (at least to the way I think.)
33 The "object" for the object oriented calling style is a blessed array
34 reference which contains a vector of the form [x,y,z]. Methods will
35 typically return a list.
37 %description -l pl.UTF-8
38 Ten moduł został zaadaptowany z Math::Vector napisanego przez Wayne'a
41 Używa w większości tych samych algorytmów i aktualnie zachowuje te
42 same nazwy jak funkcje oryginalne, ale dodano trochę aliasów, aby
43 uczynić interfejs bardziej naturalnym (przynajmniej zdaniem autora).
45 "Obiekt" dla zorientowanego obiektowo stylu wywołań jest
46 pobłogosławioną referencją do tablicy zawierającą wektor w postaci
47 [x,y,z]. Metody zwykle zwracają listę.
50 %setup -q -n %{pdir}-%{pnam}-%{version}
53 %{__perl} Makefile.PL \
55 destdir=$RPM_BUILD_ROOT
58 %{?with_tests:./Build test}
61 rm -rf $RPM_BUILD_ROOT
66 rm -rf $RPM_BUILD_ROOT
69 %defattr(644,root,root,755)
71 %{perl_vendorlib}/Math/Vec.pm