3 %bcond_without tests # Do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 %define pnam OpenSSL-Random
8 Summary: Crypt::OpenSSL::Random - accessing the OpenSSL pseudo-random number generator
9 Summary(pl.UTF-8): Crypt::OpenSSL::Random - dostęp do generatora liczb pseudolosowych z OpenSSL
10 Name: perl-Crypt-OpenSSL-Random
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/Crypt/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: c56ac5dbdd46122eb9b8da59613b7b0a
18 URL: http://search.cpan.org/dist/Crypt-OpenSSL-Random/
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)
25 Crypt::OpenSSL::Random provides the ability to seed and query the
26 OpenSSL library's pseudo-random number generator.
28 %description -l pl.UTF-8
29 Moduł Crypt::OpenSSL::Random daje możliwość zasilania oraz odpytywanie
30 generatora liczb pseudolosowych z biblioteki OpenSSL.
33 %setup -q -n %{pdir}-%{pnam}-%{version}
36 %{__perl} Makefile.PL \
40 OPTIMIZE="%{rpmcflags}"
42 %{?with_tests:%{__make} test}
45 rm -rf $RPM_BUILD_ROOT
48 DESTDIR=$RPM_BUILD_ROOT
51 rm -rf $RPM_BUILD_ROOT
54 %defattr(644,root,root,755)
56 %{perl_vendorarch}/Crypt/OpenSSL/Random.pm
57 %dir %{perl_vendorarch}/auto/Crypt/OpenSSL/Random
58 %{perl_vendorarch}/auto/Crypt/OpenSSL/Random/autosplit.ix
59 %attr(755,root,root) %{perl_vendorarch}/auto/Crypt/OpenSSL/Random/*.so