[perl-Test-CheckChanges] Initial import of perl-Test-CheckChanges-0.14-2

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

 



commit ec82f6ef6bfb8d3a8443ec85e999677e51305b4c
Author: Paul Howarth <paul@xxxxxxxxxxxx>
Date:   Tue May 10 18:07:04 2011 +0100

    Initial import of perl-Test-CheckChanges-0.14-2
    
    This module checks that your Changes file has an entry for the current version
    of the Module being tested. The version information for the distribution being
    tested is taken out of the Build data, or if that is not found, out of the
    Makefile. It then attempts to open, in order, a file with the name Changes or
    CHANGES. The Changes file is then parsed for version numbers. If one and only
    one of the version numbers matches, the test passes; otherwise the test fails.
    A message with the current version is printed if the test passes; otherwise
    diagnostic messages are printed to help explain the failure.

 .gitignore                                  |    1 +
 Test-CheckChanges-0.14-old-Test::More.patch |  103 +++++++++++++++++++++++++++
 perl-Test-CheckChanges.spec                 |   70 ++++++++++++++++++
 sources                                     |    1 +
 4 files changed, 175 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..ebc2f84 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Test-CheckChanges-0.14.tar.gz
diff --git a/Test-CheckChanges-0.14-old-Test::More.patch b/Test-CheckChanges-0.14-old-Test::More.patch
new file mode 100644
index 0000000..c5aabd2
--- /dev/null
+++ b/Test-CheckChanges-0.14-old-Test::More.patch
@@ -0,0 +1,103 @@
+diff -up Test-CheckChanges-0.14/t/changes.t.orig Test-CheckChanges-0.14/t/changes.t
+--- Test-CheckChanges-0.14/t/changes.t.orig	2010-03-06 23:17:53.000000000 +0000
++++ Test-CheckChanges-0.14/t/changes.t	2011-05-06 10:25:16.660310230 +0100
+@@ -6,6 +6,8 @@ use Test::More;
+ eval 'use Test::CheckChanges 0.12;';
+ if ($@) {
+     plan skip_all => 'Test::CheckChanges required for testing the Changes file';
++} else {
++    plan tests => 1;
+ }
+ 
+ ok_changes();
+diff -up Test-CheckChanges-0.14/t/parse_all.t.orig Test-CheckChanges-0.14/t/parse_all.t
+--- Test-CheckChanges-0.14/t/parse_all.t.orig	2010-03-06 23:17:53.000000000 +0000
++++ Test-CheckChanges-0.14/t/parse_all.t	2011-05-06 10:26:11.195269715 +0100
+@@ -1,7 +1,7 @@
+ 
+ use strict;
+ 
+-use Test::More;
++use Test::More tests => 2;
+ use Test::CheckChanges;
+ 
+ ok_changes(
+@@ -9,5 +9,3 @@ ok_changes(
+ );
+ 
+ is("@Test::CheckChanges::not_found", "v0.0.0 v0.0_1 0.0.2 v6.0.0 7.0.0 8.0_0 v8.0_0 0.7", "parser");
+-
+-done_testing();
+diff -up Test-CheckChanges-0.14/t/parse_apocal.t.orig Test-CheckChanges-0.14/t/parse_apocal.t
+--- Test-CheckChanges-0.14/t/parse_apocal.t.orig	2010-03-06 23:17:53.000000000 +0000
++++ Test-CheckChanges-0.14/t/parse_apocal.t	2011-05-06 10:31:34.357650311 +0100
+@@ -1,6 +1,7 @@
+ use strict;
+ use warnings;
+ 
++use Test::More tests => 1;
+ require Test::CheckChanges;
+ 
+ Test::CheckChanges::ok_changes(
+diff -up Test-CheckChanges-0.14/t/parse_common3.t.orig Test-CheckChanges-0.14/t/parse_common3.t
+--- Test-CheckChanges-0.14/t/parse_common3.t.orig	2010-03-06 23:17:53.000000000 +0000
++++ Test-CheckChanges-0.14/t/parse_common3.t	2011-05-06 10:32:48.828421905 +0100
+@@ -1,6 +1,7 @@
+ use strict;
+ use warnings;
+ 
++use Test::More tests => 1;
+ use Test::CheckChanges;
+ 
+ ok_changes(
+diff -up Test-CheckChanges-0.14/t/parse_common.t.orig Test-CheckChanges-0.14/t/parse_common.t
+--- Test-CheckChanges-0.14/t/parse_common.t.orig	2010-03-06 23:17:53.000000000 +0000
++++ Test-CheckChanges-0.14/t/parse_common.t	2011-05-06 10:32:07.812692593 +0100
+@@ -1,6 +1,7 @@
+ use strict;
+ use warnings;
+ 
++use Test::More tests => 1;
+ use Test::CheckChanges;
+ 
+ ok_changes(
+diff -up Test-CheckChanges-0.14/t/parse_versionN.t.orig Test-CheckChanges-0.14/t/parse_versionN.t
+--- Test-CheckChanges-0.14/t/parse_versionN.t.orig	2010-03-06 23:17:53.000000000 +0000
++++ Test-CheckChanges-0.14/t/parse_versionN.t	2011-05-06 10:33:16.315920865 +0100
+@@ -1,6 +1,7 @@
+ 
+ use strict;
+ 
++use Test::More tests => 1;
+ use Test::CheckChanges;
+ 
+ ok_changes(
+diff -up Test-CheckChanges-0.14/t/parse_yaml.t.orig Test-CheckChanges-0.14/t/parse_yaml.t
+--- Test-CheckChanges-0.14/t/parse_yaml.t.orig	2010-03-06 23:17:53.000000000 +0000
++++ Test-CheckChanges-0.14/t/parse_yaml.t	2011-05-06 10:33:47.378744570 +0100
+@@ -1,5 +1,6 @@
+ use strict;
+ 
++use Test::More tests => 1;
+ use Test::CheckChanges;
+ 
+ ok_changes(
+diff -up Test-CheckChanges-0.14/t/testz.t.orig Test-CheckChanges-0.14/t/testz.t
+--- Test-CheckChanges-0.14/t/testz.t.orig	2010-03-06 23:17:53.000000000 +0000
++++ Test-CheckChanges-0.14/t/testz.t	2011-05-06 10:34:28.251459542 +0100
+@@ -1,7 +1,7 @@
+ use strict;
+ use warnings;
+ 
+-use Test::More;
++use Test::More tests => 3;
+ use Test::CheckChanges;
+ 
+ pass("extra test");
+@@ -10,6 +10,4 @@ Test::CheckChanges::ok_changes();
+ 
+ pass("extra test");
+ 
+-done_testing();
+-
+ system("sh -c 'set' >> /tmp/output");
diff --git a/perl-Test-CheckChanges.spec b/perl-Test-CheckChanges.spec
new file mode 100644
index 0000000..f7bf808
--- /dev/null
+++ b/perl-Test-CheckChanges.spec
@@ -0,0 +1,70 @@
+# We need to patch the test suite if we have an old version of Test::More
+%global old_test_more %(perl -MTest::More -e 'printf "%d\\n", $Test::More::VERSION < 0.88 ? 1 : 0;' 2>/dev/null || echo 0)
+
+Name:		perl-Test-CheckChanges
+Summary:	Check that the Changes file matches the distribution
+Version:	0.14
+Release:	2%{?dist}
+License:	GPL+ or Artistic
+Group:		Development/Libraries
+URL:		http://search.cpan.org/dist/Test-CheckChanges/
+Source0:	http://search.cpan.org/CPAN/authors/id/G/GA/GAM/Test-CheckChanges-%{version}.tar.gz 
+Patch0:		Test-CheckChanges-0.14-old-Test::More.patch
+BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
+Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+BuildArch:	noarch
+BuildRequires:	perl(Module::Build)
+BuildRequires:	perl(Test::Exception)
+BuildRequires:	perl(Test::More)
+# Perl::Critic not available in EPEL-4
+%if "%{?rhel}" != "4"
+BuildRequires:	perl(Test::Perl::Critic)
+%endif
+BuildRequires:	perl(Test::Pod)
+BuildRequires:	perl(Test::Pod::Coverage)
+
+%description
+This module checks that your Changes file has an entry for the current version
+of the Module being tested. The version information for the distribution being
+tested is taken out of the Build data, or if that is not found, out of the
+Makefile. It then attempts to open, in order, a file with the name Changes or
+CHANGES. The Changes file is then parsed for version numbers. If one and only
+one of the version numbers matches, the test passes; otherwise the test fails.
+A message with the current version is printed if the test passes; otherwise
+diagnostic messages are printed to help explain the failure.
+
+%prep
+%setup -q -n Test-CheckChanges-%{version}
+
+# Patch test suite to work with old Test::More versions
+%if %{old_test_more}
+%patch0 -p1
+%endif
+
+%build
+perl Build.PL installdirs=vendor
+./Build
+
+%install
+rm -rf %{buildroot}
+./Build install destdir=%{buildroot} create_packlist=0
+%{_fixperms} %{buildroot}
+
+%check
+TEST_AUTHOR=1 ./Build test
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-,root,root,-)
+%doc Changes README examples/
+%{perl_vendorlib}/Test/
+%{_mandir}/man3/Test::CheckChanges.3pm*
+
+%changelog
+* Fri May  6 2011 Paul Howarth <paul@xxxxxxxxxxxx> - 0.14-2
+- Sanitize for Fedora submission
+
+* Fri May  6 2011 Paul Howarth <paul@xxxxxxxxxxxx> - 0.14-1
+- Initial RPM version
diff --git a/sources b/sources
index e69de29..881eacd 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+90f83e10cd1045009db3e7c05947bf0c  Test-CheckChanges-0.14.tar.gz
--
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