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: perl(ExtUtils::PkgConfig)
21 BuildRequires: rpm-perlprov >= 4.1-13
23 BuildRequires: openssl
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 This module provides a class for handling S/MIME messages. It can
29 sign, verify, encrypt and decrypt messages. It requires libcrypto
30 (http://www.openssl.org).
32 %description -l pl.UTF-8
33 Ten moduł dostarcza klasę do obsługi wiadomości S/MIME. Potrafi
34 podpisywać, weryfikować podpisy, szyfrować i odszyfrowywać takie
35 wiadomości. Wymaga biblioteki libcrypto z pakietu OpenSSL.
38 %setup -q -n %{pdir}-%{pnam}-%{version}
41 %{__perl} Makefile.PL \
45 OPTIMIZE="%{rpmcflags}"
47 %{?with_tests:%{__make} test}
50 rm -rf $RPM_BUILD_ROOT
53 DESTDIR=$RPM_BUILD_ROOT
55 %{__mv} $RPM_BUILD_ROOT%{_mandir}/man3/SMIME.3pm $RPM_BUILD_ROOT%{_mandir}/man3/Crypt::SMIME.3pm
58 rm -rf $RPM_BUILD_ROOT
61 %defattr(644,root,root,755)
63 %{perl_vendorarch}/Crypt/SMIME.pm
64 %dir %{perl_vendorarch}/auto/Crypt/SMIME
65 %attr(755,root,root) %{perl_vendorarch}/auto/Crypt/SMIME/SMIME.so
66 %{_mandir}/man3/Crypt::SMIME.3*