8
0
Files
perl-Inline-Python/perl-Inline-Python.spec
Dirk Stoecker cda19856d9 Accepting request 1080773 from devel:languages:perl:autoupdate
- updated to 0.57
   see /usr/share/doc/packages/perl-Inline-Python/Changes
  0.57 Sun  Sep 18 13:20:00 CEST 2022 (Stefan Seifert)
  	- Try to detect more object types.
  	- Further tighten the "is it a dict or object" check
  	- Also skip List and Tuple when checking for python object
  	- Unify "is this an object" checks into a macro to fix method calls on strange objects
  	- Define PY_MAJOR_VERSION automatically
  	- Search for and prefer python3 when building
  	- Pass ASCII strings as <class 'str'> in Python 3
  	- Fix segfault on Python 3.10 by calling Py_Initialize() before calling PyBytes_FromString()
  	- Process rss information not supported by Proc::ProcessTable on Windows

OBS-URL: https://build.opensuse.org/request/show/1080773
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Inline-Python?expand=0&rev=20
2023-04-20 12:40:55 +00:00

75 lines
2.5 KiB
RPMSpec

#
# spec file for package perl-Inline-Python
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define cpan_name Inline-Python
Name: perl-Inline-Python
Version: 0.57
Release: 0
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Write Perl subs and classes in 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
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Digest::MD5) >= 2.5
BuildRequires: perl(Inline) >= 0.46
BuildRequires: perl(Proc::ProcessTable) >= 0.53
BuildRequires: perl(Test::Deep)
BuildRequires: perl(Test::Number::Delta)
Requires: perl(Digest::MD5) >= 2.5
Requires: perl(Inline) >= 0.46
%{perl_requires}
# MANUAL BEGIN
BuildRequires: python3-devel
# MANUAL END
%description
The 'Inline::Python' module allows you to put Python source code directly
"inline" in a Perl script or module. It sets up an in-process Python
interpreter, runs your code, and then examines Python's symbol table for
things to bind to Perl. The process of interrogating the Python interpreter
for globals only occurs the first time you run your Python code. The
namespace is cached, and subsequent calls use the cached version.
This document describes 'Inline::Python', the Perl package which gives you
access to a Python interpreter. For lack of a better place to keep it, it
also gives you instructions on how to use 'perlmodule', the Python package
which gives you access to the Perl interpreter.
%prep
%autosetup -n %{cpan_name}-%{version}
%build
export INLINE_PYTHON_EXECUTABLE=/usr/bin/python3
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
make %{?_smp_mflags}
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%doc Changes README TESTED ToDo
%changelog