Nobody else likes macros for commands

This commit is contained in:
Paul Howarth 2011-06-01 15:17:34 +01:00
parent e1381314bc
commit 5d8856b504

View File

@ -7,9 +7,9 @@ Group: Development/Libraries
URL: http://search.cpan.org/dist/MailTools/ URL: http://search.cpan.org/dist/MailTools/
Source0: http://search.cpan.org/CPAN/authors/id/M/MA/MARKOV/MailTools-%{version}.tar.gz Source0: http://search.cpan.org/CPAN/authors/id/M/MA/MARKOV/MailTools-%{version}.tar.gz
Patch0: MailTools-2.08-UTF8.patch 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 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(Date::Format), perl(Date::Parse), perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::More), perl(Test::Pod), perl >= 3:5.8.1 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 # Set up example scripts
cd examples cd examples
for file in *.PL; do for file in *.PL; do
%{__perl} $file perl $file
done done
%{__chmod} -x *_demo chmod -x *_demo
# Remove example-generation scripts, no longer needed # Remove example-generation scripts, no longer needed
# It causes warnings from MakeMaker, but we don't care # It causes warnings from MakeMaker, but we don't care
%{__rm} *.PL rm *.PL
cd - cd -
# Fix character encodings # Fix character encodings
%patch0 -p1 %patch0 -p1
%build %build
%{__perl} Makefile.PL INSTALLDIRS=vendor perl Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags} make %{?_smp_mflags}
%install %install
%{__rm} -rf %{buildroot} rm -rf %{buildroot}
%{__make} pure_install PERL_INSTALL_ROOT=%{buildroot} make pure_install PERL_INSTALL_ROOT=%{buildroot}
/usr/bin/find %{buildroot} -type f -name .packlist -exec %{__rm} -f {} ';' find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
/usr/bin/find %{buildroot} -depth -type d -exec /bin/rmdir {} ';' 2>/dev/null find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null
%{_fixperms} %{buildroot} %{_fixperms} %{buildroot}
%check %check
%{__make} test make test
%clean %clean
%{__rm} -rf %{buildroot} rm -rf %{buildroot}
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
@ -106,6 +106,7 @@ cd -
- Mail::Internet should accept Net::SMTP::SSL as well (CPAN RT#68590) - Mail::Internet should accept Net::SMTP::SSL as well (CPAN RT#68590)
- Document that Mail::Mailer::smtps needs Authen::SASL - Document that Mail::Mailer::smtps needs Authen::SASL
- Use patch rather than iconv to convert docs to UTF8 encoding - 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 * 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 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild