]> git.pld-linux.org Git - packages/perl-Mail-Alias.git/blob - perl-Mail-Alias.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Mail-Alias.git] / perl-Mail-Alias.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4
5 %define         pdir    Mail
6 %define         pnam    Alias
7 Summary:        Mail::Alias - manipulates mail alias files of various formats
8 Summary(pl.UTF-8):      Mail::Alias - manipulacja plikami z aliasami pocztowymi w różnych formatach
9 Name:           perl-Mail-Alias
10 Version:        1.12
11 Release:        5
12 # same as perl
13 License:        GPL v1+ or Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  01d42c11f3c4372088597f9c5c3d6af7
17 URL:            http://search.cpan.org/dist/Mail-Alias/
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 BuildArch:      noarch
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 This module allows direct manipulation of various types of E-Mail
25 Alias files. The primary use of Mail::Alias is for manipulating alias
26 files in the SENDMAIL alias file format. Additionally, it's possible
27 to read some other formats and to convert between various alias file
28 formats.
29
30 %description -l pl.UTF-8
31 Ten moduł pozwala na bezpośrednią manipulację danymi o aliasach
32 e-mail, zawartymi plikach o różnych formatach. Podstawowym
33 zastosowaniem modułu jest manipulacja plikami w formacie Sendmaila.
34 Dodatkowo, możliwe jest także korzystanie z kilku innych formatów oraz
35 konwertowanie.
36
37 %prep
38 %setup -q -n %{pdir}-%{pnam}-%{version}
39
40 %build
41 %{__perl} Makefile.PL \
42         INSTALLDIRS=vendor
43 %{__make}
44
45 %{?with_tests:%{__make} test}
46
47 %install
48 rm -rf $RPM_BUILD_ROOT
49
50 %{__make} install \
51         DESTDIR=$RPM_BUILD_ROOT
52
53 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
54 cp testscripts/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
55
56 %clean
57 rm -rf $RPM_BUILD_ROOT
58
59 %files
60 %defattr(644,root,root,755)
61 %doc Change* README
62 %{perl_vendorlib}/Mail/Alias.pm
63 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}
64 %{_mandir}/man3/*
This page took 0.059958 seconds and 4 git commands to generate.