8
0

Accepting request 848622 from devel:languages:perl

OBS-URL: https://build.opensuse.org/request/show/848622
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Inline-Python?expand=0&rev=2
This commit is contained in:
2020-11-17 20:23:50 +00:00
committed by Git OBS Bridge
3 changed files with 21 additions and 11 deletions

View File

@@ -8,15 +8,19 @@
# foo.patch: -p1 # foo.patch: -p1
# bar.patch: # bar.patch:
preamble: |- preamble: |-
BuildRequires: python-devel BuildRequires: python3-devel
#post_prep: |- #post_prep: |-
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'` # hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL # sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
#post_install: |- #post_install: |-
# sed on %{name}.files # sed on %{name}.files
#license: SUSE-NonFree #license: SUSE-NonFree
#skip_noarch: 1 #skip_noarch: 1
#custom_build: |- custom_build: |-
export INLINE_PYTHON_EXECUTABLE=/usr/bin/python3
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
make %{?_smp_mflags}
#./Build build flags=%{?_smp_mflags} --myflag #./Build build flags=%{?_smp_mflags} --myflag
#custom_test: |- #custom_test: |-
#startserver && make test #startserver && make test

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Nov 13 20:42:04 UTC 2020 - Oliver Kurz <okurz@suse.com>
- Switch to python3 as python2 is considered obsolete
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Aug 5 05:45:00 UTC 2017 - coolo@suse.com Sat Aug 5 05:45:00 UTC 2017 - coolo@suse.com

View File

@@ -1,7 +1,7 @@
# #
# spec file for package perl-Inline-Python # spec file for package perl-Inline-Python
# #
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2020 SUSE LLC
# #
# 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
@@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
@@ -21,9 +21,9 @@ Version: 0.56
Release: 0 Release: 0
%define cpan_name Inline-Python %define cpan_name Inline-Python
Summary: Write Perl subs and classes in Python Summary: Write Perl subs and classes in Python
License: Artistic-1.0 or GPL-1.0+ License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Inline-Python/ URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/N/NI/NINE/%{cpan_name}-%{version}.tar.gz Source0: https://cpan.metacpan.org/authors/id/N/NI/NINE/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml Source1: cpanspec.yml
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -38,7 +38,7 @@ Requires: perl(Digest::MD5) >= 2.5
Requires: perl(Inline) >= 0.46 Requires: perl(Inline) >= 0.46
%{perl_requires} %{perl_requires}
# MANUAL BEGIN # MANUAL BEGIN
BuildRequires: python-devel BuildRequires: python3-devel
# MANUAL END # MANUAL END
%description %description
@@ -58,11 +58,12 @@ which gives you access to the Perl interpreter.
%setup -q -n %{cpan_name}-%{version} %setup -q -n %{cpan_name}-%{version}
%build %build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" export INLINE_PYTHON_EXECUTABLE=/usr/bin/python3
%{__make} %{?_smp_mflags} perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
make %{?_smp_mflags}
%check %check
%{__make} test make test
%install %install
%perl_make_install %perl_make_install