]>
Commit | Line | Data |
---|---|---|
5b0886c7 JB |
1 | # |
2 | # Conditional build: | |
47a1e5a2 | 3 | %bcond_without tests # unit tests |
5b0886c7 | 4 | # |
8281fa70 | 5 | %define pdir Crypt |
6 | %define pnam OpenSSL-Bignum | |
5b0886c7 | 7 | Summary: Crypt::OpenSSL::Bignum - OpenSSL's multiprecision integer arithmetic |
413bbf7e | 8 | Summary(pl.UTF-8): Crypt::OpenSSL::Bignum - arytmetyka liczb całkowitych dużej precyzji z OpenSSL |
5b0886c7 | 9 | Name: perl-Crypt-OpenSSL-Bignum |
96e64af5 | 10 | Version: 0.09 |
a939cc93 | 11 | Release: 6 |
a504f560 | 12 | # same as perl |
5b0886c7 JB |
13 | License: GPL v1+ or Artistic |
14 | Group: Development/Languages/Perl | |
9e63dbbc | 15 | Source0: http://www.cpan.org/modules/by-module/Crypt/%{pdir}-%{pnam}-%{version}.tar.gz |
96e64af5 | 16 | # Source0-md5: c8ae05771c70c69b3e5647b29a885ed2 |
53288a45 | 17 | Patch0: %{name}-mod_sqrt.patch |
47a1e5a2 | 18 | URL: https://metacpan.org/dist/Crypt-OpenSSL-Bignum |
56464c58 | 19 | BuildRequires: openssl-devel >= 0.9.7d |
2c83645f | 20 | BuildRequires: perl-devel >= 1:5.8.0 |
5b0886c7 | 21 | BuildRequires: rpm-perlprov >= 4.1-13 |
1c341a90 | 22 | BuildRequires: rpmbuild(macros) >= 1.745 |
5b0886c7 JB |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
25 | %description | |
26 | Crypt::OpenSSL::Bignum provides access to OpenSSL multiprecision | |
27 | integer arithmetic libraries. Presently, many though not all of the | |
28 | arithmetic operations that OpenSSL provides are exposed to Perl. In | |
29 | addition, this module can be used to provide access to bignum values | |
30 | produced by other OpenSSL modules, such as key parameters from | |
31 | Crypt::OpenSSL::RSA. | |
32 | ||
7433739f JR |
33 | %description -l pl.UTF-8 |
34 | Crypt::OpenSSL::Bignum daje dostęp do bibliotek arytmetyki | |
35 | liczb całkowitych dużej precyzji z OpenSSL. Aktualnie wiele, ale nie | |
36 | wszystkie, operacje arytmetyczne udostępniane przez OpenSSL są | |
37 | dostępne z Perla. Ponadto ten moduł może być używany do udostępnienia | |
38 | dużych wartości produkowanych przez inne moduły OpenSSL, takie jak | |
5b0886c7 JB |
39 | parametry klucza z Crypt::OpenSSL::RSA. |
40 | ||
41 | %prep | |
42 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
53288a45 | 43 | %patch0 -p1 |
5b0886c7 JB |
44 | |
45 | %build | |
46 | %{__perl} Makefile.PL \ | |
da0eeb31 | 47 | INSTALLDIRS=vendor |
53253505 | 48 | %{__make} \ |
f9d10b22 | 49 | CC="%{__cc}" \ |
53253505 | 50 | OPTIMIZE="%{rpmcflags}" |
5b0886c7 | 51 | |
a3bf894e | 52 | %{?with_tests:%{__make} test} |
5b0886c7 JB |
53 | |
54 | %install | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
53253505 | 57 | %{__make} install \ |
58 | DESTDIR=$RPM_BUILD_ROOT | |
5b0886c7 JB |
59 | |
60 | %clean | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | ||
63 | %files | |
64 | %defattr(644,root,root,755) | |
65 | %doc Changes README | |
66 | %{perl_vendorarch}/Crypt/OpenSSL/Bignum.pm | |
67 | %{perl_vendorarch}/Crypt/OpenSSL/Bignum | |
68 | %dir %{perl_vendorarch}/auto/Crypt/OpenSSL/Bignum | |
5b0886c7 | 69 | %attr(755,root,root) %{perl_vendorarch}/auto/Crypt/OpenSSL/Bignum/Bignum.so |
9e63dbbc | 70 | %{_mandir}/man3/Crypt::OpenSSL::Bignum*.3pm* |