[perl-Net-SSLeay] Spec clean-up
Paul Howarth
pghmcfc at fedoraproject.org
Thu Jan 12 16:53:40 UTC 2012
commit 056ddeb3b9285736e2f0a5916d4ee6f85d704271
Author: Paul Howarth <paul at city-fan.org>
Date: Thu Jan 12 15:40:51 2012 +0000
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 files 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 <paul at city-fan.org> - 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 <paul at city-fan.org> - 1.42-1
- update to 1.42
- fixed incorrect documentation of how to enable CRL checking
More information about the scm-commits
mailing list