Modernize spec file

This commit is contained in:
Petr Písař 2014-01-16 14:30:47 +01:00
parent c0d0de8d63
commit 4e70561955

View File

@ -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@redhat.com> - 6.04-4
- Modernize spec file
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.04-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild