]> git.pld-linux.org Git - packages/perl-Email-MIME.git/blob - perl-Email-MIME.spec
- up to 1.953
[packages/perl-Email-MIME.git] / perl-Email-MIME.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define pdir    Email
6 %define pnam    MIME
7 Summary:        Email::MIME - easy MIME message parsing
8 Summary(pl.UTF-8):      Email::MIME - łatwe analizowanie wiadomości w formacie MIME
9 Name:           perl-Email-MIME
10 Version:        1.953
11 Release:        1
12 License:        GPL or Artistic
13 Group:          Development/Languages/Perl
14 #Source0:       http://www.cpan.org/modules/by-module/Email/%{pdir}-%{pnam}-%{version}.tar.gz
15 Source0:        http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  15955d070957218a62eff9247964f4fb
17 URL:            http://search.cpan.org/dist/Email-MIME/
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 %if %{with tests}
21 BuildRequires:  perl-Email-Date-Format
22 BuildRequires:  perl-Email-MIME-ContentType >= 1.016
23 BuildRequires:  perl-Email-MIME-Encodings >= 1.314
24 BuildRequires:  perl-Email-MessageID
25 BuildRequires:  perl-Email-Simple >= 1:2.211
26 BuildRequires:  perl-Encode
27 BuildRequires:  perl-MIME-Types >= 1.13
28 BuildRequires:  perl-Test-Pod >= 1.14
29 BuildRequires:  perl-Test-Pod-Coverage >= 1.08
30 %endif
31 Requires:       perl-Email-Simple >= 1:2.004
32 Provides:       perl-Email-MIME-Creator
33 Provides:       perl-Email-MIME-Modifier
34 Obsoletes:      perl-Email-MIME-Creator
35 Obsoletes:      perl-Email-MIME-Modifier
36 BuildArch:      noarch
37 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38
39 %description
40 This is an extension of the Email::Simple module, to handle MIME
41 encoded messages. It takes a message as a string, splits it up into
42 its constituent parts, and allows you access to various parts of the
43 message. Headers are decoded from MIME encoding.
44
45 %description -l pl.UTF-8
46 Jest to rozszerzenie modułu Email::Simple służące do obsługi
47 wiadomości w formacie MIME. Pobiera ono wiadomość jako łańcuch
48 tekstowy, dzieli go na części składowe i umożliwia dostęp do
49 poszczególnych części wiadomości. Nagłówki również są dekodowane.
50
51 %prep
52 %setup -q -n %{pdir}-%{pnam}-%{version}
53
54 %build
55 %{__perl} Makefile.PL \
56         INSTALLDIRS=vendor
57 %{__make}
58
59 %{?with_tests:%{__make} test}
60
61 %install
62 rm -rf $RPM_BUILD_ROOT
63
64 %{__make} install \
65         DESTDIR=$RPM_BUILD_ROOT
66
67 %clean
68 rm -rf $RPM_BUILD_ROOT
69
70 %files
71 %defattr(644,root,root,755)
72 %doc Changes README
73 %{perl_vendorlib}/Email/*.pm
74 %{perl_vendorlib}/Email/MIME/*.pm
75 %{perl_vendorlib}/Email/MIME/Header
76 %{_mandir}/man3/*
This page took 0.471273 seconds and 4 git commands to generate.