python-QScintilla/python-QScintilla.spec

76 lines
2.2 KiB
RPMSpec
Raw Permalink Normal View History

Name: python-QScintilla
Version: 2.13.3
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: libpython3-devel
BuildRequires: python3.7dist(pyqt5)
BuildRequires: python3.7dist(pyqt5-sip)
## AUTOBUILDREQ-END
BuildRequires: sip
BuildRequires: PyQt-builder-py3
Requires: python >= %python_version
%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 \
--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
* 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