update to 2.0.2 [release 2.0.2-1mamba;Sat Nov 06 2021]

This commit is contained in:
Silvan Calarco 2024-01-05 23:05:24 +01:00
parent 3d08258cd1
commit 30d786fccb

View File

@ -1,20 +1,17 @@
Name: giws
Version: 1.2.1
Release: 2mamba
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 <silvan.calarco@mambasoft.it>
URL: http://www.scilab.org/products/other/giws
# http://forge.scilab.org/index.php/p/giws/downloads/182/get/
Source: giws-%{version}.tar.gz
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: libpython-devel
BuildRequires: libpython27-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.
@ -26,31 +23,33 @@ Giws hides this complexity through a C++ class which wraps the Java class.
%build
%{__python} setup.py build
%{__python27} setup.py build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python} setup.py install \
%{__python27} setup.py install \
-O1 --skip-build \
--root="%{buildroot}" \
--install-headers=%{_includedir}/python \
--install-lib=%{python_sitearch}
--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
%files -f %{name}.filelist
%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
%{python27_sitearch}/giws-%{version}-py%{python27_version}.egg-info
%doc AUTHORS COPYING LICENSE
#BUGS README README-DEV TODO examples
%changelog
* Sat Nov 06 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.2-1mamba
- update to 2.0.2
* Sat Aug 03 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.1-2mamba
- rebuilt with python 2.7