[perl-LWP-Protocol-https] Modernize spec file

Petr Pisar ppisar at fedoraproject.org
Thu Jan 16 13:40:09 UTC 2014


commit 4e70561955c153368b849c4c41f0796cacc11ebe
Author: Petr Písař <ppisar at redhat.com>
Date:   Thu Jan 16 14:30:47 2014 +0100

    Modernize spec file

 perl-LWP-Protocol-https.spec |   15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)
---
diff --git a/perl-LWP-Protocol-https.spec b/perl-LWP-Protocol-https.spec
index 0544ad2..9b80315 100644
--- a/perl-LWP-Protocol-https.spec
+++ b/perl-LWP-Protocol-https.spec
@@ -1,13 +1,16 @@
 Name:           perl-LWP-Protocol-https
 Version:        6.04
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        Provide HTTPS support for LWP::UserAgent
 License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/LWP-Protocol-https/
 Source0:        http://www.cpan.org/authors/id/G/GA/GAAS/LWP-Protocol-https-%{version}.tar.gz
 BuildArch:      noarch
+BuildRequires:  perl
 BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(Getopt::Long)
+BuildRequires:  perl(strict)
 # Run-requires
 BuildRequires:  perl(IO::Socket::SSL) >= 1.54
 BuildRequires:  perl(LWP::Protocol::http)
@@ -16,7 +19,7 @@ BuildRequires:  perl(Net::HTTPS) >= 6
 # Tests
 BuildRequires:  perl(LWP::UserAgent) >= 6.04
 BuildRequires:  perl(Test::More)
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 Requires:       perl(IO::Socket::SSL) >= 1.54
 Requires:       perl(Mozilla::CA) >= 20110101
 Requires:       perl(Net::HTTPS) >= 6
@@ -34,13 +37,12 @@ access sites using HTTP over SSL/TLS.
 %setup -q -n LWP-Protocol-https-%{version}
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+perl Makefile.PL INSTALLDIRS=vendor
 make %{?_smp_mflags}
 
 %install
-make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
+make pure_install DESTDIR=$RPM_BUILD_ROOT
 find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
-find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
 %{_fixperms} $RPM_BUILD_ROOT/*
 
 %check
@@ -52,6 +54,9 @@ make test
 %{_mandir}/man3/*
 
 %changelog
+* Thu Jan 16 2014 Petr Pisar <ppisar at redhat.com> - 6.04-4
+- Modernize spec file
+
 * Sat Aug 03 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 6.04-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
 


More information about the scm-commits mailing list