]>
Commit | Line | Data |
---|---|---|
56ee6345 JB |
1 | # |
2 | # Conditional build: | |
a7765e4b | 3 | %bcond_without tests # Do not perform "make test" |
56ee6345 | 4 | # |
30d047e4 | 5 | %define pdir Crypt |
6 | %define pnam OpenSSL-Random | |
56ee6345 | 7 | Summary: Crypt::OpenSSL::Random - accessing the OpenSSL pseudo-random number generator |
afdd3ac2 | 8 | Summary(pl.UTF-8): Crypt::OpenSSL::Random - dostęp do generatora liczb pseudolosowych z OpenSSL |
4bc2f6b2 | 9 | Name: perl-Crypt-OpenSSL-Random |
f7cd9029 | 10 | Version: 0.15 |
fc6425d9 | 11 | Release: 4 |
ec68ac35 JB |
12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
4bc2f6b2 | 14 | Group: Development/Languages/Perl |
0c8fc95c | 15 | Source0: http://www.cpan.org/modules/by-module/Crypt/%{pdir}-%{pnam}-%{version}.tar.gz |
f7cd9029 | 16 | # Source0-md5: bcde8d5a822c91376deda3c4f0c75fbe |
0c8fc95c | 17 | URL: http://search.cpan.org/dist/Crypt-OpenSSL-Random/ |
47e7283b | 18 | BuildRequires: openssl-devel >= 0.9.7d |
f54a0ed2 | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
2ac8510f | 20 | BuildRequires: perl-Crypt-OpenSSL-Guess |
9d3f34bf | 21 | BuildRequires: rpm-perlprov >= 4.1-13 |
4bc2f6b2 | 22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
24 | %description | |
56ee6345 JB |
25 | Crypt::OpenSSL::Random provides the ability to seed and query the |
26 | OpenSSL library's pseudo-random number generator. | |
27 | ||
7f5e4d5b JR |
28 | %description -l pl.UTF-8 |
29 | Moduł Crypt::OpenSSL::Random daje możliwość zasilania oraz odpytywanie | |
56ee6345 | 30 | generatora liczb pseudolosowych z biblioteki OpenSSL. |
4bc2f6b2 | 31 | |
32 | %prep | |
33 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
34 | ||
35 | %build | |
9d3f34bf | 36 | %{__perl} Makefile.PL \ |
1674d2c5 | 37 | INSTALLDIRS=vendor |
f2cf8c7e | 38 | %{__make} \ |
39e24214 | 39 | CC="%{__cc}" \ |
f2cf8c7e | 40 | OPTIMIZE="%{rpmcflags}" |
4bc2f6b2 | 41 | |
a7765e4b | 42 | %{?with_tests:%{__make} test} |
56ee6345 | 43 | |
4bc2f6b2 | 44 | %install |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
f2cf8c7e | 47 | %{__make} install \ |
48 | DESTDIR=$RPM_BUILD_ROOT | |
4bc2f6b2 | 49 | |
50 | %clean | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %files | |
54 | %defattr(644,root,root,755) | |
55 | %doc Changes | |
9d3f34bf | 56 | %{perl_vendorarch}/Crypt/OpenSSL/Random.pm |
57 | %dir %{perl_vendorarch}/auto/Crypt/OpenSSL/Random | |
9d3f34bf | 58 | %attr(755,root,root) %{perl_vendorarch}/auto/Crypt/OpenSSL/Random/*.so |
4bc2f6b2 | 59 | %{_mandir}/man3/* |