3 %bcond_without tests # do not perform "make test"
7 Summary: Mail::SPF - Mail Sender Authentication
8 Summary(pl.UTF-8): Mail::SPF - uwierzytelnianie wysyłającego pocztę
13 License: GPL or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-v%{version}.tar.gz
16 # Source0-md5: 664e20d79c87fa505080f362e827dace
17 Patch0: tests-fix.patch
18 URL: http://search.cpan.org/dist/Mail-SPF/
19 BuildRequires: perl-Module-Build
20 BuildRequires: perl-devel >= 1:5.8.0
21 BuildRequires: rpm-perlprov >= 4.1-13
23 BuildRequires: perl-Net-DNS >= 0.58
24 BuildRequires: perl-NetAddr-IP
25 BuildRequires: perl-version
26 BuildRequires: perl-Net-DNS-Resolver-Programmable
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 %define _noautoreq_perl Mail::SPF::GlobalMod
34 This is an initial draft object oriented reimplementation of
35 Mail::SPF::Query. It is not yet fully tested, and does not yet contain
36 all of the additional features expected of a practical SPF
39 %description -l pl.UTF-8
40 To jest początkowa zorientowana obiektowo reimplementacja
41 Mail::SPF::Query. Nie jest jeszcze w pełni przetestowana i nie zawiera
42 jeszcze wszystkich dodatkowych możliwości oczekiwanych od praktycznej
46 %setup -q -n %{pdir}-%{pnam}-v%{version}
49 # These tests mess around with resolv.conf and networking
50 # that are not present on builders
51 %{__rm} t/00.04-class-server.t t/00.05-class-macrostring.t
54 %{__perl} Makefile.PL \
59 %{?with_tests:%{__make} test}
62 rm -rf $RPM_BUILD_ROOT
64 %{__make} pure_install \
65 DESTDIR=$RPM_BUILD_ROOT
68 rm -rf $RPM_BUILD_ROOT
71 %defattr(644,root,root,755)
72 %attr(755,root,root) %{_bindir}/spfquery
73 %attr(755,root,root) %{_sbindir}/spfd
74 %{perl_vendorlib}/Mail/SPF.pm
75 %dir %{perl_vendorlib}/Mail/SPF
76 %{perl_vendorlib}/Mail/SPF/*.pm
77 %dir %{perl_vendorlib}/Mail/SPF/Mech
78 %{perl_vendorlib}/Mail/SPF/Mech/*.pm
79 %{perl_vendorlib}/Mail/SPF/Mod
80 %{perl_vendorlib}/Mail/SPF/v1
81 %{perl_vendorlib}/Mail/SPF/v2