]>
Commit | Line | Data |
---|---|---|
01646b43 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %include /usr/lib/rpm/macros.perl | |
774622de | 6 | %define pdir Math |
7 | %define pnam BaseCnv | |
01646b43 | 8 | Summary: Math::BaseCnv - quickly convert between any number bases |
cae54786 | 9 | Summary(pl.UTF-8): Math::BaseCnv - szybkie przeliczanie między dowolnymi podstawami liczb |
01646b43 | 10 | Name: perl-Math-BaseCnv |
42292891 | 11 | Version: 1.4.75O6Pbr |
12 | Release: 1 | |
01646b43 JB |
13 | License: GPL v2 |
14 | Group: Development/Languages/Perl | |
15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tgz | |
42292891 | 16 | # Source0-md5: 60d5fb31db63e3d7a9807b0df37c4a80 |
a08c8263 | 17 | BuildRequires: perl-devel >= 1:5.8.0 |
01646b43 JB |
18 | BuildRequires: rpm-perlprov >= 4.1-13 |
19 | BuildArch: noarch | |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %description | |
23 | BaseCnv provides a few simple functions for converting between | |
24 | arbitrary number bases. It is as fast as the author currently knows | |
25 | how to make it (of course relying only on the lovely Perl). If you | |
26 | would rather utilize an object syntax for number-base conversion, | |
27 | please see Ken Williams' fine Math::BaseCalc module. | |
28 | ||
d950aab2 JR |
29 | %description -l pl.UTF-8 |
30 | BaseCnv udostępnia kilka prostych funkcji do przeliczania między | |
31 | dowolnymi podstawami liczb. Działa tak szybko, jak tylko autor umiał | |
32 | zrobić (oczywiście polegając tylko na ulubionym Perlu). W przypadku | |
33 | chęci przeliczania między podstawami z użyciem składni obiektowej | |
34 | zamiast tego można użyć modułu Math::BaseCalc Kena Williamsa. | |
01646b43 JB |
35 | |
36 | %prep | |
37 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
38 | ||
39 | %build | |
40 | %{__perl} Makefile.PL \ | |
41 | INSTALLDIRS=vendor | |
42 | ||
43 | %{__make} | |
44 | ||
45 | %{?with_tests:%{__make} test} | |
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) | |
302e33a0 | 58 | %doc README |
01646b43 JB |
59 | %{perl_vendorlib}/Math/BaseCnv.pm |
60 | %{_mandir}/man3/* |