From 3aa2a4947d89ce878167cbbee2cf3ee3438cd7a955455b4fe30daae378d7310c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 8 Jul 2025 08:25:22 +0000 Subject: [PATCH] - Convert to libalternatives OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ctypesgen?expand=0&rev=3 --- python-ctypesgen.changes | 5 +++++ python-ctypesgen.spec | 13 +++++-------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/python-ctypesgen.changes b/python-ctypesgen.changes index 1af8922..f6444a1 100644 --- a/python-ctypesgen.changes +++ b/python-ctypesgen.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jul 8 08:24:54 UTC 2025 - Markéta Machová + +- Convert to libalternatives + ------------------------------------------------------------------- Thu Jan 18 06:43:54 UTC 2024 - Atri Bhattacharya diff --git a/python-ctypesgen.spec b/python-ctypesgen.spec index 78b5c3a..53d1943 100644 --- a/python-ctypesgen.spec +++ b/python-ctypesgen.spec @@ -1,7 +1,7 @@ # # spec file for package python-ctypesgen # -# Copyright (c) 2024 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 @@ -23,14 +23,14 @@ Summary: Python wrapper generator for ctypes License: BSD-2-Clause URL: https://github.com/ctypesgen/ctypesgen Source: https://files.pythonhosted.org/packages/source/c/ctypesgen/ctypesgen-%{version}.tar.gz -BuildRequires: python-rpm-macros -BuildRequires: %{pythons} >= 3.7 BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools >= 44} BuildRequires: %{python_module setuptools_scm >= 3.4.3} BuildRequires: %{python_module toml} BuildRequires: %{python_module wheel} +BuildRequires: %{pythons} >= 3.7 BuildRequires: fdupes +BuildRequires: python-rpm-macros BuildArch: noarch %python_subpackages @@ -54,11 +54,8 @@ and creates a wrapper for libraries based on what it finds. export TMPDIR=`mktemp -d -p ${PWD}` %pyunittest -v -%post -%python_install_alternative ctypesgen - -%postun -%python_uninstall_alternative ctypesgen +%pre +%python_libalternatives_reset_alternative ctypesgen %files %{python_files} %doc CHANGELOG.md README.md