[perl-MooseX-AttributeHelpers] clean up spec for modern rpmbuild

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit f69733bf0471a152a0846f8e6e4ded7b7ada7c87
Author: Iain Arnell <iarnell@xxxxxxxxx>
Date:   Mon Aug 5 12:43:09 2013 -0600

    clean up spec for modern rpmbuild

 perl-MooseX-AttributeHelpers.spec |   28 ++++++++--------------------
 1 files changed, 8 insertions(+), 20 deletions(-)
---
diff --git a/perl-MooseX-AttributeHelpers.spec b/perl-MooseX-AttributeHelpers.spec
index 6f0ff7e..d4c5e53 100644
--- a/perl-MooseX-AttributeHelpers.spec
+++ b/perl-MooseX-AttributeHelpers.spec
@@ -1,9 +1,8 @@
 Name:           perl-MooseX-AttributeHelpers
 Version:        0.23
-Release:        10%{?dist}
+Release:        11%{?dist}
 Summary:        Extended Moose attribute interfaces
 License:        GPL+ or Artistic
-Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/MooseX-AttributeHelpers/
 Source0:        http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/MooseX-AttributeHelpers-%{version}.tar.gz
 # Perl 5.18 compatibility, CPAN RT#81564
@@ -21,6 +20,8 @@ BuildRequires:  perl(Test::More)      >= 0.62
 ### auto-added reqs!
 Requires:  perl(Moose) >= 0.56
 
+%?perl_default_filter
+
 %description
 While Moose attributes provide you with a way to name your accessors,
 readers, writers, clearers and predicates, this library provides commonly
@@ -30,43 +31,30 @@ used attribute helper methods for more specific types of data.
 %setup -q -n MooseX-AttributeHelpers-%{version}
 %patch0 -p1
 
-# first filter out the bits in _docdir...
-cat << \EOF > %{name}-prov
-#!/bin/sh
-FOO=`perl -p -e 's|%{buildroot}%{_docdir}/%{name}-%{version}\S+||'`
-%{__perl_provides} $FOO
-EOF
-
-%define __perl_provides %{_builddir}/MooseX-AttributeHelpers-%{version}/%{name}-prov
-chmod +x %{__perl_provides}
-
 %build
 %{__perl} Makefile.PL INSTALLDIRS=vendor
 make %{?_smp_mflags}
 
 %install
-rm -rf %{buildroot}
-
-make install PERL_INSTALL_ROOT=%{buildroot}
+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}/*
 
 %check
 make test
 
-%clean
-rm -rf %{buildroot}
-
 %files
-%defattr(-,root,root,-)
 %doc ChangeLog README t/
 %{perl_vendorlib}/*
 %{_mandir}/man3/*
 
 %changelog
+* Mon Aug 05 2013 Iain Arnell <iarnell@xxxxxxxxx> 0.23-11
+- clean up spec for modern rpmbuild
+- modernize dependency filtering
+
 * Fri Aug 02 2013 Petr Pisar <ppisar@xxxxxxxxxx> - 0.23-10
 - Perl 5.18 rebuild
 - Perl 5.18 compatibility (CPAN RT#81564)
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel





[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux