/[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.2 - (hide annotations) (download)
Fri May 6 21:51:40 2016 UTC (8 years, 6 months ago) by vip-ire
Branch: MAIN
Changes since 1.1: +1 -1 lines
Fix date in changelog

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

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