diff --git a/cpanspec.yml b/cpanspec.yml index 640e26c..4ed6a38 100644 --- a/cpanspec.yml +++ b/cpanspec.yml @@ -8,15 +8,19 @@ # foo.patch: -p1 # bar.patch: preamble: |- - BuildRequires: python-devel + BuildRequires: python3-devel #post_prep: |- # 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: |- # sed on %{name}.files #license: SUSE-NonFree #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 #custom_test: |- #startserver && make test diff --git a/perl-Inline-Python.changes b/perl-Inline-Python.changes index e9407bb..99c3d23 100644 --- a/perl-Inline-Python.changes +++ b/perl-Inline-Python.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Nov 13 20:42:04 UTC 2020 - Oliver Kurz + +- Switch to python3 as python2 is considered obsolete + ------------------------------------------------------------------- Sat Aug 5 05:45:00 UTC 2017 - coolo@suse.com diff --git a/perl-Inline-Python.spec b/perl-Inline-Python.spec index 568d9b3..80e142a 100644 --- a/perl-Inline-Python.spec +++ b/perl-Inline-Python.spec @@ -1,7 +1,7 @@ # # 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 # 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) # 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 %define cpan_name Inline-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 -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 Source1: cpanspec.yml BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -38,7 +38,7 @@ Requires: perl(Digest::MD5) >= 2.5 Requires: perl(Inline) >= 0.46 %{perl_requires} # MANUAL BEGIN -BuildRequires: python-devel +BuildRequires: python3-devel # MANUAL END %description @@ -58,11 +58,12 @@ which gives you access to the Perl interpreter. %setup -q -n %{cpan_name}-%{version} %build -%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" -%{__make} %{?_smp_mflags} +export INLINE_PYTHON_EXECUTABLE=/usr/bin/python3 +perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" +make %{?_smp_mflags} %check -%{__make} test +make test %install %perl_make_install