Name: giws Version: 2.0.2 Release: 1mamba Summary: Generate C++ class wrappers to call Java methods/objects Group: Development/Tools Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://www.scilab.org/software/other/giws Source: https://forge.scilab.org/index.php/p/giws/downloads/get/giws-%{version}.tar.gz License: CeCILL ## AUTOBUILDREQ-BEGIN BuildRequires: libpython27-devel ## AUTOBUILDREQ-END %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 %{__python27} setup.py build %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %{__python27} setup.py install \ -O1 --skip-build \ --root="%{buildroot}" \ --install-headers=%{_includedir}/python \ --install-lib=%{python27_sitearch} \ --record=%{name}.filelist sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist #sed -i ",__pycache__/.*.pyc$,d" %{name}.filelist %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files -f %{name}.filelist %defattr(-,root,root) %{python27_sitearch}/giws-%{version}-py%{python27_version}.egg-info %doc AUTHORS COPYING LICENSE %changelog * Sat Nov 06 2021 Silvan Calarco 2.0.2-1mamba - update to 2.0.2 * 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