]> git.pld-linux.org Git - packages/perl-Email-MIME.git/commitdiff
- new
authorradek <radek@pld-linux.org>
Thu, 9 Dec 2004 11:59:14 +0000 (11:59 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    perl-Email-MIME.spec -> 1.1

perl-Email-MIME.spec [new file with mode: 0644]

diff --git a/perl-Email-MIME.spec b/perl-Email-MIME.spec
new file mode 100644 (file)
index 0000000..b25eead
--- /dev/null
@@ -0,0 +1,60 @@
+#
+# Conditional build:
+%bcond_without tests           # do not perform "make test"
+#
+%include       /usr/lib/rpm/macros.perl
+%define        pdir    Email
+%define        pnam    MIME
+Summary:       Email::MIME - Easy MIME message parsing.
+#Summary(pl):  
+Name:          perl-Email-MIME
+Version:       1.82
+Release:       1
+License:       GPL or Artistic
+Group:         Development/Languages/Perl
+Source0:       http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: fe917f83f7ff5f6425e388857a7400eb
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires: perl(Email::MIME::ContentType) >= 1
+BuildRequires: perl(Email::MIME::Encodings) >= 1.3
+BuildRequires: perl-Email-Simple >= 1:1.91
+BuildRequires: perl-MIME-Types >= 1.13
+%endif
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This is an extension of the L<Email::Simple> module, to handle MIME
+encoded messages. It takes a message as a string, splits it up into its
+constituent parts, and allows you access to various parts of the
+message. Headers are decoded from MIME encoding.
+
+# %description -l pl
+# TODO
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes
+%{perl_vendorlib}/Email/*.pm
+%{_mandir}/man3/*
This page took 0.10998 seconds and 4 git commands to generate.