]> git.pld-linux.org Git - packages/perl-Math-BigInt-Named.git/blob - perl-Math-BigInt-Named.spec
2b9d0d5331eb4d3b1eb77c07b3825cf1399ec444
[packages/perl-Math-BigInt-Named.git] / perl-Math-BigInt-Named.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define         pdir    Math
7 %define         pnam    BigInt-Named
8 Summary:        Math::BigInt::Named - BigInts that know their name in some languages
9 Summary(pl.UTF-8):      Math::BigInt::Named - BigInty znające swoje nazwy w niektórych językach
10 Name:           perl-Math-BigInt-Named
11 Version:        0.03
12 Release:        1
13 # same as perl
14 License:        GPL v1+ or Artistic
15 Group:          Development/Languages/Perl
16 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5:  ed4ae17fb2dabfabbe408f24130e483e
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 install 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.439276 seconds and 2 git commands to generate.