forked from pool/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
This commit is contained in:
committed by
Git OBS Bridge
parent
c51b3374c9
commit
cf50e7eb82
@@ -1,76 +1,78 @@
|
||||
# $Id: perl-Inline-Python.spec 5703 2007-08-07 23:23:07Z dag $
|
||||
# Authority: dries
|
||||
# Upstream: Neil Watkiss <nwatkiss$ttul,org>
|
||||
#
|
||||
# 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.
|
||||
|
||||
%define perl_vendorlib %(eval "`perl -V:installvendorlib`"; echo $installvendorlib)
|
||||
%define perl_vendorarch %(eval "`perl -V:installvendorarch`"; echo $installvendorarch)
|
||||
%define perl_vendorarch %(eval "`perl -V:installvendorarch`"; echo $installvendorarch)
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
%define real_name Inline-Python
|
||||
|
||||
Summary: Write Perl subs and classes in Python
|
||||
Name: perl-Inline-Python
|
||||
Version: 0.35
|
||||
Release: 1.2
|
||||
License: Artistic
|
||||
Group: Applications/CPAN
|
||||
URL: http://search.cpan.org/dist/Inline-Python/
|
||||
|
||||
# Packager: Dries Verachtert <dries@ulyssis.org>; jw@suse.de for 0.30
|
||||
# Vendor: Dries RPM Repository http://dries.ulyssis.org/rpm/
|
||||
Source: http://search.cpan.org/CPAN/authors/id/N/NI/NINE/Inline-Python-%{version}.tar.bz2
|
||||
Patch1: happy_gcc.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
||||
|
||||
Requires: perl-base >= 5.10.0, perl-Inline >= 0.42
|
||||
BuildRequires: perl, perl-base >= 5.10.0, perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl-Inline >= 0.42, python-devel
|
||||
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
|
||||
Inline::Python lets you write Perl subroutines and classes in
|
||||
Python. You don't have to use any funky techniques for sharing most
|
||||
types of data between the two languages, either. Inline::Python comes
|
||||
with its own data translation service. It converts any Python structures
|
||||
it knows about into Perl structures, and vice versa.
|
||||
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 -n %{real_name}-%{version}
|
||||
%patch1 -p1
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS="vendor" destdir="%{buildroot}"
|
||||
%{__make} %{?_smp_mflags} OPTIMIZE="%{optflags}"
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
||||
%{__make} %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
%{__make} test
|
||||
|
||||
%install
|
||||
%{__rm} -rf %{buildroot}
|
||||
%makeinstall
|
||||
%{__rm} -f %{buildroot}%{perl_archlib}/perllocal.pod
|
||||
%{__rm} -f %{buildroot}%{perl_vendorarch}/auto/*/*/.packlist
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
%clean
|
||||
%{__rm} -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-, root, root, 0755)
|
||||
%doc Changes README
|
||||
%doc %{_mandir}/man3/*.3pm*
|
||||
%dir %{perl_vendorarch}/Inline/
|
||||
%{perl_vendorarch}/Inline/Python.*
|
||||
%dir %{perl_vendorarch}/auto/Inline/
|
||||
%{perl_vendorarch}/auto/Inline/Python/
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes README TESTED ToDo
|
||||
|
||||
%changelog
|
||||
* Wed Mar 22 2006 Dries Verachtert <dries@ulyssis.org> - 0.22-1.2
|
||||
- Rebuild for Fedora Core 5.
|
||||
|
||||
* Fri Mar 4 2005 Dries Verachtert <dries@ulyssis.org> - 0.22-1
|
||||
- Updated to release 0.22.
|
||||
|
||||
* Wed Dec 29 2004 Dries Verachtert <dries@ulyssis.org> - 0.21-1
|
||||
- Updated to release 0.21.
|
||||
|
||||
* Thu Jul 22 2004 Dries Verachtert <dries@ulyssis.org> - 0.20-1
|
||||
- Initial package.
|
||||
|
Reference in New Issue
Block a user