[perl-MailTools] Spec clean-up
Paul Howarth
pghmcfc at fedoraproject.org
Thu Jan 12 11:10:20 UTC 2012
commit 8be079f61d2fef355d49e879edd1eb82ac4b8355
Author: Paul Howarth <paul at city-fan.org>
Date: Thu Jan 12 11:09:51 2012 +0000
Spec clean-up
- Use DESTDIR rather than PERL_INSTALL_ROOT
- One buildreq per line for readability
- Add buildreqs for core perl modules, which might be dual-lived
perl-MailTools.spec | 24 +++++++++++++++++++-----
1 files changed, 19 insertions(+), 5 deletions(-)
---
diff --git a/perl-MailTools.spec b/perl-MailTools.spec
index d74601a..9ffc075 100644
--- a/perl-MailTools.spec
+++ b/perl-MailTools.spec
@@ -1,7 +1,7 @@
Summary: Various mail-related perl modules
Name: perl-MailTools
Version: 2.08
-Release: 2%{?dist}
+Release: 3%{?dist}
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/MailTools/
@@ -9,9 +9,18 @@ Source0: http://search.cpan.org/CPAN/authors/id/M/MA/MARKOV/MailTools-%{version}
Patch0: MailTools-2.08-UTF8.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
BuildArch: noarch
+BuildRequires: perl >= 3:5.8.1
+BuildRequires: perl(Carp)
+BuildRequires: perl(Config)
+BuildRequires: perl(Date::Format)
+BuildRequires: perl(Date::Parse)
+BuildRequires: perl(Exporter)
+BuildRequires: perl(ExtUtils::MakeMaker)
+BuildRequires: perl(IO::Handle)
+BuildRequires: perl(POSIX)
+BuildRequires: perl(Test::More)
+BuildRequires: perl(Test::Pod)
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
%description
MailTools is a set of Perl modules related to mail applications.
@@ -24,7 +33,7 @@ cd examples
for file in *.PL; do
perl $file
done
-chmod -x *_demo
+chmod -c -x *_demo
# Remove example-generation scripts, no longer needed
# It causes warnings from MakeMaker, but we don't care
rm *.PL
@@ -39,7 +48,7 @@ make %{?_smp_mflags}
%install
rm -rf %{buildroot}
-make pure_install PERL_INSTALL_ROOT=%{buildroot}
+make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null
%{_fixperms} %{buildroot}
@@ -100,6 +109,11 @@ rm -rf %{buildroot}
%{_mandir}/man3/Mail::Util.3pm*
%changelog
+* Thu Jan 12 2012 Paul Howarth <paul at city-fan.org> - 2.08-3
+- Use DESTDIR rather than PERL_INSTALL_ROOT
+- One buildreq per line for readability
+- Add buildreqs for core perl modules, which might be dual-lived
+
* Mon Jun 20 2011 Marcela Mašláňová <mmaslano at redhat.com> - 2.08-2
- Perl mass rebuild
More information about the scm-commits
mailing list