forked from pool/perl-Unicode-Normalize
Accepting request 528720 from devel:languages:perl
for staging:C - add perl526.patch to work with perl 5.26 OBS-URL: https://build.opensuse.org/request/show/528720 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Unicode-Normalize?expand=0&rev=2
This commit is contained in:
27
cpanspec.yml
Normal file
27
cpanspec.yml
Normal file
@@ -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
|
@@ -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
|
||||
|
||||
|
@@ -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
|
||||
|
13
perl526.patch
Normal file
13
perl526.patch
Normal file
@@ -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' };
|
||||
}
|
Reference in New Issue
Block a user