raphgro pushed to jpype-py3 (f22). "Initial import (rhbz#1208701)."

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Apr 23 16:46:14 UTC 2015


>From 9153cf38a01cb65d93218eeda6d992df178e9072 Mon Sep 17 00:00:00 2001
From: Raphael Groner <projects.rg at smart.ms>
Date: Wed, 22 Apr 2015 23:08:37 +0200
Subject: Initial import (rhbz#1208701).


diff --git a/.gitignore b/.gitignore
index e69de29..32ca106 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/jpype-py3-ca6fc96a76d430c753b56ec2a4ed2a3eced0dac3.tar.gz
diff --git a/jpype-py3.spec b/jpype-py3.spec
new file mode 100644
index 0000000..77fa768
--- /dev/null
+++ b/jpype-py3.spec
@@ -0,0 +1,78 @@
+%global commit  ca6fc96a76d430c753b56ec2a4ed2a3eced0dac3
+%global date    20150202
+
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+%global module jpype
+
+# define sitearch for EPEL
+%{!?python3_sitearch: %global python3_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
+
+Name:           %{module}-py3
+Version:        0
+Release:        0.1.%{date}git%{shortcommit}%{?dist}
+Summary:        JPype allows Python3 programs full access to Java class libraries
+
+License:        ASL 2.0
+URL:            https://github.com/tcalmant/%{name}
+Source0:        %{url}/archive/%{commit}/%{name}-%{commit}.tar.gz
+
+# available sitearch-specific for Python 3 only!
+BuildRequires:  python3-devel
+BuildRequires:  python3-setuptools
+BuildRequires:  java-devel
+# need ant for tests execution
+BuildRequires:  ant
+
+
+%description
+JPype - Python 3
+
+From the original Website:
+ JPype is an effort to allow python programs full access to java class
+ libraries. This is achieved not through re-implementing Python, as
+ Jython/JPython has done, but rather through interfacing at the native
+ level in both Virtual Machines. Eventually, it should be possible to
+ replace Java with python in many, though not all, situations.
+JSP, Servlets, RMI servers and IDE plugins are good candidates.
+
+This GitHub fork is a Python 3 version of jPype.
+It does not support Python 2.
+
+
+%prep
+%setup -qn%{name}-%{commit}
+# sanify line delimiters
+find . -name '*.py' -or -name '*.java' -or -name '*.TXT' -or -name '*.sh' |xargs sed -i "s|\r||g"
+
+%build
+%{__python3} setup.py build
+
+%install
+%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
+find %{buildroot}%{python3_sitearch} -name '*.so' |xargs chmod 0755
+
+
+%check
+pushd tests
+ant test
+# FIXME fake a module installation
+mkdir sitearch
+cp -ap %{buildroot}%{python3_sitearch}/%{module} sitearch
+cp -p %{buildroot}%{python3_sitearch}/_%{module}*.so sitearch
+sed -i 's,import %{module},from sitearch \0,' %{module}test/__init__.py
+sed -i 's,import _%{module},from sitearch \0,' sitearch/%{module}/_j*.py
+#%{__python3} testsuite.py
+popd
+
+ 
+%files
+%license LICENSE.txt
+%doc README.rst
+%doc examples/
+#%doc tests/
+%{python3_sitearch}/*
+
+
+%changelog
+* Thu Apr 02 2015 Raphael Groner <projects.rg at smart.ms> - 0-0.1.20150202gitca6fc96
+- initial
diff --git a/sources b/sources
index e69de29..729c4a2 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+560df16cbfaa6444f3fd97f25355cc1d  jpype-py3-ca6fc96a76d430c753b56ec2a4ed2a3eced0dac3.tar.gz
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/jpype-py3.git/commit/?h=f22&id=9153cf38a01cb65d93218eeda6d992df178e9072


More information about the scm-commits mailing list