]> git.pld-linux.org Git - packages/perl-Mail-Audit.git/blob - perl-Mail-Audit.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Mail-Audit.git] / perl-Mail-Audit.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %define         pdir    Mail
6 %define         pnam    Audit
7 Summary:        Mail::Audit - alternative for procmail
8 Summary(pl.UTF-8):      Mail::Audit - alternatywa dla procmaila
9 Name:           perl-Mail-Audit
10 Version:        2.227
11 Release:        1
12 # same as perl
13 License:        GPL v1+ or Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/authors/id/R/RJ/RJBS/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  4780a6fb118887b9bebb905cf63f4c25
17 URL:            http://search.cpan.org/dist/Mail-Audit/
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 %if %{with tests}
21 BuildRequires:  perl(File::HomeDir) >= 0.61
22 BuildRequires:  perl(File::Tempdir)
23 BuildRequires:  perl-MIME-tools
24 BuildRequires:  perl-MailTools
25 %endif
26 BuildArch:      noarch
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
30 Mail::Audit was inspired by Tom Christiansen's audit_mail and
31 deliverlib programs. It allows a piece of email to be logged,
32 examined, accepted into a mailbox, filtered, resent elsewhere,
33 rejected, replied to, and so on. It's designed to allow you to easily
34 create filter programs to stick in a .forward file or similar.
35
36 %description -l pl.UTF-8
37 Inspiracją dla Mail::Audit był audit_mail i programy deliverlib Toma
38 Christiansena.  Pozwala on na logowanie przychodzącej poczty, badanie
39 jej, akceptowanie do skrzynki pocztowej, filtrowanie, przekierowywanie,
40 odrzucanie, odpowiadanie i tak dalej.  Został zaprojektowany tak, aby
41 pozwolić Ci na łatwe tworzenie filtrów, uruchamianych z pliku ~/.forward
42 lub podobnego miejsca.
43
44 %prep
45 %setup -q -n %{pdir}-%{pnam}-%{version}
46
47 %build
48 %{__perl} Makefile.PL \
49         INSTALLDIRS=vendor
50 %{__make}
51
52 %{?with_tests:%{__make} test}
53
54 %install
55 rm -rf $RPM_BUILD_ROOT
56 %{__make} install \
57         DESTDIR=$RPM_BUILD_ROOT
58
59 %clean
60 rm -rf $RPM_BUILD_ROOT
61
62 %files
63 %defattr(644,root,root,755)
64 %doc Change* README FAQ
65 %{perl_vendorlib}/Mail/*.pm
66 %{perl_vendorlib}/Mail/Audit
67 %{_mandir}/man3/*
This page took 0.078737 seconds and 4 git commands to generate.