357bca1
Name:           perl-Mail-DKIM
357bca1
Version:        0.32
0f44ee4
Release:        3%{?dist}
357bca1
Summary:        Sign and verify Internet mail with DKIM/DomainKey signatures
357bca1
357bca1
Group:          Development/Libraries
357bca1
License:        GPL+ or Artistic
357bca1
URL:            http://dkimproxy.sourceforge.net/
357bca1
Source0:        http://search.cpan.org/CPAN/authors/id/J/JA/JASLONG/Mail-DKIM-%{version}.tar.gz
357bca1
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
357bca1
357bca1
BuildArch:      noarch
357bca1
BuildRequires:  perl(ExtUtils::MakeMaker)
357bca1
BuildRequires:  perl(Test::Simple) perl(Net::DNS) perl(Mail::Address)
357bca1
BuildRequires:  perl(Crypt::OpenSSL::RSA) perl(Digest::SHA)
357bca1
Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
357bca1
357bca1
%description
357bca1
This module implements the various components of the DKIM and DomainKeys
357bca1
message-signing and verifying standards for Internet mail. It currently
357bca1
tries to implement RFC4871 (for DKIM) and RFC4870 (DomainKeys).
357bca1
357bca1
It is required if you wish to enable DKIM checking in SpamAssassin via the
357bca1
Mail::SpamAssassin::Plugin::DKIM plugin.
357bca1
357bca1
%prep
357bca1
%setup -q -n Mail-DKIM-%{version}
357bca1
# Make the example scripts non-executable
357bca1
%{__chmod} -x scripts/*.pl
357bca1
357bca1
%build
357bca1
%{__perl} Makefile.PL INSTALLDIRS=vendor
357bca1
make %{?_smp_mflags}
357bca1
357bca1
357bca1
%install
357bca1
rm -rf $RPM_BUILD_ROOT
357bca1
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
357bca1
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
357bca1
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
357bca1
chmod -R u+w $RPM_BUILD_ROOT/*
357bca1
357bca1
357bca1
%check
0f44ee4
# Conditionally disable tests that require DNS lookups
0f44ee4
%{?!_with_network_tests: rm t/policy.t t/verifier.t }
357bca1
make test
357bca1
357bca1
357bca1
%clean
357bca1
rm -rf $RPM_BUILD_ROOT
357bca1
357bca1
357bca1
%files
357bca1
%defattr(-,root,root,-)
357bca1
%doc ChangeLog Changes HACKING.DKIM README TODO scripts/*.pl
357bca1
%{perl_vendorlib}/*
357bca1
%{_mandir}/man3/*.3*
357bca1
357bca1
357bca1
%changelog
0f44ee4
* Mon Jun 23 2008 Kyle VanderBeek <kylev@kylev.com> - 0.32-3
0f44ee4
- Disable some tests that require network access and fail inside koji
0f44ee4
357bca1
* Wed Jun 18 2008 Kyle VanderBeek <kylev@kylev.com> - 0.32-2
357bca1
- Make example scripts non-executable to avoid dep detection bloat.
357bca1
357bca1
* Tue Jun 17 2008 Kyle VanderBeek <kylev@kylev.com> - 0.32-1
357bca1
- Initial version.
357bca1