forked from pool/python-PyQRCode
Accepting request 1086623 from home:bnavigator:branches:devel:languages:python
- Replace build_sphinx setuptools hook with direct sphinx-build call -- fixes boo#1211051 OBS-URL: https://build.opensuse.org/request/show/1086623 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyQRCode?expand=0&rev=18
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu May 11 19:53:51 UTC 2023 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- Replace build_sphinx setuptools hook with direct sphinx-build
|
||||||
|
call -- fixes boo#1211051
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Apr 20 06:19:11 UTC 2022 - Matej Cepl <mcepl@suse.com>
|
Wed Apr 20 06:19:11 UTC 2022 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-PyQRCode
|
# spec file for package python-PyQRCode
|
||||||
#
|
#
|
||||||
# Copyright (c) 2022 SUSE LLC
|
# Copyright (c) 2023 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,8 +16,6 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
||||||
%define skip_python2 1
|
|
||||||
%define modname PyQRCode
|
%define modname PyQRCode
|
||||||
Name: python-PyQRCode
|
Name: python-PyQRCode
|
||||||
Version: 1.3.6
|
Version: 1.3.6
|
||||||
@@ -30,7 +28,6 @@ URL: https://github.com/pyqrcode/pyqrcodeNG
|
|||||||
Source: https://github.com/pyqrcode/pyqrcodeNG/archive/refs/tags/%{version}.tar.gz#/pyqrcodeNG-%{version}.tar.gz
|
Source: https://github.com/pyqrcode/pyqrcodeNG/archive/refs/tags/%{version}.tar.gz#/pyqrcodeNG-%{version}.tar.gz
|
||||||
# PATCH-FIX-UPSTREAM https://github.com/pyqrcode/pyqrcodeNG/pull/18
|
# PATCH-FIX-UPSTREAM https://github.com/pyqrcode/pyqrcodeNG/pull/18
|
||||||
Patch0: reproducible.patch
|
Patch0: reproducible.patch
|
||||||
BuildRequires: %{python_module Sphinx}
|
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module pypng}
|
BuildRequires: %{python_module pypng}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
@@ -38,13 +35,18 @@ BuildRequires: %{python_module setuptools}
|
|||||||
BuildRequires: %{python_module wheel}
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
BuildRequires: python3-Sphinx
|
||||||
|
Provides: python-PyQRCodeNG = %{version}-%{release}
|
||||||
|
Provides: python-pyqrcodeng = %{version}-%{release}
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun):update-alternatives
|
Requires(postun):update-alternatives
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The PyQRCode module is a QR code generator that is simple to use and written in pure python. The module can automates most of the building process for creating QR codes. Most codes can be created using only two lines of code!
|
The PyQRCode module is a QR code generator that is simple to use and written in pure python.
|
||||||
|
The module can automates most of the building process for creating QR codes.
|
||||||
|
Most codes can be created using only two lines of code.
|
||||||
|
|
||||||
%package -n %{name}-doc
|
%package -n %{name}-doc
|
||||||
Summary: Documentation files for %{name}
|
Summary: Documentation files for %{name}
|
||||||
@@ -59,8 +61,8 @@ sed -i -e '1{\@^#!%{_bindir}/env python@d}' pyqrcodeng/{cli,qrspecial}.py
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
python3 setup.py build_sphinx -v
|
sphinx-build -b html docs/ build/sphinx/html/
|
||||||
rm -rvf build/sphinx/html/.buildinfo
|
rm -rvf build/sphinx/html/{.buildinfo,.doctrees}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%pyproject_install
|
%pyproject_install
|
||||||
@@ -79,7 +81,6 @@ rm -rvf build/sphinx/html/.buildinfo
|
|||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.rst CHANGES.rst
|
%doc README.rst CHANGES.rst
|
||||||
%{_bindir}/pyqr-%{python_bin_suffix}
|
|
||||||
%python_alternative %{_bindir}/pyqr
|
%python_alternative %{_bindir}/pyqr
|
||||||
%{python_sitelib}/PyQRCodeNG-%{version}*-info
|
%{python_sitelib}/PyQRCodeNG-%{version}*-info
|
||||||
%{python_sitelib}/pyqrcodeng
|
%{python_sitelib}/pyqrcodeng
|
||||||
|
Reference in New Issue
Block a user