8
0

Accepting request 528476 from devel:languages:perl

- add no-dot-inc.patch to compile with perl 5.26
  (https://rt.cpan.org/Public/Bug/Display.html?id=121664)

OBS-URL: https://build.opensuse.org/request/show/528476
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Unicode-Collate?expand=0&rev=2
This commit is contained in:
2017-10-02 14:42:52 +00:00
committed by Git OBS Bridge
4 changed files with 25 additions and 5 deletions

View File

@@ -4,9 +4,8 @@
#sources: #sources:
# - source1 # - source1
# - source2 # - source2
#patches: patches:
# foo.patch: -p1 no-dot-inc.patch: -p1
# bar.patch:
#preamble: |- #preamble: |-
# BuildRequires: gcc-c++ # BuildRequires: gcc-c++
#post_prep: |- #post_prep: |-

13
no-dot-inc.patch Normal file
View File

@@ -0,0 +1,13 @@
Index: Unicode-Collate-1.19/Makefile.PL
===================================================================
--- Unicode-Collate-1.19.orig/Makefile.PL
+++ Unicode-Collate-1.19/Makefile.PL
@@ -6,7 +6,7 @@ my $clean = {};
if (-f "Collate.xs") {
print "Making header files for XS...\n";
- do 'mkheader' or die $@ || "mkheader: $!";
+ do './mkheader' or die $@ || "mkheader: $!";
$clean = { FILES => 'ucatbl.h' };
}

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sun Sep 24 06:55:18 UTC 2017 - coolo@suse.com
- add no-dot-inc.patch to compile with perl 5.26
(https://rt.cpan.org/Public/Bug/Display.html?id=121664)
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Dec 3 07:23:47 UTC 2016 - coolo@suse.com Sat Dec 3 07:23:47 UTC 2016 - coolo@suse.com

View File

@@ -1,7 +1,7 @@
# #
# spec file for package perl-Unicode-Collate # spec file for package perl-Unicode-Collate
# #
# 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -24,8 +24,9 @@ Summary: Unicode Collation Algorithm
License: Artistic-1.0 or GPL-1.0+ License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Unicode-Collate/ Url: http://search.cpan.org/dist/Unicode-Collate/
Source0: http://www.cpan.org/authors/id/S/SA/SADAHIRO/%{cpan_name}-%{version}.tar.gz Source0: https://cpan.metacpan.org/authors/id/S/SA/SADAHIRO/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml Source1: cpanspec.yml
Patch0: no-dot-inc.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl BuildRequires: perl
BuildRequires: perl-macros BuildRequires: perl-macros
@@ -37,6 +38,7 @@ UTS #10) - Unicode Collation Algorithm (a.k.a. UCA).
%prep %prep
%setup -q -n %{cpan_name}-%{version} %setup -q -n %{cpan_name}-%{version}
%patch0 -p1
%build %build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"