%define majver %(echo %version | cut -d. -f1-2) Name: PyQtChart Version: 5.15.4 Release: 1mamba Summary: A set of Python bindings for The Qt Company’s Qt Charts library Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://pypi.org/project/PyQtChart/ Source: https://pypi.debian.net/PyQtChart/PyQtChart-%{version}.tar.gz License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: PyQt5-py3 BuildRequires: libpython3-devel ## AUTOBUILDREQ-END BuildRequires: PyQt5-py3 >= %{majver} BuildRequires: python-sip-py3 %description %{summary}. %if 0%{?with_pyver} %pyver_package %endif %prep %setup -q -n PyQtChart-%{version} %build sip-build \ --no-make \ --api-dir %{_datadir}/qt/qsci/api/python cd build %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall -C build INSTALL_ROOT=%{buildroot} %files %{?pyappend} %defattr(-,root,root) %{python_sitearch}/PyQt5/QtChart.abi*.so %dir %{python_sitearch}/PyQt5/bindings/QtChart %{python_sitearch}/PyQt5/bindings/QtChart/*.sip %{python_sitearch}/PyQt5/bindings/QtChart/QtChart.toml %dir %{python_sitearch}/PyQtChart-%{version}.dist-info %{python_sitearch}/PyQtChart-%{version}.dist-info/* %{_datadir}/qt/qsci/api/python/PyQtChart.api %doc LICENSE %changelog * Sat Mar 13 2021 Silvan Calarco 5.15.4-1mamba - update to 5.15.4 * Sat Apr 25 2020 Silvan Calarco 5.14.0-2mamba - fix installation path of QtChart.so * Tue Apr 14 2020 Silvan Calarco 5.14.0-1mamba - package created using the webbuild interface