1 %include /usr/lib/rpm/macros.perl
3 %define pnam OpenSSL-Random
4 Summary: Crypt::OpenSSL::RSA - RSA encoding and decoding
5 Name: perl-Crypt-OpenSSL-Random
9 Group: Development/Languages/Perl
10 Source0: ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
11 BuildRequires: openssl-devel
12 BuildRequires: perl-devel >= 5.6.1
13 BuildRequires: rpm-perlprov >= 3.0.3-16
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 Crypt::OpenSSL::Random provides the ability to seed and query the OpenSSL
18 library's pseudo-random number generator.
21 %setup -q -n %{pdir}-%{pnam}-%{version}
25 %{__make} OPTIMIZE="%{rpmcflags}"
28 rm -rf $RPM_BUILD_ROOT
30 %{__make} install DESTDIR=$RPM_BUILD_ROOT
33 rm -rf $RPM_BUILD_ROOT
36 %defattr(644,root,root,755)
38 %{perl_sitearch}/Crypt/OpenSSL/Random.pm
39 %dir %{perl_sitearch}/auto/Crypt/OpenSSL/Random
40 %{perl_sitearch}/auto/Crypt/OpenSSL/Random/*.bs
41 %{perl_sitearch}/auto/Crypt/OpenSSL/Random/autosplit.ix
42 %attr(755,root,root) %{perl_sitearch}/auto/Crypt/OpenSSL/Random/*.so