8
0

Accepting request 535096 from devel:languages:perl:autoupdate

automatic update

OBS-URL: https://build.opensuse.org/request/show/535096
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-JSON-Parse?expand=0&rev=21
This commit is contained in:
Stephan Kulow
2017-11-08 16:50:59 +00:00
committed by Git OBS Bridge
parent cedda7ccdc
commit e81431c525
4 changed files with 31 additions and 10 deletions

View File

@@ -17,14 +17,14 @@
Name: perl-JSON-Parse
Version: 0.49
Version: 0.53
Release: 0
%define cpan_name JSON-Parse
Summary: Read JSON into a Perl variable
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/JSON-Parse/
Source0: http://www.cpan.org/authors/id/B/BK/BKB/%{cpan_name}-%{version}.tar.gz
Source0: https://cpan.metacpan.org/authors/id/B/BK/BKB/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
@@ -52,11 +52,14 @@ 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
# MANUAL BEGIN
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'`
# MANUAL END
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"