Modernize spec file

This commit is contained in:
Petr Písař 2017-06-05 11:30:15 +02:00
parent 9be3a2ccfe
commit 936b43cbe8

View File

@ -1,19 +1,23 @@
Name: perl-HTTP-Negotiate
Version: 6.01
Release: 15%{?dist}
Release: 16%{?dist}
Summary: Choose a variant to serve
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/HTTP-Negotiate/
Source0: http://www.cpan.org/authors/id/G/GA/GAAS/HTTP-Negotiate-%{version}.tar.gz
BuildArch: noarch
BuildRequires: make
BuildRequires: perl
BuildRequires: perl-generators
BuildRequires: perl(:VERSION) >= 5.8.1
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(strict)
# Run-time:
BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(HTTP::Headers) >= 6
# Tests only:
BuildRequires: perl(Test)
BuildRequires: perl(HTTP::Request)
BuildRequires: perl(Test)
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(HTTP::Headers) >= 6
Conflicts: perl-libwww-perl < 6
@ -32,12 +36,11 @@ value of the various Accept* header fields in the request.
%setup -q -n HTTP-Negotiate-%{version}
%build
perl Makefile.PL INSTALLDIRS=vendor
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
make %{?_smp_mflags}
%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
%{_fixperms} %{buildroot}/*
%check
@ -49,6 +52,9 @@ make test
%{_mandir}/man3/*
%changelog
* Mon Jun 05 2017 Petr Pisar <ppisar@redhat.com> - 6.01-16
- Modernize spec file
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 6.01-15
- Perl 5.26 rebuild