diff --git a/Inline-Python-0.35.tar.bz2 b/Inline-Python-0.35.tar.bz2 deleted file mode 100644 index b1ce588..0000000 --- a/Inline-Python-0.35.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6460bb65bbd0019b3defbdd4332b9e243009ac145c784c95e851c854a4566cd4 -size 38237 diff --git a/Inline-Python-0.39.tar.gz b/Inline-Python-0.39.tar.gz new file mode 100644 index 0000000..fc467fe --- /dev/null +++ b/Inline-Python-0.39.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c5ce3adb076884d09f023f66dc6d077c764f89e3a0ec87653f334f70e02f6e6a +size 46805 diff --git a/perl-Inline-Python.changes b/perl-Inline-Python.changes index d6107b1..1fadbf0 100644 --- a/perl-Inline-Python.changes +++ b/perl-Inline-Python.changes @@ -1,3 +1,36 @@ +------------------------------------------------------------------- +Fri Apr 22 18:15:09 UTC 2011 - coolo@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 + ------------------------------------------------------------------- Wed Jun 2 23:33:09 UTC 2010 - jw@novell.com diff --git a/perl-Inline-Python.spec b/perl-Inline-Python.spec index 143a330..0ddf74c 100644 --- a/perl-Inline-Python.spec +++ b/perl-Inline-Python.spec @@ -1,76 +1,78 @@ -# $Id: perl-Inline-Python.spec 5703 2007-08-07 23:23:07Z dag $ -# Authority: dries -# Upstream: Neil Watkiss +# +# 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 ; 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 - 0.22-1.2 -- Rebuild for Fedora Core 5. - -* Fri Mar 4 2005 Dries Verachtert - 0.22-1 -- Updated to release 0.22. - -* Wed Dec 29 2004 Dries Verachtert - 0.21-1 -- Updated to release 0.21. - -* Thu Jul 22 2004 Dries Verachtert - 0.20-1 -- Initial package.