PyQtChart/PyQtChart.spec

72 lines
2.0 KiB
RPMSpec
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

%define majver %(echo %version | cut -d. -f1-2)
Name: PyQtChart
Version: 5.15.6
Release: 1mamba
Summary: A set of Python bindings for The Qt Companys Qt Charts library
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://pypi.org/project/PyQtChart/
Source: https://pypi.debian.net/PyQtChart/PyQtChart-%{version}.tar.gz
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libQt5Charts-devel
BuildRequires: libgcc
BuildRequires: libglvnd-devel
BuildRequires: libpython3-devel
BuildRequires: libstdc++6-devel
BuildRequires: python3.7dist(pyqt5)
BuildRequires: python3.7dist(pyqt5-sip)
BuildRequires: qt5-qtbase-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
* Mon Mar 13 2023 Automatic Build System <autodist@mambasoft.it> 5.15.6-1mamba
- automatic update by autodist
* Sat Mar 13 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 5.15.4-1mamba
- update to 5.15.4
* Sat Apr 25 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 5.14.0-2mamba
- fix installation path of QtChart.so
* Tue Apr 14 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 5.14.0-1mamba
- package created using the webbuild interface