From 9c4d1d6a47aa1dd71a3ab7f3ed99353efe217026 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ralf=20Cors=C3=A9pius?= <corse...@fedoraproject.org>
Date: Mon, 24 Oct 2016 15:19:06 +0200
Subject: Initial import

---
 .gitignore                          |  1 +
 WWW-Form-UrlEncoded-0.23-arch.patch | 33 +++++++++++++++++++
 perl-WWW-Form-UrlEncoded.spec       | 64 +++++++++++++++++++++++++++++++++++++
 sources                             |  1 +
 4 files changed, 99 insertions(+)
 create mode 100644 WWW-Form-UrlEncoded-0.23-arch.patch
 create mode 100644 perl-WWW-Form-UrlEncoded.spec

diff --git a/.gitignore b/.gitignore
index e69de29..84897ea 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/WWW-Form-UrlEncoded-0.23.tar.gz
diff --git a/WWW-Form-UrlEncoded-0.23-arch.patch 
b/WWW-Form-UrlEncoded-0.23-arch.patch
new file mode 100644
index 0000000..c49a801
--- /dev/null
+++ b/WWW-Form-UrlEncoded-0.23-arch.patch
@@ -0,0 +1,33 @@
+diff -Naur WWW-Form-UrlEncoded-0.23.orig/builder/MyBuilder.pm 
WWW-Form-UrlEncoded-0.23/builder/MyBuilder.pm
+--- WWW-Form-UrlEncoded-0.23.orig/builder/MyBuilder.pm 2015-11-19 
01:33:39.000000000 +0100
++++ WWW-Form-UrlEncoded-0.23/builder/MyBuilder.pm      2016-10-23 
17:35:54.448797502 +0200
+@@ -3,17 +3,17 @@
+ use strict;
+ use warnings;
+ use base qw(Module::Build);
+-use File::Spec;
+-use File::Path;
+-
+-sub ACTION_code {
+-    my $self = shift;
+-    $self->SUPER::ACTION_code();
+-    my $archdir = 
File::Spec->catdir($self->blib,'arch','auto','WWW','Form','UrlEncoded','XS');
+-    File::Path::mkpath($archdir, 0, oct(777)) unless -d $archdir;
+-    my $keep_arch = File::Spec->catfile($archdir,'.keep');
+-    open(my $fh,'>',$keep_arch) or die "Couldnot open file for write: 
$keep_arch, $!";
+-    print $fh "This file required to install files to archdir for backward 
compatibility\n";
+-}
++#use File::Spec;
++#use File::Path;
++#
++#sub ACTION_code {
++#    my $self = shift;
++#    $self->SUPER::ACTION_code();
++#    my $archdir = 
File::Spec->catdir($self->blib,'arch','auto','WWW','Form','UrlEncoded','XS');
++#    File::Path::mkpath($archdir, 0, oct(777)) unless -d $archdir;
++#    my $keep_arch = File::Spec->catfile($archdir,'.keep');
++#    open(my $fh,'>',$keep_arch) or die "Couldnot open file for write: 
$keep_arch, $!";
++#    print $fh "This file required to install files to archdir for backward 
compatibility\n";
++#}
+ 
+ 1;
diff --git a/perl-WWW-Form-UrlEncoded.spec b/perl-WWW-Form-UrlEncoded.spec
new file mode 100644
index 0000000..178a543
--- /dev/null
+++ b/perl-WWW-Form-UrlEncoded.spec
@@ -0,0 +1,64 @@
+Name:           perl-WWW-Form-UrlEncoded
+Version:        0.23
+Release:        2%{?dist}
+Summary:        Parser and builder for application/x-www-form-urlencoded
+License:        GPL+ or Artistic
+URL:            http://search.cpan.org/dist/WWW-Form-UrlEncoded/
+Source0:        
http://www.cpan.org/authors/id/K/KA/KAZEBURO/WWW-Form-UrlEncoded-%{version}.tar.gz
+
+# HACK: Do not install noarch files into arched dirs.
+Patch0:         WWW-Form-UrlEncoded-0.23-arch.patch
+
+BuildArch:      noarch
+
+BuildRequires:  perl-generators
+BuildRequires:  perl >= 0:5.008001
+
+BuildRequires:  perl(Exporter)
+BuildRequires:  perl(File::Basename)
+BuildRequires:  perl(File::Copy)
+BuildRequires:  perl(File::Spec)
+BuildRequires:  perl(JSON) >= 2
+BuildRequires:  perl(Module::Build) > 0.38
+BuildRequires:  perl(Test::More) >= 0.98
+
+BuildRequires:  perl(base)
+BuildRequires:  perl(bytes)
+BuildRequires:  perl(strict)
+BuildRequires:  perl(utf8)
+BuildRequires:  perl(warnings)
+
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo 
$version))
+
+%description
+WWW::Form::UrlEncoded provides application/x-www-form-urlencoded parser and
+builder. This module aims to have compatibility with other CPAN modules
+like HTTP::Body's urlencoded parser.
+
+%prep
+%setup -q -n WWW-Form-UrlEncoded-%{version}
+%patch0 -p1
+
+%build
+%{__perl} Build.PL --installdirs=vendor
+./Build
+
+%install
+./Build install --destdir=$RPM_BUILD_ROOT --create_packlist=0
+%{_fixperms} $RPM_BUILD_ROOT/*
+
+%check
+./Build test
+
+%files
+%doc Changes README.md
+%license LICENSE
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Sat Oct 22 2016 Ralf Corsépius <corse...@fedoraproject.org> - 0.23-2
+- Reflect feedback from review.
+
+* Sat Oct 08 2016 Ralf Corsépius <corse...@fedoraproject.org> - 0.23-1
+- Initial Fedora packages.
diff --git a/sources b/sources
index e69de29..a30e52b 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+d510bdf8645cc745135d5f300d2819f8  WWW-Form-UrlEncoded-0.23.tar.gz
-- 
cgit v0.12


        
http://pkgs.fedoraproject.org/cgit/perl-WWW-Form-UrlEncoded.git/commit/?h=f25&id=9c4d1d6a47aa1dd71a3ab7f3ed99353efe217026
_______________________________________________
perl-devel mailing list -- perl-devel@lists.fedoraproject.org
To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org

Reply via email to