From 3310059e6d74c146432b9033021daa6ed4aec69c Mon Sep 17 00:00:00 2001
From: Emmanuel Seyman <[email protected]>
Date: Wed, 17 Feb 2016 23:32:12 +0100
Subject: Modernize spec file
---
perl-MooseX-Iterator.spec | 34 +++++++++++++++++-----------------
1 file changed, 17 insertions(+), 17 deletions(-)
diff --git a/perl-MooseX-Iterator.spec b/perl-MooseX-Iterator.spec
index f08b522..55faff2 100644
--- a/perl-MooseX-Iterator.spec
+++ b/perl-MooseX-Iterator.spec
@@ -1,12 +1,12 @@
Name: perl-MooseX-Iterator
Version: 0.11
-Release: 18%{?dist}
+Release: 19%{?dist}
Summary: Iterate over collections
License: GPL+ or Artistic
-Group: Development/Libraries
+
URL: http://search.cpan.org/dist/MooseX-Iterator/
Source0:
http://search.cpan.org/CPAN/authors/id/R/RL/RLB/MooseX-Iterator-%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
BuildArch: noarch
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(inc::Module::Install)
@@ -14,6 +14,8 @@ BuildRequires: perl(Moose) >= 0.86
BuildRequires: perl(Test::More) >= 0.42
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo
$version))
+%{?perl_default_filter}
+
%description
This is an attempt to add smalltalk-like streams to Moose. It currently
works with ArrayRefs and HashRefs.
@@ -34,32 +36,30 @@ EOF
chmod +x %{__perl_requires}
%build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
make %{?_smp_mflags}
%install
-rm -rf $RPM_BUILD_ROOT
-
-make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
-
-find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
-find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
-
+make pure_install DESTDIR=$RPM_BUILD_ROOT
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
-%clean
-rm -rf $RPM_BUILD_ROOT
-
%files
-%defattr(-,root,root,-)
%doc
-%{perl_vendorlib}/*
-%{_mandir}/man3/*
+%{perl_vendorlib}/Moose*
+%{_mandir}/man3/Moose*
%changelog
+* Wed Feb 17 2016 Emmanuel Seyman <[email protected]> - 0.11-19
+- Drop Group and BuildRoot
+- Use perl default filter
+- Pass NO_PACKLIST to Makefile.PL
+- Use DESTDIR instead of PERL_INSTALL_ROOT
+- Drop %%defattr macro
+- Tighten file listing
+
* Thu Feb 04 2016 Fedora Release Engineering <[email protected]> -
0.11-18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
--
cgit v0.12
http://pkgs.fedoraproject.org/cgit/perl-MooseX-Iterator.git/commit/?h=master&id=3310059e6d74c146432b9033021daa6ed4aec69c
--
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]