From 056ddeb3b9285736e2f0a5916d4ee6f85d704271 Mon Sep 17 00:00:00 2001 From: Paul Howarth Date: Thu, 12 Jan 2012 15:40:51 +0000 Subject: [PATCH] Spec clean-up - Use DESTDIR rather than PERL_INSTALL_ROOT - Use %{_fixperms} macro rather than our own chmod incantation - BR: perl(AutoLoader), perl(Exporter), perl(Socket) --- perl-Net-SSLeay.spec | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/perl-Net-SSLeay.spec b/perl-Net-SSLeay.spec index 9932473..7de929f 100644 --- a/perl-Net-SSLeay.spec +++ b/perl-Net-SSLeay.spec @@ -1,6 +1,6 @@ Name: perl-Net-SSLeay Version: 1.42 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Perl extension for using OpenSSL Group: Development/Libraries License: OpenSSL @@ -8,9 +8,12 @@ URL: http://search.cpan.org/dist/Net-SSLeay/ Source0: http://search.cpan.org/CPAN/authors/id/M/MI/MIKEM/Net-SSLeay-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu) BuildRequires: openssl-devel, pkgconfig +BuildRequires: perl(AutoLoader) BuildRequires: perl(Carp) +BuildRequires: perl(Exporter) BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(MIME::Base64) +BuildRequires: perl(Socket) BuildRequires: perl(Test::Exception) # Test::Kwalitee => Module::CPANTS::Analyze => Net::HTTP => IO::Socket::SSL => Net::SSLeay %if 0%{!?perl_bootstrap:1} @@ -53,11 +56,11 @@ 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} -type f -name '*.bs' -empty -exec rm -f {} ';' find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null -chmod -R u+w %{buildroot} +%{_fixperms} %{buildroot} # Remove script we don't want packaged rm -f %{buildroot}%{perl_vendorarch}/Net/ptrtstrun.pl @@ -76,6 +79,11 @@ rm -rf %{buildroot} %{_mandir}/man3/Net::SSLeay*.3* %changelog +* Thu Jan 12 2012 Paul Howarth - 1.42-2 +- Use DESTDIR rather than PERL_INSTALL_ROOT +- Use %%{_fixperms} macro rather than our own chmod incantation +- BR: perl(AutoLoader), perl(Exporter), perl(Socket) + * Mon Oct 3 2011 Paul Howarth - 1.42-1 - update to 1.42 - fixed incorrect documentation of how to enable CRL checking