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

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

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


Revision 1.3 - (hide annotations) (download)
Fri May 6 22:09:56 2016 UTC (8 years, 6 months ago) by vip-ire
Branch: MAIN
CVS Tags: perl-Mail-DMARC-1_20141206-1_el6_sme
Changes since 1.2: +2 -0 lines
Add missing perl(Email::Date::Format) dep

1 vip-ire 1.1 Name: perl-Mail-DMARC
2     Version: 1.20141206
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     Patch0: Mail-DMARC-1.20141206-build_fix.patch
10     Patch1: Mail-DMARC-1.20141206-use_email_mime_creator.patch
11     Patch2: Mail-DMARC-1.20141206-dont_set_date_manually.patch
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 vip-ire 1.3 BuildRequires: perl(Email::Date::Format)
26 vip-ire 1.1 BuildRequires: perl(Encode)
27     BuildRequires: perl(File::ShareDir)
28     BuildRequires: perl(Getopt::Long)
29     BuildRequires: perl(IO::Compress::Gzip)
30     BuildRequires: perl(IO::Compress::Zip)
31     BuildRequires: perl(IO::Uncompress::Gunzip)
32     BuildRequires: perl(IO::Uncompress::Unzip)
33     BuildRequires: perl(JSON)
34     BuildRequires: perl(Module::Build)
35     BuildRequires: perl(Net::DNS::Resolver)
36     BuildRequires: perl(Net::HTTP)
37     BuildRequires: perl(Net::IMAP::Simple)
38     BuildRequires: perl(Net::IP)
39     BuildRequires: perl(Net::SMTPS)
40     BuildRequires: perl(parent)
41     BuildRequires: perl(Pod::Usage)
42     BuildRequires: perl(Regexp::Common) >= 2013031301
43     BuildRequires: perl(Socket)
44     BuildRequires: perl(Socket6) >= 0.23
45     BuildRequires: perl(Test::More)
46     BuildRequires: perl(URI)
47     BuildRequires: perl(XML::LibXML)
48     Requires: perl(Carp)
49     Requires: perl(CGI)
50     Requires: perl(Config::Tiny)
51     Requires: perl(CPAN)
52     Requires: perl(Data::Dumper)
53     #Requires: perl(DBD::SQLite) >= 1.31
54     Requires: perl(DBIx::Simple)
55     Requires: perl(Email::MIME)
56     Requires: perl(Email::MIME::Creator)
57     Requires: perl(Email::Simple)
58 vip-ire 1.3 Requires: perl(Email::Date::Format)
59 vip-ire 1.1 Requires: perl(Encode)
60     Requires: perl(File::ShareDir)
61     Requires: perl(Getopt::Long)
62     Requires: perl(IO::Compress::Gzip)
63     Requires: perl(IO::Compress::Zip)
64     Requires: perl(IO::Uncompress::Gunzip)
65     Requires: perl(IO::Uncompress::Unzip)
66     Requires: perl(JSON)
67     Requires: perl(Net::DNS::Resolver)
68     Requires: perl(Net::HTTP)
69     Requires: perl(Net::IMAP::Simple)
70     Requires: perl(Net::IP)
71     Requires: perl(Net::SMTPS)
72     Requires: perl(parent)
73     Requires: perl(Pod::Usage)
74     Requires: perl(Regexp::Common) >= 2013031301
75     Requires: perl(Socket)
76     Requires: perl(Socket6) >= 0.23
77     Requires: perl(URI)
78     Requires: perl(XML::LibXML)
79     Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
80    
81     %description
82     This module is a suite of tools for implementing DMARC. It adheres very
83     tightly to the 2013 DMARC draft, intending to implement every MUST and
84     every SHOULD.
85    
86     %prep
87     %setup -q -n Mail-DMARC-%{version}
88     %patch0 -p1
89     %patch1 -p1
90     %patch2 -p1
91    
92     %build
93     %{__perl} Build.PL installdirs=vendor
94     ./Build
95    
96     %install
97     rm -rf $RPM_BUILD_ROOT
98    
99     ./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
100     %{__mkdir_p} $RPM_BUILD_ROOT/%{_sysconfdir}/
101     %{__mkdir_p} $RPM_BUILD_ROOT/%{perl_vendorlib}/auto/share/dist/Mail-DMARC
102     cp mail-dmarc.ini $RPM_BUILD_ROOT/%{_sysconfdir}/
103     cp share/public_suffix_list $RPM_BUILD_ROOT/%{perl_vendorlib}/auto/share/dist/Mail-DMARC/
104     cp -r share/html $RPM_BUILD_ROOT/%{perl_vendorlib}/auto/share/dist/Mail-DMARC/
105     find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
106    
107     %{_fixperms} $RPM_BUILD_ROOT/*
108    
109    
110     %check
111     ./Build test
112    
113     %clean
114     rm -rf $RPM_BUILD_ROOT
115    
116     %files
117     %defattr(-,root,root,-)
118     %doc Changes DEVELOP.md dist.ini example FAQ.md LICENSE mail-dmarc.ini README README.mkdn share TODO.md
119     %config(noreplace) %{_sysconfdir}/mail-dmarc.ini
120     %{perl_vendorlib}/*
121     %{_mandir}/man3/*
122     %{_mandir}/man1/*
123     %{_bindir}/dmarc_*
124    
125     %changelog
126 vip-ire 1.2 * Thu May 5 2016 Daniel Berteaud <daniel@firewall-services.com> 1.20141206-1
127 vip-ire 1.1 - First build using cpanspec
128     - Patch to support building with older Module::Build
129     - Patch to support older Email::MIME (before it merged Email::MIME::Creator)
130     - Patch to let Email::MIME::Creator set the Date automatically as the manual date
131     doesn't work with some locales (at least fr)
132    

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