]> git.pld-linux.org Git - packages/perl-Math-BigInt-FastCalc.git/blob - perl-Math-BigInt-FastCalc.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Math-BigInt-FastCalc.git] / perl-Math-BigInt-FastCalc.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %define         pdir    Math
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
10 Version:        0.30
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/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
21 %if %{with tests}
22 BuildRequires:  perl-Test-Simple >= 0.62
23 %endif
24 Requires:       perl-Math-BigInt >= 1.997
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 This is a replacement library for Math::BigInt::Calc that reimplements
29 some of the Calc functions in XS.
30
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.
34
35 %prep
36 %setup -q -n %{pdir}-%{pnam}-%{version}
37
38 %build
39 %{__perl} Makefile.PL \
40         INSTALLDIRS=vendor
41 %{__make} \
42         CC="%{__cc}" \
43         OPTIMIZE="%{rpmcflags}"
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 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*
This page took 0.634965 seconds and 3 git commands to generate.