%global debug_package %{nil}
Name:           python3-olca
Version:        0.0.9
Release:        2%{?dist}
Summary:        A Python interface to OpenLCA

BuildArch:      noarch
License:        MPLv2.0
URL:            https://github.com/GreenDelta/olca-ipc.py
Source0:        olca-ipc.py-master.zip

BuildRequires:  python3-devel python3-wheel python3-setuptools python3-requests
Requires:       python3-requests

%description
A python interface for connecting with an OpenLCA server using JSON-RPC

%prep
%autosetup -n olca-ipc.py-master

%build
%{__python3} setup.py build

%install
rm -rf $RPM_BUILD_ROOT
%{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT

%files
%{python3_sitelib}/*

%doc README.rst
%license LICENSE

%changelog
* Fri Jun 14 2024 Bruno Postle <bruno@postle.net> 0.0.9-2
- rebuild for python-3.13

* Wed Sep 01 2021 Bruno Postle <bruno@postle.net> 0.0.9-1
- initial package from git snapshot