3 %bcond_without tests # do not perform "make test"
6 %define pnam BigInt-FastCalc
7 Summary: Math::BigInt::FastCalc - some XS to support Math::BigInt
8 Summary(pl.UTF-8): Math::BigInt::FastCalc - XS wspierające Math::BigInt
9 Name: perl-Math-BigInt-FastCalc
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Math/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: ec04fc9213e866ab6c7c323357eb57a1
17 URL: http://search.cpan.org/dist/Math-BigInt-FastCalc/
18 BuildRequires: perl-Math-BigInt >= 1.997
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRequires: perl-Test-Simple >= 0.62
24 Requires: perl-Math-BigInt >= 1.997
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 This is a replacement library for Math::BigInt::Calc that reimplements
29 some of the Calc functions in XS.
31 %description -l pl.UTF-8
32 Ten moduł jest zamiennikiem Math::BigInt::Calc, będącym
33 reimplementacją części funkcji Calc w XS.
36 %setup -q -n %{pdir}-%{pnam}-%{version}
39 %{__perl} Makefile.PL \
43 OPTIMIZE="%{rpmcflags}"
45 %{?with_tests:%{__make} test}
48 rm -rf $RPM_BUILD_ROOT
51 DESTDIR=$RPM_BUILD_ROOT
54 rm -rf $RPM_BUILD_ROOT
57 %defattr(644,root,root,755)
58 %doc CHANGES CREDITS README
59 %{perl_vendorarch}/Math/BigInt/FastCalc.pm
60 %dir %{perl_vendorarch}/auto/Math/BigInt/FastCalc
61 %attr(755,root,root) %{perl_vendorarch}/auto/Math/BigInt/FastCalc/FastCalc.so
62 %{_mandir}/man3/Math::BigInt::FastCalc.3pm*