forked from pool/perl-Inline-Python
Accepting request 25540 from home:jnweiger:perl
Copy from home:jnweiger:perl/perl-Inline-Python via accept of submit request 25540 revision 2. Request was accepted with message: i trust you here, juergen :) OBS-URL: https://build.opensuse.org/request/show/25540 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Inline-Python?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.osc
|
3
Inline-Python-0.30.tar.bz2
Normal file
3
Inline-Python-0.30.tar.bz2
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:5ff601f42798c4815195951627226de70d1682167b68204de99311affc056dba
|
||||||
|
size 36163
|
78
happy_gcc.patch
Normal file
78
happy_gcc.patch
Normal file
@@ -0,0 +1,78 @@
|
|||||||
|
--- Inline-Python-0.30/perlmodule.c.orig 2009-07-21 16:38:37.000000000 +0200
|
||||||
|
+++ Inline-Python-0.30/perlmodule.c 2009-12-04 01:04:53.000000000 +0100
|
||||||
|
@@ -5,7 +5,7 @@ extern "C" {
|
||||||
|
#include "perl.h"
|
||||||
|
#include "XSUB.h"
|
||||||
|
|
||||||
|
-#include "Python.h"
|
||||||
|
+#include "myPython.h"
|
||||||
|
#include "perlmodule.h"
|
||||||
|
#include "py2pl.h"
|
||||||
|
#include "util.h"
|
||||||
|
--- Inline-Python-0.30/util.c.orig 2009-06-30 13:43:21.000000000 +0200
|
||||||
|
+++ Inline-Python-0.30/util.c 2009-12-04 01:01:42.000000000 +0100
|
||||||
|
@@ -5,7 +5,7 @@ extern "C" {
|
||||||
|
#include "perl.h"
|
||||||
|
#include "XSUB.h"
|
||||||
|
|
||||||
|
-#include "Python.h"
|
||||||
|
+#include "myPython.h"
|
||||||
|
#include "util.h"
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
@@ -25,6 +25,7 @@ int free_inline_py_obj(pTHX_ SV* obj, MA
|
||||||
|
else {
|
||||||
|
croak("ERROR: tried to free a non-Python object. Aborting.");
|
||||||
|
}
|
||||||
|
+ return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
PyObject * get_perl_pkg_subs(PyObject *package) {
|
||||||
|
--- Inline-Python-0.30/myPython.h.orig 2009-12-04 01:00:07.000000000 +0100
|
||||||
|
+++ Inline-Python-0.30/myPython.h 2009-12-04 01:12:42.000000000 +0100
|
||||||
|
@@ -0,0 +1,23 @@
|
||||||
|
+// avoid redefined warnings.
|
||||||
|
+#ifdef _XOPEN_SOURCE
|
||||||
|
+# define __MY__XOPEN_SOURCE _XOPEN_SOURCE
|
||||||
|
+# undef _XOPEN_SOURCE
|
||||||
|
+#endif
|
||||||
|
+#ifdef _POSIX_C_SOURCE
|
||||||
|
+# define __MY__POSIX_C_SOURCE _POSIX_C_SOURCE
|
||||||
|
+# undef _POSIX_C_SOURCE
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
+#include "Python.h"
|
||||||
|
+
|
||||||
|
+#ifndef _XOPEN_SOURCE
|
||||||
|
+# warn "_XOPEN_SOURCE not defined in /usr/include/python2.6/Python.h, using earlier definition"
|
||||||
|
+# define _XOPEN_SOURCE __MY__XOPEN_SOURCE
|
||||||
|
+#endif
|
||||||
|
+#ifndef _POSIX_C_SOURCE
|
||||||
|
+# warn "_POSIX_C_SOURCE not defined in /usr/include/python2.6/Python.h, using earlier definition"
|
||||||
|
+# define _POSIX_C_SOURCE __MY__POSIX_C_SOURCE
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
+#undef __MY__XOPEN_SOURCE
|
||||||
|
+#undef __MY__POSIX_C_SOURCE
|
||||||
|
--- Inline-Python-0.30/Python.xs.orig 2009-07-20 14:26:48.000000000 +0200
|
||||||
|
+++ Inline-Python-0.30/Python.xs 2009-12-04 01:00:35.000000000 +0100
|
||||||
|
@@ -3,7 +3,7 @@
|
||||||
|
#include "perl.h"
|
||||||
|
#include "XSUB.h"
|
||||||
|
|
||||||
|
-#include "Python.h"
|
||||||
|
+#include "myPython.h"
|
||||||
|
#include "py2pl.h"
|
||||||
|
#include "util.h"
|
||||||
|
|
||||||
|
--- Inline-Python-0.30/py2pl.c.orig 2009-07-08 12:45:47.000000000 +0200
|
||||||
|
+++ Inline-Python-0.30/py2pl.c 2009-12-04 01:02:05.000000000 +0100
|
||||||
|
@@ -2,7 +2,7 @@
|
||||||
|
#include "perl.h"
|
||||||
|
#include "XSUB.h"
|
||||||
|
|
||||||
|
-#include "Python.h"
|
||||||
|
+#include "myPython.h"
|
||||||
|
#include "py2pl.h"
|
||||||
|
#include "util.h"
|
||||||
|
|
19
perl-Inline-Python.changes
Normal file
19
perl-Inline-Python.changes
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Dec 3 23:33:12 UTC 2009 - jw@novell.com
|
||||||
|
|
||||||
|
- updated to 0.30, added make test, fixed dependencies,
|
||||||
|
added happy_gcc.patch
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
* 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.
|
||||||
|
|
76
perl-Inline-Python.spec
Normal file
76
perl-Inline-Python.spec
Normal file
@@ -0,0 +1,76 @@
|
|||||||
|
# $Id: perl-Inline-Python.spec 5703 2007-08-07 23:23:07Z dag $
|
||||||
|
# Authority: dries
|
||||||
|
# Upstream: Neil Watkiss <nwatkiss$ttul,org>
|
||||||
|
|
||||||
|
%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)
|
||||||
|
|
||||||
|
%define real_name Inline-Python
|
||||||
|
|
||||||
|
Summary: Write Perl subs and classes in Python
|
||||||
|
Name: perl-Inline-Python
|
||||||
|
Version: 0.30
|
||||||
|
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://www.cpan.org/modules/by-module/Inline/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
|
||||||
|
|
||||||
|
%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.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -n %{real_name}-%{version}
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
%{__perl} Makefile.PL INSTALLDIRS="vendor" destdir="%{buildroot}"
|
||||||
|
%{__make} %{?_smp_mflags} OPTIMIZE="%{optflags}"
|
||||||
|
|
||||||
|
%check
|
||||||
|
%{__make} test
|
||||||
|
|
||||||
|
%install
|
||||||
|
%{__rm} -rf %{buildroot}
|
||||||
|
%makeinstall
|
||||||
|
%{__rm} -f %{buildroot}%{perl_archlib}/perllocal.pod
|
||||||
|
%{__rm} -f %{buildroot}%{perl_vendorarch}/auto/*/*/.packlist
|
||||||
|
|
||||||
|
%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/
|
||||||
|
|
||||||
|
%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