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