100edce
Name:           perl-Mail-Sender
9299bba
Version:        0.8.13
42a6ebd
Release:        3%{?dist}
100edce
Summary:        Module for sending mails with attachments through an SMTP server
100edce
100edce
Group:          Development/Libraries
0417b13
# There is also a clause which says that it may not be used for SPAM.
0417b13
# However, since spamming is illegal in the US, this isn't really a use restriction.
0417b13
# Instead, its a friendly reminder of the law, so we won't list it here.
0417b13
License:        GPL+ or Artistic
100edce
URL:            http://search.cpan.org/dist/Mail-Sender/
100edce
Source0:        http://www.cpan.org/authors/id/J/JE/JENDA/Mail-Sender-%{version}.tar.gz
100edce
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
100edce
100edce
BuildArch:      noarch
0417b13
BuildRequires:  perl(ExtUtils::MakeMaker)
734938b
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
100edce
100edce
%description
100edce
%{summary}.
100edce
100edce
100edce
%prep
100edce
%setup -q -n Mail-Sender-%{version}
100edce
%{__perl} -pi -e 's/\r\n/\n/' README
100edce
100edce
100edce
%build
100edce
%{__perl} Makefile.PL INSTALLDIRS=vendor
100edce
make %{?_smp_mflags} < /dev/null
100edce
100edce
100edce
%install
100edce
rm -rf $RPM_BUILD_ROOT
100edce
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
100edce
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
100edce
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
100edce
chmod -R u+w $RPM_BUILD_ROOT/*
100edce
100edce
# Remove the Win32 module in order to avoid requiring perl(Win32API::Registry)
100edce
find $RPM_BUILD_ROOT -type f -name Win32.pm -exec rm -f {} ';'
100edce
100edce
100edce
%check
100edce
make test
100edce
100edce
100edce
%clean
100edce
rm -rf $RPM_BUILD_ROOT
100edce
100edce
100edce
%files
100edce
%defattr(-,root,root,-)
100edce
# License: perl + spam exception.
100edce
# See the main POD page for the copyright information.
100edce
# For the Artistic and GPL license text(s), see the perl package.
100edce
%doc Changes README
100edce
%{perl_vendorlib}/Mail/
c7ac748
%{_mandir}/man3/*.3pm*
100edce
100edce
100edce
%changelog
42a6ebd
* Sat Feb  2 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.8.13-3
42a6ebd
- rebuild for new perl
42a6ebd
0417b13
* Tue Oct 16 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 0.8.13-2.1
0417b13
- correct license tag
0417b13
- add BR: perl(ExtUtils::MakeMaker)
0417b13
c7ac748
* Thu Sep 14 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.8.13-2
c7ac748
- Update to 0.8.13.
c7ac748
9299bba
* Wed Mar 15 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.8.13-1
9299bba
- Update to 0.8.13.
9299bba
734938b
* Fri Feb 17 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.8.10-3
734938b
- Rebuild for FC5 (perl 5.8.8).
734938b
100edce
* Mon Sep 12 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.8.10-2
100edce
- License clarification.
100edce
100edce
* Sat Sep 10 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.8.10-1
100edce
- First build.