]>
Commit | Line | Data |
---|---|---|
52db42a5 SP |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %define pdir Net | |
6 | %define pnam SMTP-TLS-ButMaintained | |
52db42a5 SP |
7 | Summary: Net::SMTP::TLS::ButMaintained - An SMTP client supporting TLS and AUTH |
8 | Name: perl-Net-SMTP-TLS-ButMaintained | |
9 | Version: 0.20 | |
541e2c35 | 10 | Release: 1 |
52db42a5 SP |
11 | License: GPL v1+ or Artistic |
12 | Group: Development/Languages/Perl | |
13 | Source0: http://www.cpan.org/modules/by-module/Net/%{pdir}-%{pnam}-%{version}.tar.gz | |
14 | # Source0-md5: c23283a44d355bab1d70722a43cf27eb | |
15 | URL: http://search.cpan.org/dist/Net-SMTP-TLS-ButMaintained/ | |
16 | BuildRequires: perl-devel >= 1:5.8.0 | |
17 | BuildRequires: rpm-perlprov >= 4.1-13 | |
18 | %if %{with tests} | |
19 | BuildRequires: perl-Digest-HMAC | |
20 | BuildRequires: perl-IO-Socket-SSL >= 1.76 | |
21 | BuildRequires: perl-Net-SSLeay | |
22 | %endif | |
23 | BuildArch: noarch | |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
27 | Net::SMTP::TLS::ButMaintained is forked from Net::SMTP::TLS. blame | |
28 | Evan Carroll for the idea. :) | |
29 | ||
30 | Net::SMTP::TLS::ButMaintained is a TLS and AUTH capable SMTP client | |
31 | which offers an interface that users will find familiar from | |
32 | Net::SMTP. Net::SMTP::TLS::ButMaintained implements a subset of the | |
33 | methods provided by that module, but certainly not (yet) a complete | |
34 | mirror image of that API. | |
35 | ||
36 | The methods supported by Net::SMTP::TLS::ButMaintained are used in the | |
37 | above example. Though self explanatory for the most part, please see | |
38 | the perldoc for Net::SMTP if you are unclear. | |
39 | ||
40 | The differences in the methods provided are as follows: | |
41 | ||
42 | %prep | |
43 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
44 | ||
45 | %build | |
46 | %{__perl} Makefile.PL \ | |
47 | INSTALLDIRS=vendor | |
48 | %{__make} | |
49 | ||
50 | %{?with_tests:%{__make} test} | |
51 | ||
52 | %install | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %{__make} pure_install \ | |
56 | DESTDIR=$RPM_BUILD_ROOT | |
57 | ||
58 | %clean | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %files | |
62 | %defattr(644,root,root,755) | |
63 | %doc Changes README | |
64 | %dir %{perl_vendorlib}/Net/SMTP/TLS | |
65 | %{perl_vendorlib}/Net/SMTP/TLS/*.pm | |
66 | %{_mandir}/man3/* |