]> git.pld-linux.org Git - SPECS.git/blob - perl-Mail-Abuse.spec
SPECS updated Sat 31 Jul 20:26:02 CEST 2021
[SPECS.git] / perl-Mail-Abuse.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define pdir    Mail
6 %define pnam    Abuse
7 Summary:        Mail::Abuse - Helps parse and respond to miscellaneous abuse complaints
8 Summary(pl.UTF-8):      Mail::Abuse - pomoc przy analizie i odpowiedzi na różne skargi o nadużyciach
9 Name:           perl-Mail-Abuse
10 Version:        1.026
11 Release:        1
12 License:        Artistic
13 Group:          Development/Languages/Perl
14 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5:  f7f8e8bbcae863f8a0c5bf0ae3ab163f
16 URL:            http://search.cpan.org/dist/Mail-Abuse/
17 BuildRequires:  perl-devel >= 1:5.8.0
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 %if %{with tests}
20 BuildRequires:  perl(Date::Parse)
21 BuildRequires:  perl(File::Find)
22 BuildRequires:  perl(File::Path)
23 BuildRequires:  perl(File::Spec)
24 BuildRequires:  perl(IO::File)
25 BuildRequires:  perl(MIME::Entity)
26 BuildRequires:  perl(MIME::Parser)
27 BuildRequires:  perl(Mail::Mailer)
28 BuildRequires:  perl(Net::POP3) >= 2.23
29 BuildRequires:  perl(PerlIO::gzip)
30 BuildRequires:  perl(Test::More)
31 BuildRequires:  perl-Date-Manip
32 BuildRequires:  perl-Digest-MD5
33 BuildRequires:  perl-HTML-Parser
34 BuildRequires:  perl-IO-Zlib
35 BuildRequires:  perl-MIME-tools
36 BuildRequires:  perl-MailTools
37 BuildRequires:  perl-NetAddr-IP >= 3
38 BuildRequires:  perl-Params-Validate
39 BuildRequires:  perl-Storable
40 BuildRequires:  perl-Tie-NetAddr-IP >= 1.51
41 BuildRequires:  perl-TimeDate
42 BuildRequires:  perl-WWW-Google-Groups
43 BuildRequires:  perl-WWW-Mechanize
44 %endif
45 BuildArch:      noarch
46 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47
48 %description
49 This module and the accompaining software can be used to automatically
50 parse and respond to various formats of abuse complaints. This
51 software is geared towards abuse desk administrators who need
52 sophisticated tools to deal with the complains.
53
54 %description -l pl.UTF-8
55 Ten moduł i towarzyszące oprogramowanie może być używane do
56 automatycznej analizy i odpowiadania na różne formaty skarg o
57 nadużyciach. To oprogramowanie jest ukierunkowane na administratorów
58 obsługujących zgłoszenia o nadużyciach, potrzebujących wyszukanych
59 narzędzi do obsługi skarg.
60
61 %prep
62 %setup -q -n %{pdir}-%{pnam}-%{version}
63
64 %build
65 %{__perl} Makefile.PL \
66         INSTALLSCRIPT=%{_bindir} \
67         INSTALLDIRS=vendor
68 %{__make}
69
70 # according to author this is ok even it fails
71 # it fails so it's better to remove
72 %{__rm} t/time.t
73
74 %{?with_tests:%{__make} test}
75
76 %install
77 rm -rf $RPM_BUILD_ROOT
78
79 %{__make} install \
80         DESTDIR=$RPM_BUILD_ROOT
81
82 %clean
83 rm -rf $RPM_BUILD_ROOT
84
85 %files
86 %defattr(644,root,root,755)
87 %doc README
88 %attr(755,root,root) %{_bindir}/*
89 %{perl_vendorlib}/Mail/*.pm
90 %{perl_vendorlib}/Mail/Abuse
91 %{perl_vendorlib}/Template/Plugin/Abuse.pm
92 %{_mandir}/man?/*
This page took 0.163662 seconds and 3 git commands to generate.