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