[perl-MailTools] Spec clean-up

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit 8be079f61d2fef355d49e879edd1eb82ac4b8355
Author: Paul Howarth <paul@xxxxxxxxxxxx>
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@xxxxxxxxxxxx> - 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@xxxxxxxxxx> - 2.08-2
 - Perl mass rebuild
 
--
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



[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux