--- /dev/null
+#
+# Conditional build:
+# _without_tests - do not perform "make test"
+#
+%include /usr/lib/rpm/macros.perl
+%define pdir Crypt
+%define pnam OpenSSL-Bignum
+Summary: Crypt::OpenSSL::Bignum - OpenSSL's multiprecision integer arithmetic
+Summary(pl): Crypt::OpenSSL::Bignum - arytmetyka liczb ca³kowitych du¿ej precyzji z OpenSSL
+Name: perl-Crypt-OpenSSL-Bignum
+Version: 0.03
+Release: 1
+License: GPL v1+ or Artistic
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: b526c1554b2f3bf7d94bf0c8c474fd2d
+BuildRequires: openssl-devel >= 0.9.7
+BuildRequires: perl-devel >= 5.6.1
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Crypt::OpenSSL::Bignum provides access to OpenSSL multiprecision
+integer arithmetic libraries. Presently, many though not all of the
+arithmetic operations that OpenSSL provides are exposed to Perl. In
+addition, this module can be used to provide access to bignum values
+produced by other OpenSSL modules, such as key parameters from
+Crypt::OpenSSL::RSA.
+
+%description -l pl
+Crypt::OpenSSL::Bignum daje dostêp do bibliotek arytmetyki
+liczb ca³kowitych du¿ej precyzji z OpenSSL. Aktualnie wiele, ale nie
+wszystkie, operacje arytmetyczne udostêpniane przez OpenSSL s±
+dostêpne z Perla. Ponadto ten modu³ mo¿e byæ u¿ywany do udostêpnienia
+du¿ych warto¶ci produkowanych przez inne modu³y OpenSSL, takie jak
+parametry klucza z Crypt::OpenSSL::RSA.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
+%{__make} OPTIMIZE="%{rpmcflags}"
+
+%{!?_without_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorarch}/Crypt/OpenSSL/Bignum.pm
+%{perl_vendorarch}/Crypt/OpenSSL/Bignum
+%dir %{perl_vendorarch}/auto/Crypt/OpenSSL/Bignum
+%{perl_vendorarch}/auto/Crypt/OpenSSL/Bignum/Bignum.bs
+%attr(755,root,root) %{perl_vendorarch}/auto/Crypt/OpenSSL/Bignum/Bignum.so
+%{_mandir}/man3/*