8
0
Files
perl-Inline-Python/perl-Inline-Python.spec

75 lines
2.5 KiB
RPMSpec
Raw Normal View History

- updated to 0.39 - Added py_is_tuple and made Pl2Py recognize an array ref that has been a tuple before in Python. - Fixed memory corruption on a Python function calling a Perl function that changed the stack pointer. - Fixed several memory leaks (scalars and dict keys). - Fixed wrong refcount of return values in py_eval (RT #48081) - Fixed accessing Unicode keys in a dict passed from Perl. - Fixed compatability of t/30floats.t with Python 2.7. - Fix Perl assertion fail if __getitem__ called multiple times - Fix "Attempt to free unreferenced scalar" sometimes happening when calling a Perl sub with named parameters from Python. - Fix several memory leaks found using valgrind - Add py_finalize to be able to shut down the Python interpreter. - Added line numbers to Python exception messages. - Fixed passing of a perl code ref through Python space. - Allow passing references to methods from Python to Perl. - Implemented py_has_attr complementing py_get_attr. - We now support stringification of Python objects via __str__ methods. - Fixed segfault when accessing a Python object's attributes throws an exception. - Fixed some problems with the test suite, hopefully making installation work on more machines. - Fixed compilation on Win32, linking still seems broken though :( - Fixed a segfault when passing dicts with Unicode keys to Perl - Pass Python exceptions to Perl instead of just printing to STDERR OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Inline-Python?expand=0&rev=3
2011-04-22 18:29:15 +00:00
#
# spec file for package perl-Inline-Python
- updated to 0.39 - Added py_is_tuple and made Pl2Py recognize an array ref that has been a tuple before in Python. - Fixed memory corruption on a Python function calling a Perl function that changed the stack pointer. - Fixed several memory leaks (scalars and dict keys). - Fixed wrong refcount of return values in py_eval (RT #48081) - Fixed accessing Unicode keys in a dict passed from Perl. - Fixed compatability of t/30floats.t with Python 2.7. - Fix Perl assertion fail if __getitem__ called multiple times - Fix "Attempt to free unreferenced scalar" sometimes happening when calling a Perl sub with named parameters from Python. - Fix several memory leaks found using valgrind - Add py_finalize to be able to shut down the Python interpreter. - Added line numbers to Python exception messages. - Fixed passing of a perl code ref through Python space. - Allow passing references to methods from Python to Perl. - Implemented py_has_attr complementing py_get_attr. - We now support stringification of Python objects via __str__ methods. - Fixed segfault when accessing a Python object's attributes throws an exception. - Fixed some problems with the test suite, hopefully making installation work on more machines. - Fixed compilation on Win32, linking still seems broken though :( - Fixed a segfault when passing dicts with Unicode keys to Perl - Pass Python exceptions to Perl instead of just printing to STDERR OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Inline-Python?expand=0&rev=3
2011-04-22 18:29:15 +00:00
#
# Copyright (c) 2023 SUSE LLC
- updated to 0.39 - Added py_is_tuple and made Pl2Py recognize an array ref that has been a tuple before in Python. - Fixed memory corruption on a Python function calling a Perl function that changed the stack pointer. - Fixed several memory leaks (scalars and dict keys). - Fixed wrong refcount of return values in py_eval (RT #48081) - Fixed accessing Unicode keys in a dict passed from Perl. - Fixed compatability of t/30floats.t with Python 2.7. - Fix Perl assertion fail if __getitem__ called multiple times - Fix "Attempt to free unreferenced scalar" sometimes happening when calling a Perl sub with named parameters from Python. - Fix several memory leaks found using valgrind - Add py_finalize to be able to shut down the Python interpreter. - Added line numbers to Python exception messages. - Fixed passing of a perl code ref through Python space. - Allow passing references to methods from Python to Perl. - Implemented py_has_attr complementing py_get_attr. - We now support stringification of Python objects via __str__ methods. - Fixed segfault when accessing a Python object's attributes throws an exception. - Fixed some problems with the test suite, hopefully making installation work on more machines. - Fixed compilation on Win32, linking still seems broken though :( - Fixed a segfault when passing dicts with Unicode keys to Perl - Pass Python exceptions to Perl instead of just printing to STDERR OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Inline-Python?expand=0&rev=3
2011-04-22 18:29:15 +00:00
#
# 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/
- updated to 0.39 - Added py_is_tuple and made Pl2Py recognize an array ref that has been a tuple before in Python. - Fixed memory corruption on a Python function calling a Perl function that changed the stack pointer. - Fixed several memory leaks (scalars and dict keys). - Fixed wrong refcount of return values in py_eval (RT #48081) - Fixed accessing Unicode keys in a dict passed from Perl. - Fixed compatability of t/30floats.t with Python 2.7. - Fix Perl assertion fail if __getitem__ called multiple times - Fix "Attempt to free unreferenced scalar" sometimes happening when calling a Perl sub with named parameters from Python. - Fix several memory leaks found using valgrind - Add py_finalize to be able to shut down the Python interpreter. - Added line numbers to Python exception messages. - Fixed passing of a perl code ref through Python space. - Allow passing references to methods from Python to Perl. - Implemented py_has_attr complementing py_get_attr. - We now support stringification of Python objects via __str__ methods. - Fixed segfault when accessing a Python object's attributes throws an exception. - Fixed some problems with the test suite, hopefully making installation work on more machines. - Fixed compilation on Win32, linking still seems broken though :( - Fixed a segfault when passing dicts with Unicode keys to Perl - Pass Python exceptions to Perl instead of just printing to STDERR OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Inline-Python?expand=0&rev=3
2011-04-22 18:29:15 +00:00
#
%define cpan_name Inline-Python
- updated to 0.39 - Added py_is_tuple and made Pl2Py recognize an array ref that has been a tuple before in Python. - Fixed memory corruption on a Python function calling a Perl function that changed the stack pointer. - Fixed several memory leaks (scalars and dict keys). - Fixed wrong refcount of return values in py_eval (RT #48081) - Fixed accessing Unicode keys in a dict passed from Perl. - Fixed compatability of t/30floats.t with Python 2.7. - Fix Perl assertion fail if __getitem__ called multiple times - Fix "Attempt to free unreferenced scalar" sometimes happening when calling a Perl sub with named parameters from Python. - Fix several memory leaks found using valgrind - Add py_finalize to be able to shut down the Python interpreter. - Added line numbers to Python exception messages. - Fixed passing of a perl code ref through Python space. - Allow passing references to methods from Python to Perl. - Implemented py_has_attr complementing py_get_attr. - We now support stringification of Python objects via __str__ methods. - Fixed segfault when accessing a Python object's attributes throws an exception. - Fixed some problems with the test suite, hopefully making installation work on more machines. - Fixed compilation on Win32, linking still seems broken though :( - Fixed a segfault when passing dicts with Unicode keys to Perl - Pass Python exceptions to Perl instead of just printing to STDERR OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Inline-Python?expand=0&rev=3
2011-04-22 18:29:15 +00:00
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
- updated to 0.39 - Added py_is_tuple and made Pl2Py recognize an array ref that has been a tuple before in Python. - Fixed memory corruption on a Python function calling a Perl function that changed the stack pointer. - Fixed several memory leaks (scalars and dict keys). - Fixed wrong refcount of return values in py_eval (RT #48081) - Fixed accessing Unicode keys in a dict passed from Perl. - Fixed compatability of t/30floats.t with Python 2.7. - Fix Perl assertion fail if __getitem__ called multiple times - Fix "Attempt to free unreferenced scalar" sometimes happening when calling a Perl sub with named parameters from Python. - Fix several memory leaks found using valgrind - Add py_finalize to be able to shut down the Python interpreter. - Added line numbers to Python exception messages. - Fixed passing of a perl code ref through Python space. - Allow passing references to methods from Python to Perl. - Implemented py_has_attr complementing py_get_attr. - We now support stringification of Python objects via __str__ methods. - Fixed segfault when accessing a Python object's attributes throws an exception. - Fixed some problems with the test suite, hopefully making installation work on more machines. - Fixed compilation on Win32, linking still seems broken though :( - Fixed a segfault when passing dicts with Unicode keys to Perl - Pass Python exceptions to Perl instead of just printing to STDERR OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Inline-Python?expand=0&rev=3
2011-04-22 18:29:15 +00:00
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Digest::MD5) >= 2.5
- updated to 0.39 - Added py_is_tuple and made Pl2Py recognize an array ref that has been a tuple before in Python. - Fixed memory corruption on a Python function calling a Perl function that changed the stack pointer. - Fixed several memory leaks (scalars and dict keys). - Fixed wrong refcount of return values in py_eval (RT #48081) - Fixed accessing Unicode keys in a dict passed from Perl. - Fixed compatability of t/30floats.t with Python 2.7. - Fix Perl assertion fail if __getitem__ called multiple times - Fix "Attempt to free unreferenced scalar" sometimes happening when calling a Perl sub with named parameters from Python. - Fix several memory leaks found using valgrind - Add py_finalize to be able to shut down the Python interpreter. - Added line numbers to Python exception messages. - Fixed passing of a perl code ref through Python space. - Allow passing references to methods from Python to Perl. - Implemented py_has_attr complementing py_get_attr. - We now support stringification of Python objects via __str__ methods. - Fixed segfault when accessing a Python object's attributes throws an exception. - Fixed some problems with the test suite, hopefully making installation work on more machines. - Fixed compilation on Win32, linking still seems broken though :( - Fixed a segfault when passing dicts with Unicode keys to Perl - Pass Python exceptions to Perl instead of just printing to STDERR OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Inline-Python?expand=0&rev=3
2011-04-22 18:29:15 +00:00
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
- updated to 0.39 - Added py_is_tuple and made Pl2Py recognize an array ref that has been a tuple before in Python. - Fixed memory corruption on a Python function calling a Perl function that changed the stack pointer. - Fixed several memory leaks (scalars and dict keys). - Fixed wrong refcount of return values in py_eval (RT #48081) - Fixed accessing Unicode keys in a dict passed from Perl. - Fixed compatability of t/30floats.t with Python 2.7. - Fix Perl assertion fail if __getitem__ called multiple times - Fix "Attempt to free unreferenced scalar" sometimes happening when calling a Perl sub with named parameters from Python. - Fix several memory leaks found using valgrind - Add py_finalize to be able to shut down the Python interpreter. - Added line numbers to Python exception messages. - Fixed passing of a perl code ref through Python space. - Allow passing references to methods from Python to Perl. - Implemented py_has_attr complementing py_get_attr. - We now support stringification of Python objects via __str__ methods. - Fixed segfault when accessing a Python object's attributes throws an exception. - Fixed some problems with the test suite, hopefully making installation work on more machines. - Fixed compilation on Win32, linking still seems broken though :( - Fixed a segfault when passing dicts with Unicode keys to Perl - Pass Python exceptions to Perl instead of just printing to STDERR OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Inline-Python?expand=0&rev=3
2011-04-22 18:29:15 +00:00
Requires: perl(Inline) >= 0.46
%{perl_requires}
# MANUAL BEGIN
BuildRequires: python3-devel
# MANUAL END
%description
- updated to 0.39 - Added py_is_tuple and made Pl2Py recognize an array ref that has been a tuple before in Python. - Fixed memory corruption on a Python function calling a Perl function that changed the stack pointer. - Fixed several memory leaks (scalars and dict keys). - Fixed wrong refcount of return values in py_eval (RT #48081) - Fixed accessing Unicode keys in a dict passed from Perl. - Fixed compatability of t/30floats.t with Python 2.7. - Fix Perl assertion fail if __getitem__ called multiple times - Fix "Attempt to free unreferenced scalar" sometimes happening when calling a Perl sub with named parameters from Python. - Fix several memory leaks found using valgrind - Add py_finalize to be able to shut down the Python interpreter. - Added line numbers to Python exception messages. - Fixed passing of a perl code ref through Python space. - Allow passing references to methods from Python to Perl. - Implemented py_has_attr complementing py_get_attr. - We now support stringification of Python objects via __str__ methods. - Fixed segfault when accessing a Python object's attributes throws an exception. - Fixed some problems with the test suite, hopefully making installation work on more machines. - Fixed compilation on Win32, linking still seems broken though :( - Fixed a segfault when passing dicts with Unicode keys to Perl - Pass Python exceptions to Perl instead of just printing to STDERR OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Inline-Python?expand=0&rev=3
2011-04-22 18:29:15 +00:00
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
- updated to 0.39 - Added py_is_tuple and made Pl2Py recognize an array ref that has been a tuple before in Python. - Fixed memory corruption on a Python function calling a Perl function that changed the stack pointer. - Fixed several memory leaks (scalars and dict keys). - Fixed wrong refcount of return values in py_eval (RT #48081) - Fixed accessing Unicode keys in a dict passed from Perl. - Fixed compatability of t/30floats.t with Python 2.7. - Fix Perl assertion fail if __getitem__ called multiple times - Fix "Attempt to free unreferenced scalar" sometimes happening when calling a Perl sub with named parameters from Python. - Fix several memory leaks found using valgrind - Add py_finalize to be able to shut down the Python interpreter. - Added line numbers to Python exception messages. - Fixed passing of a perl code ref through Python space. - Allow passing references to methods from Python to Perl. - Implemented py_has_attr complementing py_get_attr. - We now support stringification of Python objects via __str__ methods. - Fixed segfault when accessing a Python object's attributes throws an exception. - Fixed some problems with the test suite, hopefully making installation work on more machines. - Fixed compilation on Win32, linking still seems broken though :( - Fixed a segfault when passing dicts with Unicode keys to Perl - Pass Python exceptions to Perl instead of just printing to STDERR OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Inline-Python?expand=0&rev=3
2011-04-22 18:29:15 +00:00
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
- updated to 0.39 - Added py_is_tuple and made Pl2Py recognize an array ref that has been a tuple before in Python. - Fixed memory corruption on a Python function calling a Perl function that changed the stack pointer. - Fixed several memory leaks (scalars and dict keys). - Fixed wrong refcount of return values in py_eval (RT #48081) - Fixed accessing Unicode keys in a dict passed from Perl. - Fixed compatability of t/30floats.t with Python 2.7. - Fix Perl assertion fail if __getitem__ called multiple times - Fix "Attempt to free unreferenced scalar" sometimes happening when calling a Perl sub with named parameters from Python. - Fix several memory leaks found using valgrind - Add py_finalize to be able to shut down the Python interpreter. - Added line numbers to Python exception messages. - Fixed passing of a perl code ref through Python space. - Allow passing references to methods from Python to Perl. - Implemented py_has_attr complementing py_get_attr. - We now support stringification of Python objects via __str__ methods. - Fixed segfault when accessing a Python object's attributes throws an exception. - Fixed some problems with the test suite, hopefully making installation work on more machines. - Fixed compilation on Win32, linking still seems broken though :( - Fixed a segfault when passing dicts with Unicode keys to Perl - Pass Python exceptions to Perl instead of just printing to STDERR OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Inline-Python?expand=0&rev=3
2011-04-22 18:29:15 +00:00
%files -f %{name}.files
%doc Changes README TESTED ToDo
%changelog