14
0

- Convert to pip-based build and libalternatives

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pypi-search?expand=0&rev=5
This commit is contained in:
2025-06-10 12:10:04 +00:00
committed by Git OBS Bridge
parent d1dfffd80f
commit d8d1ac176d
2 changed files with 30 additions and 27 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jun 10 11:41:00 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build and libalternatives
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Jun 21 15:27:04 UTC 2023 - ecsos <ecsos@opensuse.org> Wed Jun 21 15:27:04 UTC 2023 - ecsos <ecsos@opensuse.org>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-pypi-search # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -16,28 +16,29 @@
# #
%bcond_without libalternatives
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-pypi-search Name: python-pypi-search
Version: 1.2.1 Version: 1.2.1
Release: 0 Release: 0
Summary: Get Information on Python Packages From PyPI Summary: Get Information on Python Packages From PyPI
License: MIT License: MIT
URL: https://github.com/asadmoosvi/pypi-search URL: https://github.com/asadmoosvi/pypi-search
Source: https://files.pythonhosted.org/packages/source/p/pypi-search/pypi-search-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/p/pypi-search/pypi-search-%{version}.tar.gz
BuildRequires: python-rpm-macros BuildRequires: %{python_module setuptools}
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 # SECTION test requirements
BuildRequires: %{python_module beautifulsoup4 >= 4.9.2} BuildRequires: %{python_module beautifulsoup4 >= 4.9.2}
BuildRequires: %{python_module html2text >= 2020.1.16} BuildRequires: %{python_module html2text >= 2020.1.16}
BuildRequires: %{python_module requests >= 2.22.0} BuildRequires: %{python_module requests >= 2.22.0}
# /SECTION # /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 %python_subpackages
%description %description
@@ -47,18 +48,15 @@ Get Information on Python Packages From PyPI
%setup -q -n pypi-search-%{version} %setup -q -n pypi-search-%{version}
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_clone -a %{buildroot}%{_bindir}/pypisearch %python_clone -a %{buildroot}%{_bindir}/pypisearch
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%post %pre
%python_install_alternative pypisearch %python_libalternatives_reset_alternative pypisearch
%postun
%python_uninstall_alternative pypisearch
%files %{python_files} %files %{python_files}
%doc README.md %doc README.md