From 8d764777e3ea38980251c2f113fafe280d09cdc475bc268bef883269f56526ac Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Tue, 26 Sep 2017 06:21:47 +0000 Subject: [PATCH] - add perl526.patch to work with perl 5.26 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Unicode-Normalize?expand=0&rev=4 --- cpanspec.yml | 27 +++++++++++++++++++++++++++ perl-Unicode-Normalize.changes | 5 +++++ perl-Unicode-Normalize.spec | 10 +++++++--- perl526.patch | 13 +++++++++++++ 4 files changed, 52 insertions(+), 3 deletions(-) create mode 100644 cpanspec.yml create mode 100644 perl526.patch diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..50d72c6 --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,27 @@ +--- +#description_paragraphs: 3 +#description: |- +# override description from CPAN +#summary: override summary from CPAN +#no_testing: broken upstream +#sources: +# - source1 +# - source2 +patches: + perl526.patch: -p1 +#preamble: |- +# BuildRequires: gcc-c++ +#post_prep: |- +# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'` +# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL +#post_build: |- +# rm unused.files +#post_install: |- +# sed on %{name}.files +#license: SUSE-NonFree +#skip_noarch: 1 +#custom_build: |- +#./Build build flags=%{?_smp_mflags} --myflag +#custom_test: |- +#startserver && make test +#ignore_requires: Bizarre::Module diff --git a/perl-Unicode-Normalize.changes b/perl-Unicode-Normalize.changes index 018fb6c..4a967e7 100644 --- a/perl-Unicode-Normalize.changes +++ b/perl-Unicode-Normalize.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Sep 26 06:21:33 UTC 2017 - coolo@suse.com + +- add perl526.patch to work with perl 5.26 + ------------------------------------------------------------------- Fri Feb 26 09:48:18 UTC 2016 - mlin@suse.com diff --git a/perl-Unicode-Normalize.spec b/perl-Unicode-Normalize.spec index 15132bb..29de203 100644 --- a/perl-Unicode-Normalize.spec +++ b/perl-Unicode-Normalize.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Unicode-Normalize # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,7 +24,9 @@ Summary: Unicode Normalization Forms License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/Unicode-Normalize/ -Source0: http://www.cpan.org/authors/id/K/KH/KHW/%{cpan_name}-%{version}.tar.gz +Source0: https://cpan.metacpan.org/authors/id/K/KH/KHW/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml +Patch0: perl526.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros @@ -46,6 +48,7 @@ floating point nor a negative sign in '$code_point'. %prep %setup -q -n %{cpan_name}-%{version} +%patch0 -p1 %build %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" @@ -61,6 +64,7 @@ floating point nor a negative sign in '$code_point'. %files -f %{name}.files %defattr(-,root,root,755) -%doc Changes disableXS enableXS LICENSE MANIFEST.N mkheader Normalize.pmN README +%doc Changes disableXS enableXS MANIFEST.N mkheader Normalize.pmN README +%license LICENSE %changelog diff --git a/perl526.patch b/perl526.patch new file mode 100644 index 0000000..0cc6049 --- /dev/null +++ b/perl526.patch @@ -0,0 +1,13 @@ +Index: Unicode-Normalize-1.25/Makefile.PL +=================================================================== +--- Unicode-Normalize-1.25.orig/Makefile.PL ++++ Unicode-Normalize-1.25/Makefile.PL +@@ -8,7 +8,7 @@ my $mm_ver = ExtUtils::MakeMaker->VERSIO + if (-f "Normalize.xs") { + print STDERR "Making header files for XS...\n"; + +- do 'mkheader' or die $@ || "mkheader: $!"; ++ do './mkheader' or die $@ || "mkheader: $!"; + + $clean = { FILES => 'unfcan.h unfcmb.h unfcmp.h unfcpt.h unfexc.h' }; + }