]>
Commit | Line | Data |
---|---|---|
42438eb7 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %define pdir Math | |
6 | %define pnam Complex | |
42438eb7 JB |
7 | Summary: Math::Complex - complex numbers and associated mathematical functions |
8 | Summary(pl.UTF-8): Math::Complex - liczby zespolone i związane z nimi funkcje matematyczne | |
9 | Name: perl-Math-Complex | |
10 | Version: 1.59 | |
11 | Release: 1 | |
12 | # same as perl | |
13 | License: GPL v1+ or Artistic | |
14 | Group: Development/Languages/Perl | |
15 | Source0: http://www.cpan.org/modules/by-module/Math/%{pdir}-%{pnam}-%{version}.tar.gz | |
16 | # Source0-md5: 94f9d6b557b56408949928a55227c86f | |
17 | URL: http://search.cpan.org/dist/Math-Complex/ | |
18 | BuildRequires: perl-Scalar-List-Utils >= 1.11 | |
19 | BuildRequires: perl-devel >= 1:5.8.0 | |
20 | BuildRequires: rpm-perlprov >= 4.1-13 | |
21 | %if %{with tests} | |
22 | BuildRequires: perl-Test-Simple | |
23 | %endif | |
fea14923 JB |
24 | # see Math/Trig.pm for version |
25 | Provides: perl-Math-Trig = 1.23 | |
26 | Obsoletes: perl-Math-Trig < 1.23 | |
42438eb7 JB |
27 | BuildArch: noarch |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
30 | %description | |
31 | This package lets you create and manipulate complex numbers. By | |
32 | default, Perl limits itself to real numbers, but an extra use | |
33 | statement brings full complex support, along with a full set of | |
34 | mathematical functions typically associated with and/or extended to | |
35 | complex numbers. | |
36 | ||
37 | %description -l pl.UTF-8 | |
38 | Ten pakiet pozwala na tworzenie i operowanie na liczbach zespolonych. | |
39 | Domyślnie Perl jest ograniczony do samych liczb rzeczywistych, ale | |
40 | dodatkowa instrukcja "use" zapewnia obsługę liczb zespolonych, wraz ze | |
41 | zbiorem funkcji matematycznych typowo związanych z liczbami | |
42 | zespolonymi lub rozszerzonych o obsługę liczb zespolonych. | |
43 | ||
44 | %prep | |
45 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
46 | ||
47 | %build | |
48 | %{__perl} Makefile.PL \ | |
49 | INSTALLDIRS=vendor | |
50 | %{__make} | |
51 | ||
52 | %{?with_tests:%{__make} test} | |
53 | ||
54 | %install | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %{__make} pure_install \ | |
58 | DESTDIR=$RPM_BUILD_ROOT | |
59 | ||
60 | %clean | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | ||
63 | %files | |
64 | %defattr(644,root,root,755) | |
65 | %doc ChangeLog TODO | |
66 | %{perl_vendorlib}/Math/Complex.pm | |
67 | %{perl_vendorlib}/Math/Trig.pm | |
68 | %{_mandir}/man3/Math::Complex.3pm* | |
69 | %{_mandir}/man3/Math::Trig.3pm* |