From aeb34177ccc6be30a99fa75a55e6833e5ea12943 Mon Sep 17 00:00:00 2001
From: Emmanuel Seyman <emman...@seyman.fr>
Date: Thu, 28 Jan 2016 18:39:15 +0100
Subject: Clean up spec file

---
 perl-JSON-Path.spec | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/perl-JSON-Path.spec b/perl-JSON-Path.spec
index 5d79c29..53467fc 100644
--- a/perl-JSON-Path.spec
+++ b/perl-JSON-Path.spec
@@ -1,6 +1,6 @@
 Name:           perl-JSON-Path
 Version:        0.205
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        Search nested hashref/arrayref structures using JSONPath
 
 License:        MIT
@@ -13,7 +13,7 @@ BuildRequires:  perl >= 1:5.8.0
 BuildRequires:  perl(common::sense)
 BuildRequires:  perl(Error)
 BuildRequires:  perl(Exporter::Tiny)
-BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
 BuildRequires:  perl(JSON)
 BuildRequires:  perl(LV)
 BuildRequires:  perl(Test::More) >= 0.61
@@ -39,16 +39,12 @@ like structures.
 
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
 make %{?_smp_mflags}
 
 
 %install
 make pure_install PERL_INSTALL_ROOT=%{buildroot}
-
-find %{buildroot} -type f -name .packlist -exec rm -f {} \;
-find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
-
 %{_fixperms} %{buildroot}/*
 
 
@@ -57,13 +53,17 @@ make test
 
 
 %files
-%defattr(-,root,root,-)
 %doc Changes README
-%{perl_vendorlib}/*
-%{_mandir}/man3/*
+%{perl_vendorlib}/JSON*
+%{_mandir}/man3/JSON*
 
 
 %changelog
+* Thu Jan 28 2016 Emmanuel Seyman <emman...@seyman.fr> - 0.205-4
+- Pass NO_PACKLIST to Makefile.PL
+- Remove %%defattr macro
+- Tighten file listing
+
 * Thu Jun 18 2015 Fedora Release Engineering <rel-...@lists.fedoraproject.org> 
- 0.205-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
 
-- 
cgit v0.11.2


        
http://pkgs.fedoraproject.org/cgit/perl-JSON-Path.git/commit/?h=master&id=aeb34177ccc6be30a99fa75a55e6833e5ea12943
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@lists.fedoraproject.org
http://lists.fedoraproject.org/admin/lists/perl-devel@lists.fedoraproject.org

Reply via email to