]> git.pld-linux.org Git - packages/perl-Math-BaseCnv.git/blob - perl-Math-BaseCnv.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Math-BaseCnv.git] / perl-Math-BaseCnv.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4
5 %define         pdir    Math
6 %define         pnam    BaseCnv
7 Summary:        Math::BaseCnv - quickly convert between any number bases
8 Summary(pl.UTF-8):      Math::BaseCnv - szybkie przeliczanie między dowolnymi podstawami liczb
9 Name:           perl-Math-BaseCnv
10 Version:        1.4.75O6Pbr
11 Release:        1
12 License:        GPL v2
13 Group:          Development/Languages/Perl
14 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tgz
15 # Source0-md5:  60d5fb31db63e3d7a9807b0df37c4a80
16 URL:            http://search.cpan.org/dist/Math-BaseCnv/
17 BuildRequires:  perl-devel >= 1:5.8.0
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
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.
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)
58 %doc README
59 %{perl_vendorlib}/Math/BaseCnv.pm
60 %{_mandir}/man3/*
This page took 0.072727 seconds and 4 git commands to generate.