8
0
Files
perl-Inline-Python/perl-Inline-Python.spec
Stephan Kulow cf50e7eb82 - 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

79 lines
2.6 KiB
RPMSpec

#
# spec file for package perl-Inline-Python (Version 0.39)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
Name: perl-Inline-Python
Version: 0.39
Release: 1
License: GPL+ or Artistic
%define cpan_name Inline-Python
Summary: Write Perl subs and classes in Python.
Url: http://search.cpan.org/dist/Inline-Python/
Group: Development/Libraries/Perl
Source: http://www.cpan.org/authors/id/N/NI/NINE/%{cpan_name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Inline) >= 0.46
BuildRequires: perl(Test)
BuildRequires: perl(Test::More)
Requires: perl(Data::Dumper)
Requires: perl(Inline) >= 0.46
Requires: perl(Test)
Requires: perl(Test::More)
#MANUAL
BuildRequires: python-devel
%{perl_requires}
%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
%setup -q -n %{cpan_name}-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%clean
%{__rm} -rf %{buildroot}
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes README TESTED ToDo
%changelog