[packages/perl-Mail-Transport] - new
adamg
adamg at pld-linux.org
Tue Oct 15 10:23:04 CEST 2019
commit 60348004b79e12e0053b0b562497d6a91023cd23
Author: Adam Gołębiowski <adamg at pld-linux.org>
Date: Tue Oct 15 10:22:51 2019 +0200
- new
perl-Mail-Transport.spec | 59 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 59 insertions(+)
---
diff --git a/perl-Mail-Transport.spec b/perl-Mail-Transport.spec
new file mode 100644
index 0000000..453b744
--- /dev/null
+++ b/perl-Mail-Transport.spec
@@ -0,0 +1,59 @@
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%define pdir Mail
+%define pnam Transport
+%include /usr/lib/rpm/macros.perl
+Summary: Mail::Transport - use Mail Transfer Agents (MTAs)
+Name: perl-Mail-Transport
+Version: 3.004
+Release: 1
+# same as perl
+License: GPL v1+ or Artistic
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-module/Mail/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 6294dc02c2a75e0b0f21fa16a4493f28
+URL: https://metacpan.org/release/Mail-Transport/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires: perl-Mail-Message >= 3
+%endif
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Objects which extend Mail::Transport implement sending and/or
+receiving of messages, using various protocols.
+
+Mail::Transport::Send extends this class, and offers general
+functionality for send protocols, like SMTP. Mail::Transport::Receive
+also extends this class, and offers receive method. Some transport
+protocols will implement both sending and receiving.
+
+%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} pure_install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc ChangeLog README
+%{perl_vendorlib}/Mail/*.pm
+%{perl_vendorlib}/Mail/Transport
+%{_mandir}/man3/*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-Mail-Transport.git/commitdiff/60348004b79e12e0053b0b562497d6a91023cd23
More information about the pld-cvs-commit
mailing list