diff --git a/python-pyVows.changes b/python-pyVows.changes index cd55765..2609ec0 100644 --- a/python-pyVows.changes +++ b/python-pyVows.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jun 4 08:38:33 UTC 2025 - Markéta Machová + +- Convert to pip-based build +- Convert to libalternatives + ------------------------------------------------------------------- Wed May 20 07:26:56 UTC 2020 - Petr Gajdos diff --git a/python-pyVows.spec b/python-pyVows.spec index ee87134..d8e427e 100644 --- a/python-pyVows.spec +++ b/python-pyVows.spec @@ -1,7 +1,7 @@ # # spec file for package python-pyVows # -# 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,7 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without libalternatives Name: python-pyVows Version: 3.0.0 Release: 0 @@ -28,15 +28,17 @@ Source: https://files.pythonhosted.org/packages/source/p/pyVows/pyVows-% BuildRequires: %{python_module Unidecode} BuildRequires: %{python_module colorama >= 0.3.7} BuildRequires: %{python_module gevent >= 0.13.6} +BuildRequires: %{python_module pip} BuildRequires: %{python_module preggy >= 0.5.8} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: alts Requires: python-Unidecode Requires: python-gevent >= 1.2.2 Requires: python-preggy >= 1.3.0 -Requires(post): update-alternatives -Requires(postun): update-alternatives Recommends: python-colorama >= 0.3.7 BuildArch: noarch %python_subpackages @@ -50,11 +52,11 @@ sed -i '/^#!/d' pyvows/__main__.py pyvows/cli.py %build export LANG="en_US.UTF-8" -%python_build +%pyproject_wheel %install export LANG="en_US.UTF-8" -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/pyvows %python_expand %fdupes %{buildroot}%{$python_sitelib} @@ -64,14 +66,15 @@ export PYTHONPATH=. export PATH=%{buildroot}%{_bindir}:$PATH %python_exec pyvows/cli.py -x tests/ -%post -%python_install_alternative pyvows +%pre +# removing old update-alternatives entries +%python_libalternatives_reset_alternative pyvows -%postun -%python_uninstall_alternative pyvows +# post and postun macro call is not needed with only libalternatives %files %{python_files} %python_alternative %{_bindir}/pyvows -%{python_sitelib}/* +%{python_sitelib}/pyvows +%{python_sitelib}/py[Vv]ows-%{version}*-info %changelog