]>
Commit | Line | Data |
---|---|---|
33e421da JB |
1 | # |
2 | # Conditional build: | |
29ab03bd | 3 | %bcond_without tests # do not perform "make test" |
9413a2f9 | 4 | |
8ef5b9d6 | 5 | %define pdir Math |
6 | %define pnam Quaternion | |
33e421da | 7 | Summary: Math::Quaternion - Perl class to represent quaternions |
4592b7bc | 8 | Summary(pl.UTF-8): Math::Quaternion - klasa Perla do reprezentowania kwaternionów |
33e421da | 9 | Name: perl-Math-Quaternion |
1cc16f40 | 10 | Version: 0.03 |
11 | Release: 1 | |
0b2306d0 | 12 | # same as perl |
33e421da JB |
13 | License: GPL v1+ or Artistic |
14 | Group: Development/Languages/Perl | |
15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
1cc16f40 | 16 | # Source0-md5: 818e88923c99053f26317acd4c61adfd |
9413a2f9 ER |
17 | URL: http://search.cpan.org/dist/Math-Quaternion/ |
18 | %{?with_tests:BuildRequires: perl-Test-Simple} | |
4c2fc9bf | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
33e421da | 20 | BuildRequires: rpm-perlprov >= 4.1-13 |
33e421da JB |
21 | BuildArch: noarch |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
33e421da | 24 | %description |
9413a2f9 ER |
25 | This package lets you create and manipulate quaternions. A quaternion |
26 | is a mathematical object developed as a kind of generalization of | |
27 | complex numbers, usually represented by an array of four real numbers, | |
28 | and is often used to represent rotations in three-dimensional space. | |
33e421da | 29 | |
d3b93fce JR |
30 | %description -l pl.UTF-8 |
31 | Ten pakiet pozwala na tworzenie oraz wykorzystywanie kwaternionów w | |
32 | obliczeniach. Kwaternion to obiekt matematyczny wymyślony jako rodzaj | |
33 | uogólnienia liczb zespolonych, zazwyczaj reprezentowany jako tablica | |
34 | czterech liczb rzeczywistych, często używany do reprezentowania | |
35 | obrotów w przestrzeni trójwymiarowej. | |
33e421da JB |
36 | |
37 | %prep | |
38 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
39 | ||
40 | %build | |
41 | %{__perl} Makefile.PL \ | |
42 | INSTALLDIRS=vendor | |
33e421da JB |
43 | %{__make} |
44 | ||
29ab03bd | 45 | %{?with_tests:%{__make} test} |
33e421da JB |
46 | |
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %{__make} install \ | |
51 | DESTDIR=$RPM_BUILD_ROOT | |
52 | ||
53 | %clean | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %files | |
57 | %defattr(644,root,root,755) | |
58 | %doc Changes | |
59 | %{perl_vendorlib}/Math/Quaternion.pm | |
60 | %{_mandir}/man3/* |