From daa4fd04ada1c3813bd2e89a7762bbed6de944fb50fadc4a7c35127ba5de5f59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 2 Jun 2025 09:06:43 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mkdocs-redirects?expand=0&rev=2 --- python-mkdocs-redirects.changes | 5 +++++ python-mkdocs-redirects.spec | 19 ++++++++++--------- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/python-mkdocs-redirects.changes b/python-mkdocs-redirects.changes index 03ef4d3..85bcab3 100644 --- a/python-mkdocs-redirects.changes +++ b/python-mkdocs-redirects.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 2 09:06:27 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Thu Nov 18 15:28:48 UTC 2021 - Elisei Roca diff --git a/python-mkdocs-redirects.spec b/python-mkdocs-redirects.spec index 95ebd83..9f72ee6 100644 --- a/python-mkdocs-redirects.spec +++ b/python-mkdocs-redirects.spec @@ -1,7 +1,7 @@ # # spec file for package python-mkdocs-redirects # -# Copyright (c) 2021 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,8 +16,6 @@ # -%define skip_python2 1 -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-mkdocs-redirects Version: 1.0.3 Release: 0 @@ -25,10 +23,12 @@ Summary: Plugin for mkdocs to create page redirects License: MIT URL: https://github.com/datarobot/mkdocs-redirects Source: https://files.pythonhosted.org/packages/source/m/mkdocs-redirects/mkdocs-redirects-%{version}.tar.gz -BuildRequires: python-rpm-macros -BuildRequires: %{python_module setuptools} -BuildRequires: fdupes BuildRequires: %{python_module mkdocs >= 1.0.4} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros Requires: python-mkdocs >= 1.0.4 BuildArch: noarch %python_subpackages @@ -41,14 +41,15 @@ A MkDocs plugin for dynamic page redirects to prevent broken links %setup -q -n mkdocs-redirects-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %files %{python_files} %doc README.md -%{python_sitelib}/* +%{python_sitelib}/mkdocs[-_]redirects +%{python_sitelib}/mkdocs[-_]redirects-%{version}*-info %changelog