python-QScintilla/python-QScintilla.spec

86 lines
2.6 KiB
RPMSpec

Name: python-QScintilla
Version: 2.14.0
Release: 1mamba
Summary: Python bindings to QScintilla
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.riverbankcomputing.com/software/qscintilla/
Source: https://pypi.debian.net/QScintilla/QScintilla-%{version}.tar.gz
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-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: sip
BuildRequires: PyQt-builder-py3
%description
%{summary}.
%if 0%{?with_pyver}
%define py_requires_append \
Requires: qscintilla \
Provides: python-qscintilla%{?pyappend:-%pyappend} \
Obsoletes: python-qscintilla%{?pyappend:-%pyappend} < 2.12.0
%pyver_package
%endif
%prep
%setup -q -n QScintilla-%{version}
%build
sip-build%{?pyappend:-%pyappend} \
--no-make \
--api-dir %{_datadir}/qt5/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/Qsci.abi3.so
%dir %{python_sitearch}/PyQt5/bindings/Qsci
%{python_sitearch}/PyQt5/bindings/Qsci/Qsci.toml
%{python_sitearch}/PyQt5/bindings/Qsci/qsci*.sip
%dir %{python_sitearch}/QScintilla-%{version}.dist-info
%{python_sitearch}/QScintilla-%{version}.dist-info/*
%{_datadir}/qt5/qsci/api/python/QScintilla.api
%doc LICENSE
%changelog
* Sat May 06 2023 Automatic Build System <autodist@mambasoft.it> 2.14.0-1mamba
- automatic version update by autodist
* Sun Jan 29 2023 Automatic Build System <autodist@mambasoft.it> 2.13.4-1mamba
- automatic version update by autodist
* Sun May 15 2022 Automatic Build System <autodist@mambasoft.it> 2.13.3-1mamba
- automatic version update by autodist
* Fri Apr 08 2022 Automatic Build System <autodist@mambasoft.it> 2.13.2-1mamba
- automatic version update by autodist
* Mon Oct 18 2021 Automatic Build System <autodist@mambasoft.it> 2.13.1-1mamba
- automatic version update by autodist
* Tue Jun 29 2021 Automatic Build System <autodist@mambasoft.it> 2.13.0-1mamba
- automatic version update by autodist
* Thu Mar 11 2021 Automatic Build System <autodist@mambasoft.it> 2.12.1-1mamba
- automatic version update by autodist
* Sat Feb 27 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2.12.0-1mamba
- package created using the webbuild interface