Nobody else likes macros for commands
This commit is contained in:
parent
e1381314bc
commit
5d8856b504
@ -7,9 +7,9 @@ Group: Development/Libraries
|
||||
URL: http://search.cpan.org/dist/MailTools/
|
||||
Source0: http://search.cpan.org/CPAN/authors/id/M/MA/MARKOV/MailTools-%{version}.tar.gz
|
||||
Patch0: MailTools-2.08-UTF8.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
|
||||
BuildArch: noarch
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
BuildRequires: perl(Date::Format), perl(Date::Parse), perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl(Test::More), perl(Test::Pod), perl >= 3:5.8.1
|
||||
|
||||
@ -22,33 +22,33 @@ MailTools is a set of Perl modules related to mail applications.
|
||||
# Set up example scripts
|
||||
cd examples
|
||||
for file in *.PL; do
|
||||
%{__perl} $file
|
||||
perl $file
|
||||
done
|
||||
%{__chmod} -x *_demo
|
||||
chmod -x *_demo
|
||||
# Remove example-generation scripts, no longer needed
|
||||
# It causes warnings from MakeMaker, but we don't care
|
||||
%{__rm} *.PL
|
||||
rm *.PL
|
||||
cd -
|
||||
|
||||
# Fix character encodings
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
%{__make} %{?_smp_mflags}
|
||||
perl Makefile.PL INSTALLDIRS=vendor
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
%{__rm} -rf %{buildroot}
|
||||
%{__make} pure_install PERL_INSTALL_ROOT=%{buildroot}
|
||||
/usr/bin/find %{buildroot} -type f -name .packlist -exec %{__rm} -f {} ';'
|
||||
/usr/bin/find %{buildroot} -depth -type d -exec /bin/rmdir {} ';' 2>/dev/null
|
||||
rm -rf %{buildroot}
|
||||
make pure_install PERL_INSTALL_ROOT=%{buildroot}
|
||||
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
|
||||
find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null
|
||||
%{_fixperms} %{buildroot}
|
||||
|
||||
%check
|
||||
%{__make} test
|
||||
make test
|
||||
|
||||
%clean
|
||||
%{__rm} -rf %{buildroot}
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
@ -106,6 +106,7 @@ cd -
|
||||
- Mail::Internet should accept Net::SMTP::SSL as well (CPAN RT#68590)
|
||||
- Document that Mail::Mailer::smtps needs Authen::SASL
|
||||
- Use patch rather than iconv to convert docs to UTF8 encoding
|
||||
- Nobody else likes macros for commands
|
||||
|
||||
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.07-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||
|
Loading…
Reference in New Issue
Block a user