diff --git a/python-pypi-search.changes b/python-pypi-search.changes index 22d3941..35b70bf 100644 --- a/python-pypi-search.changes +++ b/python-pypi-search.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jun 10 11:41:00 UTC 2025 - Markéta Machová + +- Convert to pip-based build and libalternatives + ------------------------------------------------------------------- Wed Jun 21 15:27:04 UTC 2023 - ecsos diff --git a/python-pypi-search.spec b/python-pypi-search.spec index 73f2737..1d6f542 100644 --- a/python-pypi-search.spec +++ b/python-pypi-search.spec @@ -1,7 +1,7 @@ # # spec file for package python-pypi-search # -# 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,28 +16,29 @@ # +%bcond_without libalternatives %{?sle15_python_module_pythons} -Name: python-pypi-search -Version: 1.2.1 -Release: 0 -Summary: Get Information on Python Packages From PyPI -License: MIT -URL: https://github.com/asadmoosvi/pypi-search -Source: https://files.pythonhosted.org/packages/source/p/pypi-search/pypi-search-%{version}.tar.gz -BuildRequires: python-rpm-macros -BuildRequires: %{python_module setuptools} +Name: python-pypi-search +Version: 1.2.1 +Release: 0 +Summary: Get Information on Python Packages From PyPI +License: MIT +URL: https://github.com/asadmoosvi/pypi-search +Source: https://files.pythonhosted.org/packages/source/p/pypi-search/pypi-search-%{version}.tar.gz +BuildRequires: %{python_module setuptools} +BuildRequires: alts +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: alts +Requires: python-beautifulsoup4 >= 4.9.2 +Requires: python-html2text >= 2020.1.16 +Requires: python-requests >= 2.22.0 +BuildArch: noarch # SECTION test requirements -BuildRequires: %{python_module beautifulsoup4 >= 4.9.2} -BuildRequires: %{python_module html2text >= 2020.1.16} -BuildRequires: %{python_module requests >= 2.22.0} +BuildRequires: %{python_module beautifulsoup4 >= 4.9.2} +BuildRequires: %{python_module html2text >= 2020.1.16} +BuildRequires: %{python_module requests >= 2.22.0} # /SECTION -BuildRequires: fdupes -Requires: python-beautifulsoup4 >= 4.9.2 -Requires: python-html2text >= 2020.1.16 -Requires: python-requests >= 2.22.0 -BuildArch: noarch -Requires(post): update-alternatives -Requires(postun): update-alternatives %python_subpackages %description @@ -47,18 +48,15 @@ Get Information on Python Packages From PyPI %setup -q -n pypi-search-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/pypisearch %python_expand %fdupes %{buildroot}%{$python_sitelib} -%post -%python_install_alternative pypisearch - -%postun -%python_uninstall_alternative pypisearch +%pre +%python_libalternatives_reset_alternative pypisearch %files %{python_files} %doc README.md