commit e8b4854cebf4b99aa984e18c50c73ae7368f2e52285af5ee07a5c2af8d6c215e Author: Christophe Giboudeaux Date: Sun Aug 30 13:07:07 2020 +0000 Accepting request 830508 from home:bnavigator:sip5 Please also read the comments of the superseded request. + singlespec makes it future proof for multiple python versions OBS-URL: https://build.opensuse.org/request/show/830508 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt5/python-pyqt-builder?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/PyQt-builder-1.4.0.tar.gz b/PyQt-builder-1.4.0.tar.gz new file mode 100644 index 0000000..7de7431 --- /dev/null +++ b/PyQt-builder-1.4.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:be7fb8436e6ffb21b7e42266f0fa4776b7d62b0c7e06c63f8a066ff90554fcdc +size 5472834 diff --git a/python-pyqt-builder.changes b/python-pyqt-builder.changes new file mode 100644 index 0000000..e1c8449 --- /dev/null +++ b/python-pyqt-builder.changes @@ -0,0 +1,12 @@ +------------------------------------------------------------------- +Sat Aug 29 19:35:57 UTC 2020 - Benjamin Greiner + +- Specify noarch +- Provide python-PyQt-builder in case packagers search for the + official Qt/PyPI name +- It actually needs the python-sip-devel package + +------------------------------------------------------------------- +Sat Aug 29 09:07:38 UTC 2020 - Benjamin Greiner + +- Initial specfile version 1.4.0 diff --git a/python-pyqt-builder.spec b/python-pyqt-builder.spec new file mode 100644 index 0000000..0a41dbd --- /dev/null +++ b/python-pyqt-builder.spec @@ -0,0 +1,85 @@ +# +# spec file for package python-sip +# +# Copyright (c) 2020 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define skip_python2 1 +Name: python-pyqt-builder +Version: 1.4.0 +Release: 0 +Summary: The PEP 517 compliant PyQt build system +License: BSD-2-Clause +URL: https://www.riverbankcomputing.com/software/pyqt +Source0: https://files.pythonhosted.org/packages/source/P/PyQt-builder/PyQt-builder-%{version}.tar.gz +BuildRequires: %{python_module setuptools} +BuildRequires: %{pythons >= 3.5} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python >= 3.5 +Requires: python-sip-devel >= 5.3 +Requires(post): update-alternatives +Requires(postun): update-alternatives +Provides: python-PyQt-builder = %{version} +BuildArch: noarch +# Test Requirements +BuildRequires: %{python_module sip-devel >= 5.3} +# +%python_subpackages + +%description +PyQt-builder is the PEP 517 compliant build system for PyQt and projects that +extend PyQt. It extends the sip build system and uses Qt’s qmake to perform the +actual compilation and installation of extension modules. + +Projects that use PyQt-builder provide an appropriate pyproject.toml file and an +optional project.py script. Any PEP 517 compliant frontend, for example +sip-install or pip can then be used to build and install the project. + +%prep +%setup -q -n PyQt-builder-%{version} +head -n 25 pyqtbuild/__init__.py | sed -E 's/^# ?//' > LICENSE + +%build +%python_build + +%install +%python_install +%python_clone -a %{buildroot}%{_bindir}/pyqt-bundle +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%{python_expand # no real unit tests; check import and bundle entry point +export PYTHONPATH=%{buildroot}%{$python_sitelib} +$python -c 'import pyqtbuild' +%{buildroot}%{_bindir}/pyqt-bundle-%{$python_bin_suffix} -V +} + + +%post +%python_install_alternative pyqt-bundle + +%postun +%python_uninstall_alternative pyqt-bundle + +%files %python_files +%license LICENSE +%doc README NEWS ChangeLog +%python_alternative %{_bindir}/pyqt-bundle +%{python_sitelib}/pyqtbuild +%{python_sitelib}/PyQt_builder-%{version}-py*.egg-info + +%changelog