3 %bcond_without tests # do not perform "make test"
6 %define pnam AuthenticationResults
7 %include /usr/lib/rpm/macros.perl
8 Summary: Mail::AuthenticationResults - Object Oriented Authentication-Results Headers
9 Name: perl-Mail-AuthenticationResults
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: d4ca126d3af0d1b664249f93bdd021f0
17 URL: https://metacpan.org/release/Mail-AuthenticationResults/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl-Test-Exception
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 Object Oriented Authentication-Results email headers.
29 This parser copes with most styles of Authentication-Results header
30 seen in the wild, but is not yet fully RFC7601 compliant
32 Differences from RFC7601
34 key/value pairs are parsed when present in the authserv-id section,
35 this is against RFC but has been seen in headers added by Yahoo!.
37 Comments added between key/value pairs will be added after them in the
38 data structures and when stringified.
41 %setup -q -n %{pdir}-%{pnam}-%{version}
44 %{__perl} Makefile.PL \
48 %{?with_tests:%{__make} test}
51 rm -rf $RPM_BUILD_ROOT
53 %{__make} pure_install \
54 DESTDIR=$RPM_BUILD_ROOT
57 rm -rf $RPM_BUILD_ROOT
60 %defattr(644,root,root,755)
62 %{perl_vendorlib}/Mail/*.pm
63 %{perl_vendorlib}/Mail/AuthenticationResults