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

Contents 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.5 - (show annotations) (download)
Tue Apr 19 21:22:48 2022 UTC (2 years, 7 months ago) by jpp
Branch: MAIN
CVS Tags: perl-Mail-DMARC-1_20200214-1_el7_sme
Changes since 1.4: +26 -10 lines
* Tue Apr 19 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.20200214-1.sme
- upate to 1.20200214 [SME: 10103]
- remove t/04.PurePerl.t tests that are failing inside mock

1 Name: perl-Mail-DMARC
2 Version: 1.20200214
3 Release: 1%{?dist}
4 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 Patch3: Mail-DMARC-1.20200214-handle_undef_domains.patch
11
12 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 BuildRequires: perl(DBD::SQLite) >= 1.31
21 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 BuildRequires: perl(Mail::DKIM)
34 BuildRequires: perl(Module::Build)
35 BuildRequires: perl(Net::DNS::Resolver)
36 BuildRequires: perl(Net::HTTP)
37 BuildRequires: perl(Net::IDN::Encode)
38 BuildRequires: perl(Net::IMAP::Simple)
39 BuildRequires: perl(Net::IP)
40 BuildRequires: perl(Net::Server)
41 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 BuildRequires: perl(Test::File::ShareDir)
49 BuildRequires: perl(Test::Exception)
50 BuildRequires: perl(Test::Output)
51 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 Requires: perl(DBD::SQLite) >= 1.31
59 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 Requires: perl(HTTP::Tiny)
67 Requires: perl(IO::Compress::Gzip)
68 Requires: perl(IO::Compress::Zip)
69 Requires: perl(IO::Uncompress::Gunzip)
70 Requires: perl(IO::Uncompress::Unzip)
71 Requires: perl(IO::File)
72 Requires: perl(IO::Socket::SSL)
73 Requires: perl(JSON)
74 Requires: perl(Net::DNS::Resolver)
75 Requires: perl(Net::HTTP)
76 Requires: perl(Net::IMAP::Simple)
77 Requires: perl(Net::IDN::Encode)
78 Requires: perl(Net::IP)
79 Requires: perl(Net::SMTPS)
80 Requires: perl(Net::SSLeay)
81 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 Requires: perl(Sys::Hostname)
87 Requires: perl(Sys::Syslog)
88 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 %patch3 -p1
101
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 cp share/mail-dmarc.ini $RPM_BUILD_ROOT/%{_sysconfdir}/
113 find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
114
115 %{_fixperms} $RPM_BUILD_ROOT/*
116
117
118 %check
119 # fails in mock
120 sed -i t/04.PurePerl.t -e '/test_fetch_dmarc_record();/d' -e '/test_discover_policy();/d'
121 ./Build test
122
123 %clean
124 rm -rf $RPM_BUILD_ROOT
125
126 %files
127 %defattr(-,root,root,-)
128 %doc Changes.md DEVELOP.md example FAQ.md LICENSE README.md share TODO.md
129 %config(noreplace) %{_sysconfdir}/mail-dmarc.ini
130 %{perl_vendorlib}/*
131 %{_mandir}/man3/*
132 %{_mandir}/man1/*
133 %{_bindir}/dmarc_*
134
135 %changelog
136 * Tue Apr 19 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.20200214-1.sme
137 - upate to 1.20200214 [SME: 10103]
138 - remove t/04.PurePerl.t tests that are failing inside mock
139
140 * Sat May 20 2017 Daniel Berteaud <daniel@firewall-services.com> 1.20141206-2
141 - Handle undef domains (like bounces) [SME: 10318]
142
143 * Thu May 5 2016 Daniel Berteaud <daniel@firewall-services.com> 1.20141206-1
144 - First build using cpanspec
145 - Patch to support building with older Module::Build
146 - Patch to support older Email::MIME (before it merged Email::MIME::Creator)
147 - Patch to let Email::MIME::Creator set the Date automatically as the manual date
148 doesn't work with some locales (at least fr)
149

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