|
|
|
@@ -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,31 @@
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%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 pip}
|
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
|
BuildRequires: %{python_module wheel}
|
|
|
|
|
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 +50,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
|
|
|
|
|