From 3d08258cd197d51a47264f803927007587cdb058 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 23:05:23 +0100 Subject: [PATCH] rebuilt with python 2.7 [release 1.2.1-2mamba;Sat Aug 03 2013] --- README.md | 4 ++++ giws.spec | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 giws.spec diff --git a/README.md b/README.md index 01a3816..8162ae5 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ # giws +Giws is basically doing the same stuff as SWIG but the opposite. +Calling Java from C/C++ can be tricky: JNI calls are complicated especially when dealing with non primivite types or arrays, performance issues must be kept in mind all the time, the code can be redundant (checking exceptions, checking returns of operations...). +Giws hides this complexity through a C++ class which wraps the Java class. + diff --git a/giws.spec b/giws.spec new file mode 100644 index 0000000..4f67eb7 --- /dev/null +++ b/giws.spec @@ -0,0 +1,58 @@ +Name: giws +Version: 1.2.1 +Release: 2mamba +Summary: Generate C++ class wrappers to call Java methods/objects +Group: Development/Tools +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.scilab.org/products/other/giws +# http://forge.scilab.org/index.php/p/giws/downloads/182/get/ +Source: giws-%{version}.tar.gz +License: CeCILL +## AUTOBUILDREQ-BEGIN +BuildRequires: libpython-devel +## AUTOBUILDREQ-END +Requires: python >= %python_version +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Giws is basically doing the same stuff as SWIG but the opposite. +Calling Java from C/C++ can be tricky: JNI calls are complicated especially when dealing with non primivite types or arrays, performance issues must be kept in mind all the time, the code can be redundant (checking exceptions, checking returns of operations...). +Giws hides this complexity through a C++ class which wraps the Java class. + +%prep +%setup -q + +%build + +%{__python} setup.py build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%{__python} setup.py install \ + -O1 --skip-build \ + --root="%{buildroot}" \ + --install-headers=%{_includedir}/python \ + --install-lib=%{python_sitearch} + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_bindir}/giws +%{python_sitearch}/*.py* +%{python_sitearch}/classRepresentation/*.py* +%{python_sitearch}/datatypes/*.py* +%{python_sitearch}/giws-%{version}-py%{python_version}.egg-info +%doc AUTHORS COPYING LICENSE +#BUGS README README-DEV TODO examples + +%changelog +* Sat Aug 03 2013 Silvan Calarco 1.2.1-2mamba +- rebuilt with python 2.7 + +* Fri Feb 04 2011 gil 1.2.1-1mamba +- package created by autospec