From 4bc9e1da2c2478f17f703f57dffc432c82b12cd4 Mon Sep 17 00:00:00 2001
From: Emmanuel Seyman <[email protected]>
Date: Wed, 17 Feb 2016 23:50:48 +0100
Subject: Modernize spec file

---
 perl-MooseX-Emulate-Class-Accessor-Fast.spec | 39 ++++++++++++++--------------
 1 file changed, 20 insertions(+), 19 deletions(-)

diff --git a/perl-MooseX-Emulate-Class-Accessor-Fast.spec 
b/perl-MooseX-Emulate-Class-Accessor-Fast.spec
index fcab7b4..9c0585d 100644
--- a/perl-MooseX-Emulate-Class-Accessor-Fast.spec
+++ b/perl-MooseX-Emulate-Class-Accessor-Fast.spec
@@ -1,18 +1,17 @@
 Name:       perl-MooseX-Emulate-Class-Accessor-Fast
 Version:    0.00903
-Release:    17%{?dist}
+Release:    18%{?dist}
 # lib/MooseX/Adopt/Class/Accessor/Fast.pm -> GPL+ or Artistic
 # lib/MooseX/Emulate/Class/Accessor/Fast.pm -> GPL+ or Artistic
 License:    GPL+ or Artistic
-Group:      Development/Libraries
 Summary:    Emulate Class::Accessor::Fast behavior using Moose attributes
+
 Source:     
http://search.cpan.org/CPAN/authors/id/F/FL/FLORA/MooseX-Emulate-Class-Accessor-Fast-%{version}.tar.gz
 Url:        http://search.cpan.org/dist/MooseX-Emulate-Class-Accessor-Fast
-BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-Requires:   perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo 
$version))
+
 BuildArch:  noarch
 
-BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
+BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
 BuildRequires: perl(Moose)               >= 0.84
 BuildRequires: perl(Moose::Role)
 BuildRequires: perl(namespace::clean)
@@ -25,6 +24,10 @@ BuildRequires: perl(Class::Accessor::Fast)
 Requires:  perl(Moose) >= 0.84
 Requires:  perl(namespace::clean)
 
+Requires:   perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo 
$version))
+
+%{?perl_default_filter}
+
 %description
 This module attempts to emulate the behavior of Class::Accessor::Fast
 as accurately as possible using the Moose attribute system. The public
@@ -38,31 +41,29 @@ to a "with" line.
 %setup -q -n MooseX-Emulate-Class-Accessor-Fast-%{version}
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
 make %{?_smp_mflags}
 
 %install
-rm -rf %{buildroot}
-
-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}/*
+make pure_install DESTDIR=$RPM_BUILD_ROOT
+%{_fixperms} $RPM_BUILD_ROOT/*
 
 %check
 make test
 
-%clean
-rm -rf %{buildroot}
-
 %files
-%defattr(-,root,root,-)
 %doc README Changes
-%{perl_vendorlib}/*
-%{_mandir}/man3/*.3*
+%{perl_vendorlib}/Moose*
+%{_mandir}/man3/Moose*.3*
 
 %changelog
+* Wed Feb 17 2016 Emmanuel Seyman <[email protected]> - 0.00903-18
+- Drop no-longer-used tags
+- Use perl default filter
+- Pass NO_PACKLIST to Makefile.PL
+- Use DESTDIR instead of PERL_INSTALL_ROOT
+- Tighten file listing
+
 * Thu Feb 04 2016 Fedora Release Engineering <[email protected]> - 
0.00903-17
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
 
-- 
cgit v0.12


        
http://pkgs.fedoraproject.org/cgit/perl-MooseX-Emulate-Class-Accessor-Fast.git/commit/?h=master&id=4bc9e1da2c2478f17f703f57dffc432c82b12cd4
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
[email protected]
http://lists.fedoraproject.org/admin/lists/[email protected]

Reply via email to