3 %bcond_without tests # do not perform "make test"
7 Summary: Crypt::SMIME - S/MIME message signing, verification, encryption and decryption
8 Summary(pl.UTF-8): Crypt::SMIME - podpisywanie, weryfikacja, szyfrowanie i odszyfrowywanie wiadomości S/MIME
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/Crypt/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5: 7afe3f4dedd6f569efb1effcd432eacc
16 URL: http://search.cpan.org/dist/Crypt-SMIME/
17 BuildRequires: openssl-devel >= 0.9.9
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: perl(ExtUtils::CChecker)
20 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRequires: openssl
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 This module provides a class for handling S/MIME messages. It can
28 sign, verify, encrypt and decrypt messages. It requires libcrypto
29 (http://www.openssl.org).
31 %description -l pl.UTF-8
32 Ten moduł dostarcza klasę do obsługi wiadomości S/MIME. Potrafi
33 podpisywać, weryfikować podpisy, szyfrować i odszyfrowywać takie
34 wiadomości. Wymaga biblioteki libcrypto z pakietu OpenSSL.
37 %setup -q -n %{pdir}-%{pnam}-%{version}
40 %{__perl} Makefile.PL \
44 OPTIMIZE="%{rpmcflags}"
46 %{?with_tests:%{__make} test}
49 rm -rf $RPM_BUILD_ROOT
52 DESTDIR=$RPM_BUILD_ROOT
54 %{__mv} $RPM_BUILD_ROOT%{_mandir}/man3/SMIME.3pm $RPM_BUILD_ROOT%{_mandir}/man3/Crypt::SMIME.3pm
57 rm -rf $RPM_BUILD_ROOT
60 %defattr(644,root,root,755)
62 %{perl_vendorarch}/Crypt/SMIME.pm
63 %dir %{perl_vendorarch}/auto/Crypt/SMIME
64 %attr(755,root,root) %{perl_vendorarch}/auto/Crypt/SMIME/SMIME.so
65 %{_mandir}/man3/Crypt::SMIME.3*