From 936b43cbe86b51bb44bcdea22b1712070e932345 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <[email protected]>
Date: Mon, 5 Jun 2017 11:30:15 +0200
Subject: Modernize spec file

---
 perl-HTTP-Negotiate.spec | 18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)

diff --git a/perl-HTTP-Negotiate.spec b/perl-HTTP-Negotiate.spec
index e50523f..5e41de8 100644
--- a/perl-HTTP-Negotiate.spec
+++ b/perl-HTTP-Negotiate.spec
@@ -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 <[email protected]> - 6.01-16
+- Modernize spec file
+
 * Sun Jun 04 2017 Jitka Plesnikova <[email protected]> - 6.01-15
 - Perl 5.26 rebuild
 
-- 
cgit v1.1


        
https://src.fedoraproject.org/cgit/perl-HTTP-Negotiate.git/commit/?h=master&id=936b43cbe86b51bb44bcdea22b1712070e932345
_______________________________________________
perl-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to