#
# Conditional build:
-%bcond_without tests # Do not perform "make test"
+%bcond_without tests # unit tests
#
-%include /usr/lib/rpm/macros.perl
%define pdir Crypt
%define pnam OpenSSL-Bignum
Summary: Crypt::OpenSSL::Bignum - OpenSSL's multiprecision integer arithmetic
Summary(pl.UTF-8): Crypt::OpenSSL::Bignum - arytmetyka liczb całkowitych dużej precyzji z OpenSSL
Name: perl-Crypt-OpenSSL-Bignum
-Version: 0.03
-Release: 1
+Version: 0.09
+Release: 6
# same as perl
License: GPL v1+ or Artistic
Group: Development/Languages/Perl
-Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
-# Source0-md5: b526c1554b2f3bf7d94bf0c8c474fd2d
+Source0: http://www.cpan.org/modules/by-module/Crypt/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: c8ae05771c70c69b3e5647b29a885ed2
+Patch0: %{name}-mod_sqrt.patch
+URL: https://metacpan.org/dist/Crypt-OpenSSL-Bignum
BuildRequires: openssl-devel >= 0.9.7d
BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: rpm-perlprov >= 4.1-13
+BuildRequires: rpmbuild(macros) >= 1.745
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%prep
%setup -q -n %{pdir}-%{pnam}-%{version}
+%patch0 -p1
%build
%{__perl} Makefile.PL \
INSTALLDIRS=vendor
%{__make} \
+ CC="%{__cc}" \
OPTIMIZE="%{rpmcflags}"
%{?with_tests:%{__make} test}
%{perl_vendorarch}/Crypt/OpenSSL/Bignum.pm
%{perl_vendorarch}/Crypt/OpenSSL/Bignum
%dir %{perl_vendorarch}/auto/Crypt/OpenSSL/Bignum
-%{perl_vendorarch}/auto/Crypt/OpenSSL/Bignum/Bignum.bs
%attr(755,root,root) %{perl_vendorarch}/auto/Crypt/OpenSSL/Bignum/Bignum.so
-%{_mandir}/man3/*
+%{_mandir}/man3/Crypt::OpenSSL::Bignum*.3pm*