forked from pool/perl-Inline-Python
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:
@@ -8,7 +8,7 @@
|
||||
# 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
|
||||
@@ -16,7 +16,11 @@ preamble: |-
|
||||
# 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
|
||||
|
@@ -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
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user