]> git.pld-linux.org Git - SPECS.git/blob - perl-Math-BigInt-Named.spec
SPECS updated Mon 29 Apr 22:05:02 CEST 2024
[SPECS.git] / perl-Math-BigInt-Named.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4
5 %define         pdir    Math
6 %define         pnam    BigInt-Named
7 Summary:        Math::BigInt::Named - BigInts that know their name in some languages
8 Summary(pl.UTF-8):      Math::BigInt::Named - BigInty znające swoje nazwy w niektórych językach
9 Name:           perl-Math-BigInt-Named
10 Version:        0.03
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/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  ed4ae17fb2dabfabbe408f24130e483e
17 URL:            http://search.cpan.org/dist/Math-BigInt-Named/
18 BuildRequires:  perl-Math-BigInt >= 1.48
19 BuildRequires:  perl-devel >= 1:5.8.0
20 BuildRequires:  rpm-perlprov >= 4.1-13
21 Requires:       perl-Math-BigInt >= 1.48
22 BuildArch:      noarch
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 This is a subclass of Math::BigInt and adds support for named numbers
27 in English and German.
28
29 %description -l pl.UTF-8
30 To jest podklasa Math::BigInt dodająca obsługę słownej reprezentacji
31 liczb w języku angielskim i niemieckim.
32
33 %prep
34 %setup -q -n %{pdir}-%{pnam}-%{version}
35
36 %build
37 %{__perl} Makefile.PL \
38         INSTALLDIRS=vendor
39 %{__make}
40
41 %{?with_tests:%{__make} test}
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
46
47 %{__make} install \
48         DESTDIR=$RPM_BUILD_ROOT
49
50 cp -p examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %files
56 %defattr(644,root,root,755)
57 %doc CHANGES CREDITS LICENSE README TODO
58 %{perl_vendorlib}/Math/BigInt/Named.pm
59 %{perl_vendorlib}/Math/BigInt/Named
60 %{_mandir}/man3/*
61 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}
This page took 0.990158 seconds and 3 git commands to generate.