]> git.pld-linux.org Git - packages/perl-Email-MIME.git/blob - perl-Email-MIME.spec
- pl fix
[packages/perl-Email-MIME.git] / perl-Email-MIME.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define pdir    Email
7 %define pnam    MIME
8 Summary:        Email::MIME - easy MIME message parsing
9 Summary(pl):    Email::MIME - ³atwe analizowanie wiadomo¶ci w formacie MIME
10 Name:           perl-Email-MIME
11 Version:        1.82
12 Release:        1
13 License:        GPL 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:  fe917f83f7ff5f6425e388857a7400eb
17 BuildRequires:  perl-devel >= 1:5.8.0
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 %if %{with tests}
20 BuildRequires:  perl-Email-MIME-ContentType >= 1
21 BuildRequires:  perl-Email-MIME-Encodings >= 1.3
22 BuildRequires:  perl-Email-Simple >= 1:1.91
23 BuildRequires:  perl-MIME-Types >= 1.13
24 %endif
25 BuildArch:      noarch
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 This is an extension of the Email::Simple module, to handle MIME
30 encoded messages. It takes a message as a string, splits it up into
31 its constituent parts, and allows you access to various parts of the
32 message. Headers are decoded from MIME encoding.
33
34 %description -l pl
35 Jest to rozszerzenie modu³u Email::Simple s³u¿±ce do obs³ugi
36 wiadomo¶ci w formacie MIME. Pobiera ono wiadomo¶æ jako ³añcuch
37 tekstowy, dzieli go na czê¶ci sk³adowe i umo¿liwia dostêp do
38 poszczególnych czê¶ci wiadomo¶ci. Nag³ówki równie¿ s± dekodowane.
39
40 %prep
41 %setup -q -n %{pdir}-%{pnam}-%{version}
42
43 %build
44 %{__perl} Makefile.PL \
45         INSTALLDIRS=vendor
46 %{__make}
47
48 %{?with_tests:%{__make} test}
49
50 %install
51 rm -rf $RPM_BUILD_ROOT
52
53 %{__make} install \
54         DESTDIR=$RPM_BUILD_ROOT
55
56 %clean
57 rm -rf $RPM_BUILD_ROOT
58
59 %files
60 %defattr(644,root,root,755)
61 %doc Changes
62 %{perl_vendorlib}/Email/*.pm
63 %{_mandir}/man3/*
This page took 0.026487 seconds and 3 git commands to generate.