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)
This commit is contained in:
Paul Howarth 2012-01-12 15:40:51 +00:00
parent 1173552387
commit 056ddeb3b9

View File

@ -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@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@city-fan.org> - 1.42-1
- update to 1.42
- fixed incorrect documentation of how to enable CRL checking