From d5c886b3689c56c9bb8ca9704fed9e9b456ab0cd66de570b591b2137610028f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 2 Jun 2025 09:02:10 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-misaka?expand=0&rev=6 --- python-misaka.changes | 5 +++++ python-misaka.spec | 16 +++++++++------- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/python-misaka.changes b/python-misaka.changes index 1881b66..26a3e48 100644 --- a/python-misaka.changes +++ b/python-misaka.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 2 09:01:56 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Mon May 25 06:50:47 UTC 2020 - Petr Gajdos diff --git a/python-misaka.spec b/python-misaka.spec index 07e7fe3..d3a5064 100644 --- a/python-misaka.spec +++ b/python-misaka.spec @@ -1,7 +1,7 @@ # # spec file for package python-misaka # -# Copyright (c) 2020 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 @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-misaka Version: 2.1.1 Release: 0 @@ -27,13 +26,15 @@ URL: https://github.com/FSX/misaka Source: https://files.pythonhosted.org/packages/source/m/misaka/misaka-%{version}.tar.gz BuildRequires: %{python_module cffi >= 1.12.0} BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: tidy Requires: python-cffi >= 1.12.0 -Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(post): alts +Requires(postun): alts %python_subpackages %description @@ -43,10 +44,10 @@ A CFFI binding for Hoedown_ (version 3), a markdown parsing library. %setup -q -n misaka-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/misaka %python_expand %fdupes %{buildroot}%{$python_sitearch} @@ -65,6 +66,7 @@ $python tests/run_tests.py %license LICENSE.txt %doc README.rst %python_alternative %{_bindir}/misaka -%{python_sitearch}/* +%{python_sitearch}/misaka +%{python_sitearch}/misaka-%{version}*-info %changelog