3 %bcond_without tests # do not perform "make test"
6 %define pnam DomainKeys
7 Summary: Mail::Alias - implementation of Yahoo's mail signature protocol
8 Summary(pl.UTF-8): Mail::Alias - implementacja protokołu sygnatur pocztowych Yahoo
9 Name: perl-Mail-DomainKeys
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Mail/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: a4565f21ada263cf34c55f50d7eb9944
17 Patch0: %{name}-notconnected.patch
18 URL: http://search.cpan.org/dist/Mail-DomainKeys/
19 BuildRequires: perl-Crypt-OpenSSL-RSA
20 BuildRequires: perl-MIME-Base64
21 #BuildRequires: perl-Mail-Address
22 BuildRequires: perl-Net-DNS >= 0.34
23 #BuildRequires: perl-Test-More
24 BuildRequires: perl-devel >= 1:5.8.0
25 BuildRequires: rpm-perlprov >= 4.1-13
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 Mail::DomainKeys is a perl implementation of Yahoo's mail signature
33 This library allows one to sign and verify signatures as per per draft
34 03 of the DomainKeys specification:
36 http://www.ietf.org/internet-drafts/draft-delany-domainkeys-base-03.txt
38 %description -l pl.UTF-8
39 Mail::DomainKeys jest implementacją protokołu sygnatur pocztowych Yahoo.
41 Ta biblioteka umożliwia sygnowanie i weryfikacje sygnatur zgodnie z
42 draftem 03 specyfikacji DomainKeys:
44 http://www.ietf.org/internet-drafts/draft-delany-domainkeys-base-03.txt
47 %setup -q -n %{pdir}-%{pnam}-%{version}
51 %{__perl} Makefile.PL \
55 %{?with_tests:%{__make} test}
58 rm -rf $RPM_BUILD_ROOT
61 DESTDIR=$RPM_BUILD_ROOT
63 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
64 cp t/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
67 rm -rf $RPM_BUILD_ROOT
70 %defattr(644,root,root,755)
72 %dir %{perl_vendorlib}/Mail/DomainKeys
73 %dir %{perl_vendorlib}/Mail/DomainKeys/Key
74 %{perl_vendorlib}/Mail/DomainKeys.pm
75 %{perl_vendorlib}/Mail/DomainKeys/*.pm
76 %{perl_vendorlib}/Mail/DomainKeys/Key/*.pm
77 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}