[perl-Test-Portability-Files/el6] Update to 0.06

Paul Howarth pghmcfc at fedoraproject.org
Tue Sep 24 10:02:05 UTC 2013


commit dbe2c6112bf421b55ebf776e9e324c7ac918f556
Author: Paul Howarth <paul at city-fan.org>
Date:   Tue Sep 24 10:16:41 2013 +0100

    Update to 0.06
    
    - New upstream release 0.06
      - Created git repository on github.com
      - Converted to Dist::Zilla
      - Fixed options cannot take a false value (CPAN RT#21631)
      - Disabled AmigaOS and Mac OS Classic tests by default because they are no
        longer supported by Perl itself (CPAN RT#12182)
      - Updated synopsis to show recommended author-only usage (CPAN RT#43948)
    - This release by ABRAXXA -> update source URL
    - LICENSE.Artistic and LICENSE.GPL no longer included upstream
    - Classify buildreqs by usage
    - Add test suite patch to retain EPEL-5 build compatibility
    - Drop %defattr, redundant since rpm 4.4
    - Make %files list more explicit
    - Don't use macros for commands
    - Don't need to remove empty directories from the buildroot
    - Use DESTDIR rather than PERL_INSTALL_ROOT
    - Use 'make pure_install' rather than 'make install'

 .gitignore                                       |    2 +-
 Test-Portability-Files-0.06-old-Test::More.patch |   55 +++++++++++++++
 perl-Test-Portability-Files.spec                 |   77 +++++++++++++++-------
 sources                                          |    2 +-
 4 files changed, 109 insertions(+), 27 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index d800cc3..3ced749 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-Test-Portability-Files-0.05.tar.gz
+/Test-Portability-Files-[0-9.]*.tar.gz
diff --git a/Test-Portability-Files-0.06-old-Test::More.patch b/Test-Portability-Files-0.06-old-Test::More.patch
new file mode 100644
index 0000000..34f9121
--- /dev/null
+++ b/Test-Portability-Files-0.06-old-Test::More.patch
@@ -0,0 +1,55 @@
+--- Makefile.PL
++++ Makefile.PL
+@@ -12,7 +12,7 @@ my %WriteMakefileArgs = (
+   "ABSTRACT" => "Check file names portability",
+   "AUTHOR" => "S\303\251bastien Aperghis-Tramoni <sebastien\@aperghis.net>, Alexander Hartmaier <abraxxa\@cpan.org>",
+   "BUILD_REQUIRES" => {
+-    "Test::More" => "0.98"
++    "Test::More" => "0.47"
+   },
+   "CONFIGURE_REQUIRES" => {
+     "ExtUtils::MakeMaker" => "6.30"
+--- t/01basic.t
++++ t/01basic.t
+@@ -1,5 +1,5 @@
+ use strict;
+-use Test::More;
++use Test::More tests => 3;
+ 
+ require Test::Portability::Files;
+ 
+@@ -7,5 +7,3 @@ require Test::Portability::Files;
+ ok( defined \&Test::Portability::Files::options               ); #01
+ ok( defined \&Test::Portability::Files::run_tests             ); #02
+ ok( defined \&Test::Portability::Files::test_name_portability ); #03
+-
+-done_testing;
+\ No newline at end of file
+--- t/release-cpan-changes.t
++++ t/release-cpan-changes.t
+@@ -8,8 +8,7 @@ BEGIN {
+ }
+ 
+ 
+-use Test::More;
++use Test::More;
+ eval 'use Test::CPAN::Changes';
+ plan skip_all => 'Test::CPAN::Changes required for this test' if $@;
+ changes_ok();
+-done_testing();
+--- t/release-test-version.t
++++ t/release-test-version.t
+@@ -8,7 +8,7 @@ BEGIN {
+ 
+ use strict;
+ use warnings;
+-use Test::More;
++use Test::More tests => 2;
+ 
+ # generated by Dist::Zilla::Plugin::Test::Version 0.002004
+ BEGIN { eval "use Test::Version; 1;" or die $@; }
+@@ -27,4 +27,3 @@ push @imports, $params
+ Test::Version->import(@imports);
+ 
+ version_all_ok;
+-done_testing;
diff --git a/perl-Test-Portability-Files.spec b/perl-Test-Portability-Files.spec
index 79c7674..69e7873 100644
--- a/perl-Test-Portability-Files.spec
+++ b/perl-Test-Portability-Files.spec
@@ -1,59 +1,86 @@
+# We need to patch the test suite if we have an old version of Test::More
+%global old_test_more %(perl -MTest::More -e 'print (($Test::More::VERSION < 0.88) ? 1 : 0);' 2>/dev/null || echo 0)
+
 Name:           perl-Test-Portability-Files
-Version:        0.05
-Release:        8%{?dist}
+Version:        0.06
+Release:        1%{?dist}
 Summary:        Check file names portability
 License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Test-Portability-Files/
-Source0:        http://www.cpan.org/authors/id/S/SA/SAPER/Test-Portability-Files-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Source0:        http://www.cpan.org/authors/id/A/AB/ABRAXXA/Test-Portability-Files-%{version}.tar.gz
+Patch1:         Test-Portability-Files-0.06-old-Test::More.patch
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
 BuildArch:      noarch
-BuildRequires:  perl(ExtUtils::MakeMaker)
-#BuildRequires:  perl(Module::Build)
-BuildRequires:  perl(Test::More)
-BuildRequires:  perl(Test::Pod), perl(Test::Pod::Coverage)
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+# Build
+BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.30
+# Runtime
+BuildRequires:  perl(Exporter)
+BuildRequires:  perl(ExtUtils::Manifest)
+BuildRequires:  perl(File::Spec)
+BuildRequires:  perl(strict)
+BuildRequires:  perl(warnings)
+# Test Suite
+BuildRequires:  perl(File::Temp)
+BuildRequires:  perl(Test::Builder)
+BuildRequires:  perl(Test::More) >= 0.47
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 
 %description
 This module is used to check the portability across operating systems of
 the names of the files present in the distribution of a module. The tests
-use the advices given in "Files and Filesystems" in perlport. The author of
+use the advice given in "Files and Filesystems" in perlport. The author of
 a distribution can select which tests to execute.
 
 %prep
 %setup -q -n Test-Portability-Files-%{version}
 
+# We need to patch the test suite if we have an old version of Test::More
+%if %{old_test_more}
+%patch1
+%endif
+
 %build
-#%{__perl} Build.PL installdirs=vendor
-%{__perl} Makefile.PL INSTALLDIRS=vendor
-#./Build
+perl Makefile.PL INSTALLDIRS=vendor
 make
 
 %install
 rm -rf $RPM_BUILD_ROOT
-
-#./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
-make install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
-
+make pure_install DESTDIR=$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 \;
-
-%{_fixperms} $RPM_BUILD_ROOT/*
+%{_fixperms} $RPM_BUILD_ROOT
 
 %check
-#./Build test
 make test
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
-%defattr(-,root,root,-)
-%doc Changes LICENSE LICENSE.Artistic LICENSE.GPL README
-%{perl_vendorlib}/*
-%{_mandir}/man3/*
+%doc Changes LICENSE README
+%{perl_vendorlib}/Test/
+%{_mandir}/man3/Test::Portability::Files.3pm*
 
 %changelog
+* Tue Sep 24 2013 Paul Howarth <paul at city-fan.org> - 0.06-1
+- Update to 0.06
+  - Created git repository on github.com
+  - Converted to Dist::Zilla
+  - Fixed options cannot take a false value (CPAN RT#21631)
+  - Disabled AmigaOS and Mac OS Classic tests by default because they are no
+    longer supported by Perl itself (CPAN RT#12182)
+  - Updated synopsis to show recommended author-only usage (CPAN RT#43948)
+- This release by ABRAXXA -> update source URL
+- LICENSE.Artistic and LICENSE.GPL no longer included upstream
+- Classify buildreqs by usage
+- Add test suite patch to retain EPEL-5 build compatibility
+- Drop %%defattr, redundant since rpm 4.4
+- Make %%files list more explicit
+- Don't use macros for commands
+- Don't need to remove empty directories from the buildroot
+- Use DESTDIR rather than PERL_INSTALL_ROOT
+- Use 'make pure_install' rather than 'make install'
+
 * Sun Jul 26 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.05-8
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
 
diff --git a/sources b/sources
index 6c38cd5..bb41f15 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-2ede77af4d3b82ffb39cd28fda6857e5  Test-Portability-Files-0.05.tar.gz
+f0911f546aab81d6bff82fd8d5877282  Test-Portability-Files-0.06.tar.gz



More information about the perl-devel mailing list