From 5ca8c5641cac2bca166f5d9548e1dd4e51ebb8b9 Mon Sep 17 00:00:00 2001
From: Emmanuel Seyman <emman...@seyman.fr>
Date: Wed, 17 Feb 2016 23:43:56 +0100
Subject: Modernize spec file

---
 perl-MooseX-InsideOut.spec | 30 ++++++++++++++++--------------
 1 file changed, 16 insertions(+), 14 deletions(-)

diff --git a/perl-MooseX-InsideOut.spec b/perl-MooseX-InsideOut.spec
index 810c968..ef28df3 100644
--- a/perl-MooseX-InsideOut.spec
+++ b/perl-MooseX-InsideOut.spec
@@ -1,14 +1,14 @@
 Name:           perl-MooseX-InsideOut
 Version:        0.106
-Release:        13%{?dist}
+Release:        14%{?dist}
 Summary:        Inside-out objects with Moose
 License:        GPL+ or Artistic
-Group:          Development/Libraries
+
 URL:            http://search.cpan.org/dist/MooseX-InsideOut/
 Source0:        
http://www.cpan.org/authors/id/D/DO/DOY/MooseX-InsideOut-%{version}.tar.gz
 BuildArch:      noarch
 BuildRequires:  perl(Class::MOP) >= 0.80
-BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
 BuildRequires:  perl(Hash::Util::FieldHash::Compat)
 BuildRequires:  perl(Moose) >= 0.94
 BuildRequires:  perl(namespace::clean) >= 0.11
@@ -32,27 +32,29 @@ don't want to care about or aren't hash-based.
 %setup -q -n MooseX-InsideOut-%{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 {} \;
-find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
-
-%{_fixperms} %{buildroot}/*
+make pure_install DESTDIR=$RPM_BUILD_ROOT
+%{_fixperms} $RPM_BUILD_ROOT/*
 
 %check
 TEST_POD=1 make test
 
 %files
-%defattr(-,root,root,-)
-%doc Changes dist.ini LICENSE README
-%{perl_vendorlib}/*
-%{_mandir}/man3/*
+%doc Changes README
+%license LICENSE
+%{perl_vendorlib}/Moose*
+%{_mandir}/man3/Moose*
 
 %changelog
+* Wed Feb 17 2016 Emmanuel Seyman <emman...@seyman.fr> - 0.106-14
+- Drop unused tags
+- Pass NO_PACKLIST to Makefile.PL
+- Use %%license macro
+- Tighten file listing
+
 * Thu Feb 04 2016 Fedora Release Engineering <rel...@fedoraproject.org> - 
0.106-13
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
 
-- 
cgit v0.12


        
http://pkgs.fedoraproject.org/cgit/perl-MooseX-InsideOut.git/commit/?h=master&id=5ca8c5641cac2bca166f5d9548e1dd4e51ebb8b9
--
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