forked from pool/perl-Data-Random
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:
committed by
Git OBS Bridge
parent
b8d682ca8f
commit
0d326417e8
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# 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
|
||||
# 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
|
||||
Group: Development/Libraries/Perl
|
||||
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
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
@@ -37,7 +37,10 @@ A module used to generate random data. Useful mostly for test programs.
|
||||
|
||||
%prep
|
||||
%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
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
|
Reference in New Issue
Block a user