|
@@ -1,18 +1,27 @@
|
|
Name: perl-MIME-Lite
|
|
Name: perl-MIME-Lite
|
|
-Version: 3.01
|
|
+Version: 3.028
|
|
-Release: 6%{?_dist_release}
|
|
+Release: 1%{?_dist_release}
|
|
Summary: MIME::Lite - low-calorie MIME generator
|
|
Summary: MIME::Lite - low-calorie MIME generator
|
|
|
|
|
|
Group: Development/Libraries
|
|
Group: Development/Libraries
|
|
-License: GPL or Artistic
|
|
+License: GPL+ or Artistic
|
|
URL: http://search.cpan.org/dist/MIME-Lite/
|
|
URL: http://search.cpan.org/dist/MIME-Lite/
|
|
Source0: http://www.cpan.org/authors/id/Y/YV/YVES/MIME-Lite-%{version}.tar.gz
|
|
Source0: http://www.cpan.org/authors/id/Y/YV/YVES/MIME-Lite-%{version}.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
BuildArch: noarch
|
|
BuildArch: noarch
|
|
BuildRequires: perl >= 1:5.6.1
|
|
BuildRequires: perl >= 1:5.6.1
|
|
-BuildRequires: perl-MIME-Types
|
|
+BuildRequires: perl(Carp)
|
|
-Requires: perl >= %(eval "`%{__perl} -V:version`"; echo $version)
|
|
+BuildRequires: perl(ExtUtils::MakeMaker) perl(Test::More)
|
|
|
|
+BuildRequires: perl(Email::Date::Format) perl(Mail::Address)
|
|
|
|
+BuildRequires: perl(File::Spec)
|
|
|
|
+BuildRequires: perl(MIME::Types) >= 1.28
|
|
|
|
+# Tests
|
|
|
|
+BuildRequires: perl(Test::More)
|
|
|
|
+Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
+# not detected by automated find-requires:
|
|
|
|
+Requires: perl(Email::Date::Format)
|
|
|
|
+Requires: perl(MIME::Types) >= 1.28
|
|
|
|
|
|
%description
|
|
%description
|
|
MIME::Lite is intended as a simple, standalone module for generating (not
|
|
MIME::Lite is intended as a simple, standalone module for generating (not
|
|
@@ -22,32 +31,36 @@ not require that you have the Mail:: or MIME:: modules installed.
|
|
|
|
|
|
%prep
|
|
%prep
|
|
%setup -q -n MIME-Lite-%{version}
|
|
%setup -q -n MIME-Lite-%{version}
|
|
|
|
+sed -i 's/\r//' examples/*
|
|
|
|
+sed -i 's/\r//' contrib/README
|
|
|
|
|
|
%build
|
|
%build
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
make %{?_smp_mflags}
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
%install
|
|
%install
|
|
-rm -rf $RPM_BUILD_ROOT
|
|
+rm -rf %{buildroot}
|
|
-make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
|
+make pure_install PERL_INSTALL_ROOT=%{buildroot}
|
|
-find $RPM_BUILD_ROOT -type f -a \( -name .packlist \
|
|
+find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
|
|
- -o \( -name '*.bs' -a -empty \) \) -exec rm -f {} ';'
|
|
+find %{buildroot} -depth -type d -empty -exec rmdir ';'
|
|
-find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
|
|
|
|
|
|
|
|
-%check || :
|
|
+%check
|
|
make test
|
|
make test
|
|
|
|
|
|
%clean
|
|
%clean
|
|
-rm -rf $RPM_BUILD_ROOT
|
|
+rm -rf %{buildroot}
|
|
|
|
|
|
%files
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
-%doc changes.pod README examples contrib
|
|
+%doc changes.pod README examples contrib COPYING LICENSE
|
|
%{perl_vendorlib}/*
|
|
%{perl_vendorlib}/*
|
|
%{_mandir}/man3/*.3*
|
|
%{_mandir}/man3/*.3*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Sat Mar 10 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 3.028-1
|
|
|
|
+- updated to 3.028
|
|
|
|
+
|
|
* Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.01-6
|
|
* Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.01-6
|
|
- rebuild with perl-5.12.3
|
|
- rebuild with perl-5.12.3
|
|
|
|
|