]>
Commit | Line | Data |
---|---|---|
42300a95 JB |
1 | # |
2 | # Conditional build: | |
5d576c0e | 3 | %bcond_without tests # do not perform "make test" |
b1c5b948 | 4 | |
05d75cda | 5 | %define pdir Math |
6 | %define pnam BaseArith | |
b1c5b948 | 7 | %include /usr/lib/rpm/macros.perl |
42300a95 | 8 | Summary: Math::BaseArith - Perl extension for mixed-base number representation |
1758d310 | 9 | Summary(pl.UTF-8): Math::BaseArith - rozszerzenie Perla do reprezentacji liczb o różnej podstawie |
42300a95 JB |
10 | Name: perl-Math-BaseArith |
11 | Version: 1.00 | |
95ffa5bf | 12 | Release: 3 |
bfbaade4 | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
42300a95 | 15 | Group: Development/Languages/Perl |
ec9e1aa0 | 16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
eaf732c1 | 17 | # Source0-md5: 4fb5ba50af1e8d83e0d442d4b950703c |
b1c5b948 | 18 | URL: http://search.cpan.org/dist/Math-BaseArith/ |
2464a1ad | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
6b7610c4 | 20 | BuildRequires: rpm-perlprov >= 4.1-13 |
42300a95 JB |
21 | BuildArch: noarch |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | The inspiration for this module is a pair of functions in the APL | |
26 | programming language called encode (a.k.a. "representation") and | |
27 | decode (a.k.a. base-value). Their principal use is to convert numbers | |
28 | from one number base to another. Mixed number bases are permitted. | |
29 | ||
443f715c JR |
30 | %description -l pl.UTF-8 |
31 | Ten moduł jest zainspirowany parą funkcji w języku programowania APL o | |
32 | nazwach encode (czyli "reprezentacja") oraz decode (wartość bazowa). | |
42300a95 | 33 | Zasadnicze ich przeznaczenie to przeliczanie liczb z jednej podstawy |
443f715c | 34 | do innej. Dozwolone są mieszane podstawy liczb. |
42300a95 JB |
35 | |
36 | %prep | |
37 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
38 | ||
39 | %build | |
6b7610c4 | 40 | %{__perl} Makefile.PL \ |
87f1e6fa | 41 | INSTALLDIRS=vendor |
42300a95 JB |
42 | %{__make} |
43 | ||
5d576c0e | 44 | %{?with_tests:%{__make} test} |
42300a95 JB |
45 | |
46 | %install | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %{__make} install \ | |
50 | DESTDIR=$RPM_BUILD_ROOT | |
51 | ||
52 | %clean | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %files | |
56 | %defattr(644,root,root,755) | |
57 | %doc Changes README | |
6b7610c4 | 58 | %{perl_vendorlib}/Math/BaseArith.pm |
42300a95 | 59 | %{_mandir}/man3/* |