[perl-Moose/f14/master] apply upstream fix for RHBZ #658453
by Iain Arnell
commit add61beb29a082cd1f530f117be5ca5082c84a6a
Author: Iain Arnell <iarnell(a)gmail.com>
Date: Wed Dec 1 18:30:17 2010 +0100
apply upstream fix for RHBZ #658453
...ug-that-is-probably-a-bug-in-List-MoreUti.patch | 35 ++++++++++++++++++++
perl-Moose.spec | 7 +++-
2 files changed, 41 insertions(+), 1 deletions(-)
---
diff --git a/0001-Fix-weird-bug-that-is-probably-a-bug-in-List-MoreUti.patch b/0001-Fix-weird-bug-that-is-probably-a-bug-in-List-MoreUti.patch
new file mode 100644
index 0000000..562e140
--- /dev/null
+++ b/0001-Fix-weird-bug-that-is-probably-a-bug-in-List-MoreUti.patch
@@ -0,0 +1,35 @@
+From f1fc0e095eeb517241d64511892f2c9a5f805b56 Mon Sep 17 00:00:00 2001
+From: Dave Rolsky <autarch(a)urth.org>
+Date: Tue, 14 Sep 2010 11:18:09 -0500
+Subject: [PATCH] Fix weird bug that is probably a bug in List::MoreUtils
+
+---
+ lib/Moose/Meta/TypeConstraint/Union.pm | 5 +++--
+ 1 files changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/lib/Moose/Meta/TypeConstraint/Union.pm b/lib/Moose/Meta/TypeConstraint/Union.pm
+index 8136d04..0af99a3 100644
+--- a/lib/Moose/Meta/TypeConstraint/Union.pm
++++ b/lib/Moose/Meta/TypeConstraint/Union.pm
+@@ -7,7 +7,6 @@ use metaclass;
+
+ use Moose::Meta::TypeCoercion::Union;
+
+-use List::MoreUtils qw(any);
+ use List::Util qw(first);
+
+ our $VERSION = '1.12';
+@@ -46,7 +45,9 @@ sub coercion {
+
+ return $self->{coercion} if exists $self->{coercion};
+
+- if ( any { $_->has_coercion } @{ $self->type_constraints } ) {
++ # Using any instead of grep here causes a weird error with some corner
++ # cases when MX::Types is in use. See RT #61001.
++ if ( grep { $_->has_coercion } @{ $self->type_constraints } ) {
+ return $self->{coercion} = Moose::Meta::TypeCoercion::Union->new(
+ type_constraint => $self );
+ }
+--
+1.7.2.3
+
diff --git a/perl-Moose.spec b/perl-Moose.spec
index 6ffe128..cf3a458 100644
--- a/perl-Moose.spec
+++ b/perl-Moose.spec
@@ -1,10 +1,11 @@
Name: perl-Moose
Summary: Complete modern object system for Perl 5
Version: 1.12
-Release: 1%{?dist}
+Release: 2%{?dist}
License: GPL+ or Artistic
Group: Development/Libraries
Source0: http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Moose-%{version}.tar.gz
+Patch0: 0001-Fix-weird-bug-that-is-probably-a-bug-in-List-MoreUti.patch
URL: http://search.cpan.org/dist/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
@@ -78,6 +79,7 @@ very welcome.
%prep
%setup -q -n Moose-%{version}
+%patch0 -p 1
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
@@ -115,6 +117,9 @@ rm -rf %{buildroot}
%{_mandir}/man3/Test::Moose*
%changelog
+* Wed Dec 01 2010 Iain Arnell <iarnell(a)gmail.com> 1.12-2
+- apply upstream fix for RHBZ #658453
+
* Sat Nov 13 2010 Iain Arnell <iarnell(a)gmail.com> 1.12-1
- update to 1.12
13 years, 4 months
[perl-CGI] Obsoleted -test sub-package, which would be needed also in perl-core
by Marcela Mašláňová
commit 23c3507914dcf95ff2948d7af3eb0cc02ea2a2e5
Author: Marcela Mašláňová <mmaslano(a)redhat.com>
Date: Wed Dec 1 15:10:24 2010 +0100
Obsoleted -test sub-package, which would be needed also in perl-core
perl-CGI.spec | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/perl-CGI.spec b/perl-CGI.spec
index ccd2af5..de0b3d2 100644
--- a/perl-CGI.spec
+++ b/perl-CGI.spec
@@ -1,7 +1,7 @@
Name: perl-CGI
Summary: Handle Common Gateway Interface requests and responses
Version: 3.50
-Release: 1%{?dist}
+Release: 2%{?dist}
License: GPL+ or Artistic
Group: Development/Libraries
Source0: http://search.cpan.org/CPAN/authors/id/L/LD/LDS/CGI.pm-%{version}.tar.gz
@@ -14,9 +14,9 @@ BuildRequires: perl(File::Spec) >= 0.82
BuildRequires: perl(FCGI) >= 0.67
# test
BuildRequires: perl(Test::More) >= 0.80
+Obsoletes: %{name}-tests
%{?perl_default_filter}
-%{?perl_default_subpackage_tests}
%description
CGI.pm is a stable, complete and mature solution for processing and preparing
@@ -67,6 +67,9 @@ rm -rf %{buildroot}
%{_mandir}/man3/*.3*
%changelog
+* Mon Nov 29 2010 Marcela Mašláňová <mmaslano(a)redhat.com> 3.50-2
+- remove -test sub-package, which would be needed also in perl-core
+
* Mon Nov 29 2010 Marcela Mašláňová <mmaslano(a)redhat.com> 3.50-1
- initial dual-life package
13 years, 4 months
[perl-CGI] Initial push of CGI
by Marcela Mašláňová
commit d4d47c9a85a267906f451b5e80fb7104cb3899e1
Author: Marcela Mašláňová <mmaslano(a)redhat.com>
Date: Wed Dec 1 12:43:17 2010 +0100
Initial push of CGI
.gitignore | 1 +
perl-CGI.spec | 72 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 74 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..3860bb8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/CGI.pm-3.50.tar.gz
diff --git a/perl-CGI.spec b/perl-CGI.spec
new file mode 100644
index 0000000..ccd2af5
--- /dev/null
+++ b/perl-CGI.spec
@@ -0,0 +1,72 @@
+Name: perl-CGI
+Summary: Handle Common Gateway Interface requests and responses
+Version: 3.50
+Release: 1%{?dist}
+License: GPL+ or Artistic
+Group: Development/Libraries
+Source0: http://search.cpan.org/CPAN/authors/id/L/LD/LDS/CGI.pm-%{version}.tar.gz
+URL: http://search.cpan.org/dist/CGI
+Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+BuildArch: noarch
+
+BuildRequires: perl(ExtUtils::MakeMaker)
+BuildRequires: perl(File::Spec) >= 0.82
+BuildRequires: perl(FCGI) >= 0.67
+# test
+BuildRequires: perl(Test::More) >= 0.80
+
+%{?perl_default_filter}
+%{?perl_default_subpackage_tests}
+
+%description
+CGI.pm is a stable, complete and mature solution for processing and preparing
+HTTP requests and responses. Major features including processing form
+submissions, file uploads, reading and writing cookies, query string generation
+and manipulation, and processing and preparing HTTP headers. Some HTML
+generation utilities are included as well.
+
+CGI.pm performs very well in in a vanilla CGI.pm environment and also comes
+with built-in support for mod_perl and mod_perl2 as well as FastCGI.
+
+%prep
+%setup -q -n CGI.pm-%{version}
+
+%{?filter_setup:
+%filter_from_provides /^perl(Fh)$/d
+%filter_from_provides /^perl(MultipartBuffer)$/d
+%filter_from_provides /^perl(utf8)$/d
+%filter_setup
+}
+
+iconv -f iso8859-1 -t utf-8 < Changes > Changes.1
+mv Changes.1 Changes
+sed -i 's?usr/bin perl?usr/bin/perl?' t/init.t
+
+%build
+%{__perl} Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
+
+%install
+make pure_install DESTDIR=%{buildroot}
+find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
+find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
+
+%{_fixperms} %{buildroot}/*
+
+%check
+make test
+
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-,root,root,-)
+%doc README Changes
+%{perl_vendorlib}/*
+%{_mandir}/man3/*.3*
+
+%changelog
+* Mon Nov 29 2010 Marcela Mašláňová <mmaslano(a)redhat.com> 3.50-1
+- initial dual-life package
+
diff --git a/sources b/sources
index e69de29..9e50bbe 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+51d62c74b83e5b6a8b6f88b4e9334387 CGI.pm-3.50.tar.gz
13 years, 4 months