]>
Commit | Line | Data |
---|---|---|
404ef209 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %include /usr/lib/rpm/macros.perl | |
cbb1139f | 6 | %define pdir MIME |
7 | %define pnam Explode | |
404ef209 | 8 | Summary: MIME::Explode - Perl extension for explode MIME messages |
3380d14d | 9 | Summary(pl.UTF-8): MIME::Explode - rozszerzenie Perla do rozbijania wiadomości MIME |
404ef209 | 10 | Name: perl-MIME-Explode |
b9d39a1c | 11 | Version: 0.39 |
e52cd907 | 12 | Release: 6 |
404ef209 | 13 | # same as perl |
70a08683 | 14 | License: GPL v1+ or Artistic |
404ef209 | 15 | Group: Development/Languages/Perl |
714aac98 | 16 | Source0: http://www.cpan.org/modules/by-module/MIME/%{pdir}-%{pnam}-%{version}.tar.gz |
b9d39a1c | 17 | # Source0-md5: 87be0487497ee30b4566ceac2dbaf733 |
714aac98 | 18 | URL: http://search.cpan.org/dist/MIME-Explode/ |
404ef209 JB |
19 | BuildRequires: perl-devel >= 1:5.8.0 |
20 | BuildRequires: rpm-perlprov >= 4.1-13 | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | MIME::Explode is Perl module for parsing and decoding single or | |
25 | multipart MIME messages, and outputting its decoded components to a | |
26 | given directory. This module is designed to allows users to extract | |
27 | the attached files out of a MIME encoded email messages or mailboxes. | |
28 | ||
1e65fd62 JR |
29 | %description -l pl.UTF-8 |
30 | MIME::Explode to moduł Perla do analizy i dekodowania jedno- i | |
31 | wieloczęściowych wiadomości MIME oraz zapisu zdekodowanych składników | |
32 | do podanego katalogu. Ten moduł został opracowany aby umożliwić | |
33 | użytkownikom wydobywanie załączników z zakodowanych MIME wiadomości | |
404ef209 JB |
34 | lub skrzynek pocztowych. |
35 | ||
36 | %prep | |
37 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
38 | ||
39 | %build | |
40 | %{__perl} Makefile.PL \ | |
41 | INSTALLDIRS=vendor | |
42 | ||
43 | %{__make} \ | |
1a7d2e4f | 44 | CC="%{__cc}" \ |
404ef209 JB |
45 | OPTIMIZE="%{rpmcflags}" |
46 | ||
47 | %{?with_tests:%{__make} test} | |
48 | ||
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %{__make} install \ | |
53 | DESTDIR=$RPM_BUILD_ROOT | |
54 | ||
55 | %clean | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %files | |
59 | %defattr(644,root,root,755) | |
60 | %doc Changes README | |
61 | %{perl_vendorarch}/MIME/Explode.pm | |
62 | %dir %{perl_vendorarch}/auto/MIME/Explode | |
63 | %{perl_vendorarch}/auto/MIME/Explode/autosplit.ix | |
404ef209 JB |
64 | %attr(755,root,root) %{perl_vendorarch}/auto/MIME/Explode/Explode.so |
65 | %{_mandir}/man3/* |