3 %bcond_without tests # unit tests
7 Summary: MIME::tools - modules for parsing (and creating!) MIME entities
8 Summary(pl.UTF-8): MIME::tools - zestaw modułów do operacji na danych w formacie MIME
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/MIME/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 5f79177746057c8254246f4401ae2411
17 URL: https://metacpan.org/dist/MIME-tools
18 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: perl(File::Path) >= 1
21 BuildRequires: perl(File::Spec) >= 0.6
22 BuildRequires: perl(IO::File) >= 1.13
23 BuildRequires: perl-File-Temp >= 0.18
24 BuildRequires: perl-MIME-Base64 >= 2.20
25 BuildRequires: perl-MailTools >= 1.05
26 BuildRequires: perl-Test-Deep
28 BuildRequires: rpm-perlprov >= 4.1-13
29 BuildRequires: rpmbuild(macros) >= 1.745
30 Requires: perl-MailTools >= 1.05
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 %define _noautoreq_perl Convert::BinHex
38 MIME-tools is a collection of Perl5 MIME:: modules for parsing,
39 decoding and generating single- or multipart (even nested multipart)
40 MIME messages. (Yes, kids, that means you can send messages with
43 %description -l pl.UTF-8
44 MIME::tools to zestaw modułów MIME:: dla Perla 5 do analizy,
45 dekodowania oraz tworzenia jedno- i wieloczęściowych (a nawet
46 zagnieżdżonych wieloczęściowych) wiadomości MIME (tak, to znaczy, że
47 można wysyłać wiadomości z dołączonymi plikami GIF).
50 %setup -q -n %{pdir}-%{pnam}-%{version}
53 %{__perl} Makefile.PL \
57 %{?with_tests:%{__make} test}
60 rm -rf $RPM_BUILD_ROOT
61 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
64 DESTDIR=$RPM_BUILD_ROOT
66 install examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
67 rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/MIME-tools/.packlist
70 rm -rf $RPM_BUILD_ROOT
73 %defattr(644,root,root,755)
75 %{perl_vendorlib}/MIME/Body.pm
76 %{perl_vendorlib}/MIME/Decoder.pm
77 %{perl_vendorlib}/MIME/Entity.pm
78 %{perl_vendorlib}/MIME/Head.pm
79 %{perl_vendorlib}/MIME/Parser.pm
80 %{perl_vendorlib}/MIME/Tools.pm
81 %{perl_vendorlib}/MIME/WordDecoder.pm
82 %{perl_vendorlib}/MIME/Words.pm
83 %{perl_vendorlib}/MIME/Decoder
84 %{perl_vendorlib}/MIME/Field
85 %{perl_vendorlib}/MIME/Parser
86 %{_mandir}/man3/MIME::Body.3pm*
87 %{_mandir}/man3/MIME::Decoder*.3pm*
88 %{_mandir}/man3/MIME::Entity.3pm*
89 %{_mandir}/man3/MIME::Field::*.3pm*
90 %{_mandir}/man3/MIME::Head.3pm*
91 %{_mandir}/man3/MIME::Parser*.3pm*
92 %{_mandir}/man3/MIME::Tools.3pm*
93 %{_mandir}/man3/MIME::WordDecoder.3pm*
94 %{_mandir}/man3/MIME::Words.3pm*
95 %{_examplesdir}/%{name}-%{version}