[packages/perl-WWW-Form-UrlEncoded] - up to 0.26; patch not needed - use BREAK_BACKWARD_COMPAT=1 instead

arekm arekm at pld-linux.org
Thu Nov 14 17:46:24 CET 2019


commit 45db858116b8cf528db5573a2171e99c8d2cf7c4
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Nov 14 17:45:59 2019 +0100

    - up to 0.26; patch not needed - use BREAK_BACKWARD_COMPAT=1 instead

 WWW-Form-UrlEncoded-0.23-arch.patch | 33 ---------------------------------
 perl-WWW-Form-UrlEncoded.spec       | 18 ++++++++----------
 2 files changed, 8 insertions(+), 43 deletions(-)
---
diff --git a/perl-WWW-Form-UrlEncoded.spec b/perl-WWW-Form-UrlEncoded.spec
index 2cbbcc4..cee6179 100644
--- a/perl-WWW-Form-UrlEncoded.spec
+++ b/perl-WWW-Form-UrlEncoded.spec
@@ -7,14 +7,13 @@
 %include	/usr/lib/rpm/macros.perl
 Summary:	WWW::Form::UrlEncoded - parser and builder for application/x-www-form-urlencoded
 Name:		perl-WWW-Form-UrlEncoded
-Version:	0.24
-Release:	2
+Version:	0.26
+Release:	1
 # 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
+# Source0-md5:	cbe0e1c3ee54738d900c739ea348efda
 URL:		http://search.cpan.org/dist/WWW-Form-UrlEncoded/
 BuildRequires:	perl-Module-Build
 BuildRequires:	perl-devel >= 1:5.8.0
@@ -37,20 +36,19 @@ WWW::Form::UrlEncoded parsed string in this rule.
 
 %prep
 %setup -q -n %{pdir}-%{pnam}-%{version}
-%patch0 -p1
 
 %build
 %{__perl} Build.PL \
-	destdir=$RPM_BUILD_ROOT \
-	installdirs=vendor
-./Build
+	--destdir=$RPM_BUILD_ROOT \
+	--installdirs=vendor
+BREAK_BACKWARD_COMPAT=1 ./Build
 
-%{?with_tests:./Build test}
+%{?with_tests:BREAK_BACKWARD_COMPAT=1 ./Build test}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-./Build install
+BREAK_BACKWARD_COMPAT=1 ./Build install
 
 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 cp -a eg $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
diff --git a/WWW-Form-UrlEncoded-0.23-arch.patch b/WWW-Form-UrlEncoded-0.23-arch.patch
deleted file mode 100644
index c49a801..0000000
--- a/WWW-Form-UrlEncoded-0.23-arch.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-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/45db858116b8cf528db5573a2171e99c8d2cf7c4



More information about the pld-cvs-commit mailing list