forked from pool/perl-JSON-Parse
- do not use local perl and libs: use system binaries and libs instead
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-JSON-Parse?expand=0&rev=20
This commit is contained in:
committed by
Git OBS Bridge
parent
f9c537b89c
commit
cedda7ccdc
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-JSON-Parse
|
||||
#
|
||||
# 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
|
||||
@@ -52,6 +52,11 @@ Unicode.
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
|
||||
for file in $(find . -type f); do
|
||||
sed -i "s|/home/ben/software/install/bin/perl|%{_bindir}/perl|g; \
|
||||
s|/home/ben/projects/Json3/blib/lib|%{perl_vendorarch}|g; \
|
||||
s|use lib '/home/ben/projects/Json3/blib/arch';||g;" "$file"
|
||||
done
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
||||
|
Reference in New Issue
Block a user