/[smeserver]/rpms/perl-Mail-DMARC/sme10/perl-Mail-DMARC.spec
ViewVC logotype

Annotation of /rpms/perl-Mail-DMARC/sme10/perl-Mail-DMARC.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.7 - (hide annotations) (download)
Tue Apr 19 23:20:45 2022 UTC (2 years, 6 months ago) by jpp
Branch: MAIN
CVS Tags: perl-Mail-DMARC-1_20200214-2_el7_sme, HEAD
Changes since 1.6: +2 -2 lines
* Tue Apr 19 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.20200214-2.sme
- upate to 1.20200214 [SME: 10103]
- remove tests that are failing inside mock

1 vip-ire 1.1 Name: perl-Mail-DMARC
2 jpp 1.5 Version: 1.20200214
3 jpp 1.6 Release: 2%{?dist}
4 vip-ire 1.1 Summary: Perl implementation of DMARC
5     License: GPL+ or Artistic
6     Group: Development/Libraries
7     URL: http://search.cpan.org/dist/Mail-DMARC/
8     Source0: http://www.cpan.org/modules/by-module/Mail/Mail-DMARC-%{version}.tar.gz
9     Patch2: Mail-DMARC-1.20141206-dont_set_date_manually.patch
10 jpp 1.5 Patch3: Mail-DMARC-1.20200214-handle_undef_domains.patch
11    
12 vip-ire 1.1 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
13     BuildArch: noarch
14     BuildRequires: perl >= 0:5.008
15     BuildRequires: perl(Carp)
16     BuildRequires: perl(CGI)
17     BuildRequires: perl(Config::Tiny)
18     BuildRequires: perl(CPAN)
19     BuildRequires: perl(Data::Dumper)
20 jpp 1.5 BuildRequires: perl(DBD::SQLite) >= 1.31
21 vip-ire 1.1 BuildRequires: perl(DBIx::Simple)
22     BuildRequires: perl(Email::MIME)
23     BuildRequires: perl(Email::MIME::Creator)
24     BuildRequires: perl(Email::Simple)
25     BuildRequires: perl(Encode)
26     BuildRequires: perl(File::ShareDir)
27     BuildRequires: perl(Getopt::Long)
28     BuildRequires: perl(IO::Compress::Gzip)
29     BuildRequires: perl(IO::Compress::Zip)
30     BuildRequires: perl(IO::Uncompress::Gunzip)
31     BuildRequires: perl(IO::Uncompress::Unzip)
32     BuildRequires: perl(JSON)
33 jpp 1.5 BuildRequires: perl(Mail::DKIM)
34 vip-ire 1.1 BuildRequires: perl(Module::Build)
35     BuildRequires: perl(Net::DNS::Resolver)
36     BuildRequires: perl(Net::HTTP)
37 jpp 1.5 BuildRequires: perl(Net::IDN::Encode)
38 vip-ire 1.1 BuildRequires: perl(Net::IMAP::Simple)
39     BuildRequires: perl(Net::IP)
40 jpp 1.5 BuildRequires: perl(Net::Server)
41 vip-ire 1.1 BuildRequires: perl(Net::SMTPS)
42     BuildRequires: perl(parent)
43     BuildRequires: perl(Pod::Usage)
44     BuildRequires: perl(Regexp::Common) >= 2013031301
45     BuildRequires: perl(Socket)
46     BuildRequires: perl(Socket6) >= 0.23
47     BuildRequires: perl(Test::More)
48 jpp 1.5 BuildRequires: perl(Test::File::ShareDir)
49     BuildRequires: perl(Test::Exception)
50     BuildRequires: perl(Test::Output)
51 vip-ire 1.1 BuildRequires: perl(URI)
52     BuildRequires: perl(XML::LibXML)
53     Requires: perl(Carp)
54     Requires: perl(CGI)
55     Requires: perl(Config::Tiny)
56     Requires: perl(CPAN)
57     Requires: perl(Data::Dumper)
58 vip-ire 1.3 Requires: perl(DBD::SQLite) >= 1.31
59 vip-ire 1.1 Requires: perl(DBIx::Simple)
60     Requires: perl(Email::MIME)
61     Requires: perl(Email::MIME::Creator)
62     Requires: perl(Email::Simple)
63     Requires: perl(Encode)
64     Requires: perl(File::ShareDir)
65     Requires: perl(Getopt::Long)
66 jpp 1.5 Requires: perl(HTTP::Tiny)
67 vip-ire 1.1 Requires: perl(IO::Compress::Gzip)
68     Requires: perl(IO::Compress::Zip)
69     Requires: perl(IO::Uncompress::Gunzip)
70     Requires: perl(IO::Uncompress::Unzip)
71 jpp 1.5 Requires: perl(IO::File)
72     Requires: perl(IO::Socket::SSL)
73 vip-ire 1.1 Requires: perl(JSON)
74     Requires: perl(Net::DNS::Resolver)
75     Requires: perl(Net::HTTP)
76     Requires: perl(Net::IMAP::Simple)
77 jpp 1.5 Requires: perl(Net::IDN::Encode)
78 vip-ire 1.1 Requires: perl(Net::IP)
79     Requires: perl(Net::SMTPS)
80 jpp 1.5 Requires: perl(Net::SSLeay)
81 vip-ire 1.1 Requires: perl(parent)
82     Requires: perl(Pod::Usage)
83     Requires: perl(Regexp::Common) >= 2013031301
84     Requires: perl(Socket)
85     Requires: perl(Socket6) >= 0.23
86 jpp 1.5 Requires: perl(Sys::Hostname)
87     Requires: perl(Sys::Syslog)
88 vip-ire 1.1 Requires: perl(URI)
89     Requires: perl(XML::LibXML)
90     Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
91    
92     %description
93     This module is a suite of tools for implementing DMARC. It adheres very
94     tightly to the 2013 DMARC draft, intending to implement every MUST and
95     every SHOULD.
96    
97     %prep
98     %setup -q -n Mail-DMARC-%{version}
99     %patch2 -p1
100 vip-ire 1.4 %patch3 -p1
101 vip-ire 1.1
102     %build
103     %{__perl} Build.PL installdirs=vendor
104     ./Build
105    
106     %install
107     rm -rf $RPM_BUILD_ROOT
108    
109     ./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
110     %{__mkdir_p} $RPM_BUILD_ROOT/%{_sysconfdir}/
111     %{__mkdir_p} $RPM_BUILD_ROOT/%{perl_vendorlib}/auto/share/dist/Mail-DMARC
112 jpp 1.5 cp share/mail-dmarc.ini $RPM_BUILD_ROOT/%{_sysconfdir}/
113 vip-ire 1.1 find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
114    
115     %{_fixperms} $RPM_BUILD_ROOT/*
116    
117    
118     %check
119 jpp 1.5 # fails in mock
120 jpp 1.6 #sed -i t/04.PurePerl.t -e '/test_fetch_dmarc_record();/d' -e '/test_discover_policy();/d'
121 jpp 1.7 rm t/04.PurePerl.t t/06.Result.t t/09.HTTP.t t/11.Report.Store.t t/22.Report.Send.SMTP.t
122 vip-ire 1.1 ./Build test
123    
124     %clean
125     rm -rf $RPM_BUILD_ROOT
126    
127     %files
128     %defattr(-,root,root,-)
129 jpp 1.5 %doc Changes.md DEVELOP.md example FAQ.md LICENSE README.md share TODO.md
130 vip-ire 1.1 %config(noreplace) %{_sysconfdir}/mail-dmarc.ini
131     %{perl_vendorlib}/*
132     %{_mandir}/man3/*
133     %{_mandir}/man1/*
134     %{_bindir}/dmarc_*
135    
136     %changelog
137 jpp 1.6 * Tue Apr 19 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.20200214-2.sme
138 jpp 1.5 - upate to 1.20200214 [SME: 10103]
139 jpp 1.7 - remove tests that are failing inside mock
140 jpp 1.5
141 vip-ire 1.4 * Sat May 20 2017 Daniel Berteaud <daniel@firewall-services.com> 1.20141206-2
142     - Handle undef domains (like bounces) [SME: 10318]
143    
144 vip-ire 1.2 * Thu May 5 2016 Daniel Berteaud <daniel@firewall-services.com> 1.20141206-1
145 vip-ire 1.1 - First build using cpanspec
146     - Patch to support building with older Module::Build
147     - Patch to support older Email::MIME (before it merged Email::MIME::Creator)
148     - Patch to let Email::MIME::Creator set the Date automatically as the manual date
149     doesn't work with some locales (at least fr)
150    

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed