commit c9c77170cf3476a2404d9e7bef30f397b880ddb3 Author: Arkadiusz MiĆkiewicz <ar...@maven.pl> Date: Fri Mar 16 11:32:55 2018 +0100
- rel 2; make it true noarch (patch from fc) WWW-Form-UrlEncoded-0.23-arch.patch | 33 +++++++++++++++++++++++++++++++++ perl-WWW-Form-UrlEncoded.spec | 10 ++++++---- 2 files changed, 39 insertions(+), 4 deletions(-) --- diff --git a/perl-WWW-Form-UrlEncoded.spec b/perl-WWW-Form-UrlEncoded.spec index a16ec6f..2cbbcc4 100644 --- a/perl-WWW-Form-UrlEncoded.spec +++ b/perl-WWW-Form-UrlEncoded.spec @@ -8,12 +8,13 @@ Summary: WWW::Form::UrlEncoded - parser and builder for application/x-www-form-urlencoded Name: perl-WWW-Form-UrlEncoded Version: 0.24 -Release: 1 +Release: 2 # same as perl License: GPL v1+ or Artistic Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/WWW/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: f586b90fa142741728547dc2ea573f15 +Patch0: WWW-Form-UrlEncoded-0.23-arch.patch URL: http://search.cpan.org/dist/WWW-Form-UrlEncoded/ BuildRequires: perl-Module-Build BuildRequires: perl-devel >= 1:5.8.0 @@ -36,6 +37,7 @@ WWW::Form::UrlEncoded parsed string in this rule. %prep %setup -q -n %{pdir}-%{pnam}-%{version} +%patch0 -p1 %build %{__perl} Build.PL \ @@ -59,8 +61,8 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc Changes -%dir %{perl_vendorarch}/WWW/Form -%{perl_vendorarch}/WWW/Form/*.pm -%{perl_vendorarch}/WWW/Form/UrlEncoded +%dir %{perl_vendorlib}/WWW/Form +%{perl_vendorlib}/WWW/Form/*.pm +%{perl_vendorlib}/WWW/Form/UrlEncoded %{_mandir}/man3/WWW::Form::UrlEncoded*.3* %{_examplesdir}/%{name}-%{version} 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; ================================================================ ---- gitweb: http://git.pld-linux.org/gitweb.cgi/packages/perl-WWW-Form-UrlEncoded.git/commitdiff/c9c77170cf3476a2404d9e7bef30f397b880ddb3 _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit