3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: MIME::Explode - Perl extension for explode MIME messages
9 Summary(pl.UTF-8): MIME::Explode - rozszerzenie Perla do rozbijania wiadomości MIME
10 Name: perl-MIME-Explode
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/MIME/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 87be0487497ee30b4566ceac2dbaf733
18 URL: http://search.cpan.org/dist/MIME-Explode/
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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.
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
34 lub skrzynek pocztowych.
37 %setup -q -n %{pdir}-%{pnam}-%{version}
40 %{__perl} Makefile.PL \
45 OPTIMIZE="%{rpmcflags}"
47 %{?with_tests:%{__make} test}
50 rm -rf $RPM_BUILD_ROOT
53 DESTDIR=$RPM_BUILD_ROOT
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
61 %{perl_vendorarch}/MIME/Explode.pm
62 %dir %{perl_vendorarch}/auto/MIME/Explode
63 %{perl_vendorarch}/auto/MIME/Explode/autosplit.ix
64 %attr(755,root,root) %{perl_vendorarch}/auto/MIME/Explode/Explode.so