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'
epel9
Paul Howarth 11 years ago
parent 47b2311bcc
commit 033174a075

2
.gitignore vendored

@ -1 +1 @@
Test-Portability-Files-0.05.tar.gz
/Test-Portability-Files-[0-9.]*.tar.gz

@ -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;

@ -1,65 +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: 20%{?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
# Build
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30
# Runtime
BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(ExtUtils::Manifest)
BuildRequires: perl(File::Spec)
#BuildRequires: perl(Module::Build)
BuildRequires: perl(Test)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
# Test Suite
BuildRequires: perl(File::Temp)
BuildRequires: perl(Test::Builder)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Pod::Coverage)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
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@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 Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.05-20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

@ -1 +1 @@
2ede77af4d3b82ffb39cd28fda6857e5 Test-Portability-Files-0.05.tar.gz
f0911f546aab81d6bff82fd8d5877282 Test-Portability-Files-0.06.tar.gz

Loading…
Cancel
Save