commit 2f18a2d81a500e43533b0a22dff24eb41be8cfc8 Author: Xavier Bachelot <xavier@xxxxxxxxxxxx> Date: Mon May 23 21:49:14 2011 +0200 Initial import .gitignore | 1 + perl-MIME-Lite-HTML.spec | 71 ++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 73 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..05edcce 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/MIME-Lite-HTML-1.23.tar.gz diff --git a/perl-MIME-Lite-HTML.spec b/perl-MIME-Lite-HTML.spec new file mode 100644 index 0000000..d2c28ac --- /dev/null +++ b/perl-MIME-Lite-HTML.spec @@ -0,0 +1,71 @@ +Name: perl-MIME-Lite-HTML +Version: 1.23 +Release: 2%{?dist} +Summary: Provide routine to transform a HTML page in a MIME-Lite mail +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/MIME-Lite-HTML/ +Source0: http://www.cpan.org/modules/by-module/MIME/MIME-Lite-HTML-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(HTML::LinkExtor) +BuildRequires: perl(LWP::UserAgent) +BuildRequires: perl(MIME::Lite) +BuildRequires: perl(Test::More) +BuildRequires: perl(URI::URL) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + + +%description +This module is a Perl mail client interface for sending message that +support HTML format and build them for you.. This module provides routine to +transform an HTML page in a MIME::Lite mail. So you need this module to use +MIME-Lite-HTML possibilities. + + +%prep +%setup -q -n MIME-Lite-HTML-%{version} +chmod a-x README Changes HTML.pm +iconv -f iso8859-1 -t utf-8 Changes > Changes.utf8 && \ +touch -r Changes Changes.utf8 && \ +mv -f Changes.utf8 Changes + + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT + +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT + +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* + + +%check +make test + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc Changes COPYING README +%{perl_vendorlib}/* +%{_mandir}/man3/* + + +%changelog +* Thu May 19 2011 Xavier Bachelot <xavier@xxxxxxxxxxxx> 1.23-2 +- Clean up redundant Requires:. + +* Mon May 02 2011 Xavier Bachelot <xavier@xxxxxxxxxxxx> 1.23-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..b0fc7e4 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +d7a6ac0660dd5b5cc5db000fc68b9630 MIME-Lite-HTML-1.23.tar.gz -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel