From b13fe8f9acb2a32b4ec70ad90b7882c6343cbd0e Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 10:41:36 +0100 Subject: [PATCH] package created using the webbuild interface [release 2.12.0-1mamba;Sat Feb 27 2021] --- README.md | 2 ++ python-QScintilla.spec | 58 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 python-QScintilla.spec diff --git a/README.md b/README.md index b91c43a..5cc582e 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # python-QScintilla +Python bindings to QScintilla. + diff --git a/python-QScintilla.spec b/python-QScintilla.spec new file mode 100644 index 0000000..0040943 --- /dev/null +++ b/python-QScintilla.spec @@ -0,0 +1,58 @@ +Name: python-QScintilla +Version: 2.12.0 +Release: 1mamba +Summary: Python bindings to QScintilla +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +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 +* Sat Feb 27 2021 Silvan Calarco 2.12.0-1mamba +- package created using the webbuild interface