From fe82233875c9a8c42a72c05d4d99e11049d670e026df7eebac0315e3e075852d Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 5 May 2025 15:02:11 +0000 Subject: [PATCH] Accepting request 1274575 from home:mcalabkova:branches:devel:languages:python - Convert to pip-based build OBS-URL: https://build.opensuse.org/request/show/1274575 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-CommonMark?expand=0&rev=33 --- python-CommonMark.changes | 5 +++++ python-CommonMark.spec | 11 ++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/python-CommonMark.changes b/python-CommonMark.changes index acfee41..8452305 100644 --- a/python-CommonMark.changes +++ b/python-CommonMark.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 5 13:01:13 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Fri Apr 21 12:20:21 UTC 2023 - Dirk Müller diff --git a/python-CommonMark.spec b/python-CommonMark.spec index 09f90ee..d5edf32 100644 --- a/python-CommonMark.spec +++ b/python-CommonMark.spec @@ -1,7 +1,7 @@ # # spec file for package python-CommonMark # -# Copyright (c) 2023 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 @@ -26,11 +26,12 @@ Summary: Python parser for the CommonMark Markdown spec License: BSD-3-Clause URL: https://github.com/rtfd/CommonMark-py Source: https://files.pythonhosted.org/packages/source/c/commonmark/commonmark-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(postun): update-alternatives Provides: python-commonmark = %{version} Obsoletes: python-commonmark < %{version} BuildArch: noarch @@ -55,10 +56,10 @@ CommonMark specification, using only native modules. %setup -q -n commonmark-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/cmark %python_expand %fdupes %{buildroot}%{$python_sitelib} @@ -80,7 +81,7 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} python3 commonmark/tests/run_spec_test %license LICENSE %doc README.rst %{python_sitelib}/commonmark -%{python_sitelib}/commonmark-%{version}*-info +%{python_sitelib}/commonmark-%{version}*info %python_alternative %{_bindir}/cmark %changelog