8
0

- 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:
Lars Vogdt
2017-07-20 18:07:33 +00:00
committed by Git OBS Bridge
parent f9c537b89c
commit cedda7ccdc
3 changed files with 18 additions and 3 deletions

View File

@@ -9,7 +9,12 @@
# bar.patch:
#preamble: |-
# BuildRequires: gcc-c++
#post_prep: |-
post_prep: |-
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
# 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: |-

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jul 20 18:06:54 UTC 2017 - lars@linux-schulserver.de
- do not use local perl and libs: use system binaries and libs instead
-------------------------------------------------------------------
Sun Nov 27 06:38:43 UTC 2016 - coolo@suse.com

View File

@@ -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}"