]> git.pld-linux.org Git - packages/perl-Mail-SPF.git/blame - perl-Mail-SPF.spec
- fix noauto req
[packages/perl-Mail-SPF.git] / perl-Mail-SPF.spec
CommitLineData
4a0063c2
MP
1#
2# Conditional build:
c8c379e5 3%bcond_without tests # do not perform "make test"
4a0063c2 4#
4a0063c2
MP
5%define pdir Mail
6%define pnam SPF
c8c379e5 7Summary: Mail::SPF - Mail Sender Authentication
78b9e50e 8Summary(pl.UTF-8): Mail::SPF - uwierzytelnianie wysyłającego pocztę
4a0063c2 9Name: perl-Mail-SPF
ec7e92a2 10Version: 2.9.0
ed47aff4 11Release: 4
4a0063c2
MP
12# "same as perl"
13License: GPL or Artistic
14Group: Development/Languages/Perl
ec7e92a2
MK
15Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-v%{version}.tar.gz
16# Source0-md5: 664e20d79c87fa505080f362e827dace
17Patch0: tests-fix.patch
c8c379e5 18URL: http://search.cpan.org/dist/Mail-SPF/
fa440f1d 19BuildRequires: perl-Module-Build
4a0063c2
MP
20BuildRequires: perl-devel >= 1:5.8.0
21BuildRequires: rpm-perlprov >= 4.1-13
de42022e
AG
22%if %{with tests}
23BuildRequires: perl-Net-DNS >= 0.58
24BuildRequires: perl-NetAddr-IP
25BuildRequires: perl-version
26BuildRequires: perl-Net-DNS-Resolver-Programmable
27%endif
4a0063c2
MP
28BuildArch: noarch
29BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
ed47aff4 31%define _noautoreq_perl Mail::SPF::GlobalMod
653876a6 32
4a0063c2 33%description
c8c379e5
JB
34This is an initial draft object oriented reimplementation of
35Mail::SPF::Query. It is not yet fully tested, and does not yet contain
36all of the additional features expected of a practical SPF
37implementation.
38
ad3b03c3
JR
39%description -l pl.UTF-8
40To jest początkowa zorientowana obiektowo reimplementacja
41Mail::SPF::Query. Nie jest jeszcze w pełni przetestowana i nie zawiera
42jeszcze wszystkich dodatkowych możliwości oczekiwanych od praktycznej
c8c379e5 43implementacji SPF.
4a0063c2
MP
44
45%prep
ec7e92a2
MK
46%setup -q -n %{pdir}-%{pnam}-v%{version}
47%patch0 -p1
4a0063c2 48
807a2773
JR
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
52
4a0063c2
MP
53%build
54%{__perl} Makefile.PL \
55 INSTALLDIRS=vendor
56
57%{__make}
58
59%{?with_tests:%{__make} test}
60
61%install
62rm -rf $RPM_BUILD_ROOT
63
64%{__make} pure_install \
65 DESTDIR=$RPM_BUILD_ROOT
4a0063c2
MP
66
67%clean
68rm -rf $RPM_BUILD_ROOT
69
70%files
71%defattr(644,root,root,755)
de42022e
AG
72%attr(755,root,root) %{_bindir}/spfquery
73%attr(755,root,root) %{_sbindir}/spfd
4a0063c2
MP
74%{perl_vendorlib}/Mail/SPF.pm
75%dir %{perl_vendorlib}/Mail/SPF
4a0063c2 76%{perl_vendorlib}/Mail/SPF/*.pm
c8c379e5 77%dir %{perl_vendorlib}/Mail/SPF/Mech
4a0063c2 78%{perl_vendorlib}/Mail/SPF/Mech/*.pm
de42022e
AG
79%{perl_vendorlib}/Mail/SPF/Mod
80%{perl_vendorlib}/Mail/SPF/v1
81%{perl_vendorlib}/Mail/SPF/v2
82%{_mandir}/man1/*
4a0063c2 83%{_mandir}/man3/*
This page took 0.072707 seconds and 4 git commands to generate.