3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
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
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
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 This is a subclass of Math::BigInt and adds support for named numbers
27 in English and German.
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.
34 %setup -q -n %{pdir}-%{pnam}-%{version}
37 %{__perl} Makefile.PL \
41 %{?with_tests:%{__make} test}
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
48 DESTDIR=$RPM_BUILD_ROOT
50 install examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
53 rm -rf $RPM_BUILD_ROOT
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
61 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}