python-QScintilla/python-QScintilla.spec

62 lines
1.7 KiB
RPMSpec
Raw Permalink Normal View History

Name: python-QScintilla
Version: 2.12.1
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: python3
## 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
* 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