[perl-Module-Info] Update to 0.33

Paul Howarth pghmcfc at fedoraproject.org
Sun Feb 10 17:21:17 UTC 2013


commit 26127d9af4b9afad2b0f530f01e8ef1d08872281
Author: Paul Howarth <paul at city-fan.org>
Date:   Sun Feb 10 17:20:12 2013 +0000

    Update to 0.33
    
    - New upstream release 0.33
      - Fix tests under Perl 5.6.2 when some core modules have been upgraded
    - Add provides filter that works with rpm ≥ 4.10
    - Simplify provides filter for rpm < 4.10
    - BR: perl(Carp), perl(Cwd), perl(File::Spec), perl(lib) and
      perl(Text::Soundex)
    - BR:/R: perl(Safe)
    - BR: at least version 1.00 of perl(Test::Pod) and perl(Test::Pod::Coverage)
    - Don't use macros for commands
    - Don't need to remove empty directories from the buildroot
    - Drop %defattr, redundant since rpm 4.4

 .gitignore                     |    3 +-
 Module-Info-filter-provides.sh |    3 --
 perl-Module-Info.spec          |   60 +++++++++++++++++++++++++--------------
 sources                        |    2 +-
 4 files changed, 40 insertions(+), 28 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 62faa62..1b30a20 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1 @@
-Module-Info-0.31.tar.gz
-/Module-Info-0.32.tar.gz
+/Module-Info-[0-9.]*.tar.gz
diff --git a/perl-Module-Info.spec b/perl-Module-Info.spec
index 6b94695..0e0b5f6 100644
--- a/perl-Module-Info.spec
+++ b/perl-Module-Info.spec
@@ -1,55 +1,58 @@
 Name:           perl-Module-Info
-Version:        0.32
-Release:        6%{?dist}
+Version:        0.33
+Release:        1%{?dist}
 Summary:        Information about Perl modules
 License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Module-Info/
 Source0:        http://www.cpan.org/authors/id/M/MB/MBARBON/Module-Info-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
 BuildArch:      noarch
+BuildRequires:  perl(Carp)
+BuildRequires:  perl(Cwd)
+BuildRequires:  perl(File::Spec)
+BuildRequires:  perl(lib)
 BuildRequires:  perl(Module::Build)
-BuildRequires:  perl(Test::Pod)
-BuildRequires:  perl(Test::Pod::Coverage)
+BuildRequires:  perl(Safe)
+BuildRequires:  perl(Test::Pod) >= 1.00
+BuildRequires:  perl(Test::Pod::Coverage) >= 1.00
+BuildRequires:  perl(Text::Soundex)
 BuildRequires:  perl(version)
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+Requires:       perl(Safe)
 Requires:       perl(version)
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 
-Source99:       Module-Info-filter-provides.sh
-%global real_perl_provides %{__perl_provides}
-%define __perl_provides %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u} -n)-filter-provides
+# We don't really provide perl(B::Utils)
+%global __provides_exclude ^perl\\(B::Utils\\)
 
 %description
-Module::Info gives you information about Perl modules without actually
-loading the module. It actually isn't specific to modules and should work
-on any perl code.
+Module::Info gives you information about Perl modules without actually loading
+the module. It isn't actually specific to modules and should work on any perl
+code.
 
 %prep
 %setup -q -n Module-Info-%{version}
 
-sed -e 's,@@PERL_PROV@@,%{real_perl_provides},' %{SOURCE99} > %{__perl_provides}
-chmod +x %{__perl_provides}
+# We don't really provide perl(B::Utils) [filter for rpm < 4.10]
+%global provfilt /bin/sh -c "%{__perl_provides} | grep -Ev '^perl\\(B::Utils\\)'"
+%define __perl_provides %{provfilt}
 
 %build
-%{__perl} Build.PL installdirs=vendor
+perl Build.PL installdirs=vendor
 ./Build
 
 %install
 rm -rf $RPM_BUILD_ROOT
-
 ./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
-find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
-
-%{_fixperms} $RPM_BUILD_ROOT/*
+%{_fixperms} $RPM_BUILD_ROOT
 
 %check
 ./Build test
 
 %clean
-rm -rf $RPM_BUILD_ROOT %{__perl_provides}
+rm -rf $RPM_BUILD_ROOT
 
 %files
-%defattr(-,root,root,-)
 %doc Changes
 %{_bindir}/*
 %{perl_vendorlib}/*
@@ -57,6 +60,19 @@ rm -rf $RPM_BUILD_ROOT %{__perl_provides}
 %{_mandir}/man3/*
 
 %changelog
+* Sun Feb 10 2013 Paul Howarth <paul at city-fan.org> - 0.33-1
+- Update to 0.33
+  - Fix tests under Perl 5.6.2 when some core modules have been upgraded
+- Add provides filter that works with rpm ≥ 4.10
+- Simplify provides filter for rpm < 4.10
+- BR: perl(Carp), perl(Cwd), perl(File::Spec), perl(lib) and
+  perl(Text::Soundex)
+- BR:/R: perl(Safe)
+- BR: at least version 1.00 of perl(Test::Pod) and perl(Test::Pod::Coverage)
+- Don't use macros for commands
+- Don't need to remove empty directories from the buildroot
+- Drop %%defattr, redundant since rpm 4.4
+
 * Fri Jul 20 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.32-6
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
 
@@ -76,7 +92,7 @@ rm -rf $RPM_BUILD_ROOT %{__perl_provides}
 - Update to 0.32.
 
 * Mon Dec 20 2010 Marcela Maslanova <mmaslano at redhat.com> - 0.31-9
-- 661697 rebuild for fixing problems with vendorach/lib
+- Rebuild to fix problems with vendorarch/lib (#661697)
 
 * Mon May 03 2010 Marcela Maslanova <mmaslano at redhat.com> - 0.31-8
 - Mass rebuild with perl-5.12.0
diff --git a/sources b/sources
index 84f5f2c..b8ba29a 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-6af6f7859d959eac9f85dda8896d2d51  Module-Info-0.32.tar.gz
+422824cc46ba6b571f2319ba1cf5f2f9  Module-Info-0.33.tar.gz


More information about the scm-commits mailing list