[perl-Carp-Fix-1_25] Initial import (perl-Carp-Fix-1_25-1.000001-2)

Paul Howarth pghmcfc at fedoraproject.org
Thu Aug 22 18:34:22 UTC 2013


commit 2c4bf77814e23ba32361de1c0ba38294695d3f9f
Author: Paul Howarth <paul at city-fan.org>
Date:   Thu Aug 22 19:21:08 2013 +0100

    Initial import (perl-Carp-Fix-1_25-1.000001-2)
    
    Carp 1.25 made a change to its formatting, adding a period at the end of the
    message. This can mess up tests and code that are looking for error messages.
    Carp::Fix::1_25 makes the message consistent, regardless of what version of
    Carp you're using.
    
    Carp::Fix::1_25 exports its own carp functions, which change the Carp message
    to match the 1.25 version. Carp::Fix::1_25 otherwise acts exactly like Carp and
    it will honor Carp global variables such as @CARP_NOT and %Carp::Internal.
    
    Why do this instead of just upgrading Carp? Upgrading Carp would affect all
    installed code all at once. You might not be ready for that, or you might not
    want your module to foist that on its users. This lets you fix things one
    namespace at a time.

 .gitignore              |    1 +
 perl-Carp-Fix-1_25.spec |   63 +++++++++++++++++++++++++++++++++++++++++++++++
 sources                 |    1 +
 3 files changed, 65 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..e9eb31f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Carp-Fix-1_25-[0-9.]*.tar.gz
diff --git a/perl-Carp-Fix-1_25.spec b/perl-Carp-Fix-1_25.spec
new file mode 100644
index 0000000..3c737a1
--- /dev/null
+++ b/perl-Carp-Fix-1_25.spec
@@ -0,0 +1,63 @@
+Name:		perl-Carp-Fix-1_25
+Version:	1.000001
+Release:	2%{?dist}
+Summary:	Smooth over incompatible changes in Carp 1.25
+License:	GPL+ or Artistic
+Group:		Development/Libraries
+URL:		https://metacpan.org/release/Carp-Fix-1_25
+Source0:	http://cpan.metacpan.org/authors/id/M/MS/MSCHWERN/Carp-Fix-1_25-%{version}.tar.gz
+BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
+BuildArch:	noarch
+BuildRequires:	perl(Carp)
+BuildRequires:	perl(Exporter)
+BuildRequires:	perl(lib)
+BuildRequires:	perl(Module::Build)
+BuildRequires:	perl(strict)
+BuildRequires:	perl(Test::More)
+BuildRequires:	perl(warnings)
+Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+
+%description
+Carp 1.25 made a change to its formatting, adding a period at the end of the
+message. This can mess up tests and code that are looking for error messages.
+Carp::Fix::1_25 makes the message consistent, regardless of what version of
+Carp you're using.
+
+Carp::Fix::1_25 exports its own carp functions, which change the Carp message
+to match the 1.25 version. Carp::Fix::1_25 otherwise acts exactly like Carp and
+it will honor Carp global variables such as @CARP_NOT and %%Carp::Internal.
+
+Why do this instead of just upgrading Carp? Upgrading Carp would affect all
+installed code all at once. You might not be ready for that, or you might not
+want your module to foist that on its users. This lets you fix things one
+namespace at a time.
+
+%prep
+%setup -q -n Carp-Fix-1_25-%{version}
+
+%build
+perl Build.PL installdirs=vendor
+./Build
+
+%install
+rm -rf %{buildroot}
+./Build install destdir=%{buildroot} create_packlist=0
+%{_fixperms} %{buildroot}
+
+%check
+./Build test
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%doc Changes LICENSE README
+%{perl_vendorlib}/Carp/
+%{_mandir}/man3/Carp::Fix::1_25.3pm*
+
+%changelog
+* Mon Aug 19 2013 Paul Howarth <paul at city-fan.org> - 1.000001-2
+- Sanitize for Fedora submission
+
+* Thu Aug 15 2013 Paul Howarth <paul at city-fan.org> - 1.000001-1
+- Initial RPM version
diff --git a/sources b/sources
index e69de29..02d1ac1 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+7cd8279b4251a4d3694e0a08f08030cb  Carp-Fix-1_25-1.000001.tar.gz



More information about the perl-devel mailing list