]> git.pld-linux.org Git - packages/perl-Mail-AuthenticationResults.git/blob - perl-Mail-AuthenticationResults.spec
- updated to 2.20231031
[packages/perl-Mail-AuthenticationResults.git] / perl-Mail-AuthenticationResults.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define         pdir    Mail
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
10 Version:        1.20180923
11 Release:        1
12 # same as perl
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
20 %if %{with tests}
21 BuildRequires:  perl-Test-Exception
22 %endif
23 BuildArch:      noarch
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 Object Oriented Authentication-Results email headers.
28
29 This parser copes with most styles of Authentication-Results header
30 seen in the wild, but is not yet fully RFC7601 compliant
31
32 Differences from RFC7601
33
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!.
36
37 Comments added between key/value pairs will be added after them in the
38 data structures and when stringified.
39
40 %prep
41 %setup -q -n %{pdir}-%{pnam}-%{version}
42
43 %build
44 %{__perl} Makefile.PL \
45         INSTALLDIRS=vendor
46 %{__make}
47
48 %{?with_tests:%{__make} test}
49
50 %install
51 rm -rf $RPM_BUILD_ROOT
52
53 %{__make} pure_install \
54         DESTDIR=$RPM_BUILD_ROOT
55
56 %clean
57 rm -rf $RPM_BUILD_ROOT
58
59 %files
60 %defattr(644,root,root,755)
61 %doc Changes README
62 %{perl_vendorlib}/Mail/*.pm
63 %{perl_vendorlib}/Mail/AuthenticationResults
64 %{_mandir}/man3/*
This page took 0.17152 seconds and 3 git commands to generate.