[perl-B-Hooks-EndOfScope/el6] Update to 0.09

Paul Howarth pghmcfc at fedoraproject.org
Sun Mar 11 23:44:29 UTC 2012


commit 8b91e7988beeb51b9cde99b190342f7947ffe30a
Author: Paul Howarth <paul at city-fan.org>
Date:   Tue Jan 17 18:07:44 2012 +0000

    Update to 0.09
    
    - New upstream release 0.09:
      - Improve distribution metadata
    - Run release tests too
    - BR: perl(Pod::Coverage::TrustPod), perl(Test::Pod) and
      perl(Test::Pod::Coverage) for release tests
    - Spec clean-up:
      - Make %files list more explicit
      - Use DESTDIR rather than PERL_INSTALL_ROOT
      - Use tabs
      - Split buildreqs by Build/Module/Tests/Release tests

 .gitignore                   |    2 +-
 perl-B-Hooks-EndOfScope.spec |   67 +++++++++++++++++++++++++----------------
 sources                      |    2 +-
 3 files changed, 43 insertions(+), 28 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index dd4e4a1..37099a3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-B-Hooks-EndOfScope-0.08.tar.gz
+/B-Hooks-EndOfScope-[0-9.]*.tar.gz
diff --git a/perl-B-Hooks-EndOfScope.spec b/perl-B-Hooks-EndOfScope.spec
index cf41366..86181c5 100644
--- a/perl-B-Hooks-EndOfScope.spec
+++ b/perl-B-Hooks-EndOfScope.spec
@@ -1,20 +1,26 @@
-Name:       perl-B-Hooks-EndOfScope
-Version:    0.08
-Release:    2%{?dist}
-# see lib/B/Hooks/EndOfScope.pm
-License:    GPL+ or Artistic
-Group:      Development/Libraries
-Summary:    Execute code after scope compilation finishes
-Source:     http://search.cpan.org/CPAN/authors/id/F/FL/FLORA/B-Hooks-EndOfScope-%{version}.tar.gz
-Url:        http://search.cpan.org/dist/B-Hooks-EndOfScope
-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(Variable::Magic) >= 0.34
-BuildRequires: perl(Sub::Exporter)
-BuildRequires: perl(Test::More)
+Name:		perl-B-Hooks-EndOfScope
+Version:	0.09
+Release:	1%{?dist}
+License:	GPL+ or Artistic
+Group:		Development/Libraries
+Summary:	Execute code after scope compilation finishes
+Url:		http://search.cpan.org/dist/B-Hooks-EndOfScope
+Source:		http://search.cpan.org/CPAN/authors/id/F/FL/FLORA/B-Hooks-EndOfScope-%{version}.tar.gz
+BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
+BuildArch:	noarch
+# Build
+BuildRequires:	perl(ExtUtils::MakeMaker) >= 6.31
+# Module
+BuildRequires:	perl(Sub::Exporter)
+BuildRequires:	perl(Variable::Magic) >= 0.34
+# Test suite
+BuildRequires:	perl(Test::More)
+# Release tests
+BuildRequires:	perl(Pod::Coverage::TrustPod)
+BuildRequires:	perl(Test::Pod)
+BuildRequires:	perl(Test::Pod::Coverage)
+# Runtime
+Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 
 %description
 This module allows you to execute code when Perl has finished compiling the
@@ -24,20 +30,18 @@ surrounding scope.
 %setup -q -n B-Hooks-EndOfScope-%{version}
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+perl Makefile.PL INSTALLDIRS=vendor
 make %{?_smp_mflags}
 
 %install
 rm -rf %{buildroot}
-
-make pure_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}/*
+find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null
+%{_fixperms} %{buildroot}
 
 %check
-make test
+make test RELEASE_TESTING=1
 
 %clean
 rm -rf %{buildroot}
@@ -45,10 +49,21 @@ rm -rf %{buildroot}
 %files
 %defattr(-,root,root,-)
 %doc Changes README t/
-%{perl_vendorlib}/*
-%{_mandir}/man3/*.3*
+%{perl_vendorlib}/B/
+%{_mandir}/man3/B::Hooks::EndOfScope.3pm*
 
 %changelog
+* Tue Jan 17 2012 Paul Howarth <paul at city-fan.org> - 0.09-1
+- Update to 0.09 (improve distribution metadata)
+- Run release tests too
+- BR: perl(Pod::Coverage::TrustPod), perl(Test::Pod) and
+  perl(Test::Pod::Coverage) for release tests
+- Spec clean-up:
+  - Make %%files list more explicit
+  - Use DESTDIR rather than PERL_INSTALL_ROOT
+  - Use tabs
+  - Split buildreqs by Build/Module/Tests/Release tests
+
 * Sat Jul 25 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.08-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
 
diff --git a/sources b/sources
index 6857591..56e2c20 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-c770f55ce0205bcbb5824e4ec28431fd  B-Hooks-EndOfScope-0.08.tar.gz
+83d941d374d6718cdd5c2721c40f660f  B-Hooks-EndOfScope-0.09.tar.gz



More information about the perl-devel mailing list