8
0

Accepting request 530683 from devel:languages:perl:tobefixed

- patch the Makefile to build with perl 5.26

OBS-URL: https://build.opensuse.org/request/show/530683
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Data-Random?expand=0&rev=10
This commit is contained in:
Stephan Kulow
2017-10-03 07:26:48 +00:00
committed by Git OBS Bridge
parent b8d682ca8f
commit 0d326417e8
3 changed files with 13 additions and 22 deletions

View File

@@ -1,20 +1,3 @@
--- ---
#description_paragraphs: 3 post_prep:
#no_testing: broken upstream sed -i -e 's/use inc::Module::Install;/use lib q[.];\nuse inc::Module::Install;/' Makefile.PL
#sources:
# - source1
# - source2
#patches:
# foo.patch: -p1
# bar.patch:
#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_install: |-
# sed on %{name}.files
#license: SUSE-NonFree
#skip_noarch: 1
#custom_build: -
#./Build build flags=%{?_smp_mflags} --myflag

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Oct 3 07:23:24 UTC 2017 - coolo@suse.com
- patch the Makefile to build with perl 5.26
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Jun 7 08:24:07 UTC 2015 - coolo@suse.com Sun Jun 7 08:24:07 UTC 2015 - coolo@suse.com

View File

@@ -1,7 +1,7 @@
# #
# spec file for package perl-Data-Random # spec file for package perl-Data-Random
# #
# Copyright (c) 2015 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,7 +24,7 @@ Summary: Perl module to generate random data
License: GPL-1.0+ or Artistic-1.0 License: GPL-1.0+ or Artistic-1.0
Group: Development/Libraries/Perl Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Data-Random/ Url: http://search.cpan.org/dist/Data-Random/
Source0: http://www.cpan.org/authors/id/B/BA/BAREFOOT/%{cpan_name}-%{version}.tar.gz Source0: https://cpan.metacpan.org/authors/id/B/BA/BAREFOOT/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml Source1: cpanspec.yml
BuildArch: noarch BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -37,7 +37,10 @@ A module used to generate random data. Useful mostly for test programs.
%prep %prep
%setup -q -n %{cpan_name}-%{version} %setup -q -n %{cpan_name}-%{version}
find . -type f -print0 | xargs -0 chmod 644 find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
# MANUAL BEGIN
sed -i -e 's/use inc::Module::Install;/use lib q[.];\nuse inc::Module::Install;/' Makefile.PL
# MANUAL END
%build %build
%{__perl} Makefile.PL INSTALLDIRS=vendor %{__perl} Makefile.PL INSTALLDIRS=vendor