From 6f5bc29838824dbe30faa6002130fb76ab97d76c2d3cc73b49af1b29ee9a24dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Thu, 12 Jun 2025 12:44:32 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinxcontrib-copybutton?expand=0&rev=7 --- python-sphinxcontrib-copybutton.changes | 5 +++++ python-sphinxcontrib-copybutton.spec | 11 +++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/python-sphinxcontrib-copybutton.changes b/python-sphinxcontrib-copybutton.changes index 4f1fc6e..0d28182 100644 --- a/python-sphinxcontrib-copybutton.changes +++ b/python-sphinxcontrib-copybutton.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jun 12 12:43:04 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Fri Jun 9 12:40:36 UTC 2023 - ecsos diff --git a/python-sphinxcontrib-copybutton.spec b/python-sphinxcontrib-copybutton.spec index b67fec1..aaedad4 100644 --- a/python-sphinxcontrib-copybutton.spec +++ b/python-sphinxcontrib-copybutton.spec @@ -1,7 +1,7 @@ # # spec file for package python-sphinxcontrib-copybutton # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,7 +24,9 @@ Summary: Add a copy button to each of your code cells License: MIT URL: https://github.com/executablebooks/sphinx-copybutton Source: https://files.pythonhosted.org/packages/source/s/sphinx-copybutton/sphinx-copybutton-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-Sphinx >= 1.8 @@ -46,15 +48,16 @@ Add a copy button to each of your code cells. %setup -q -n sphinx-copybutton-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %files %{python_files} %doc README.md %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/sphinx_copybutton +%{python_sitelib}/sphinxcontrib[-_]copybutton-%{version}*-info %changelog