forked from pool/python-pypi-search
Accepting request 1284431 from devel:languages:python
- Update packaging * run spec-cleaner * convert to pip-based build * convert to libalternatives OBS-URL: https://build.opensuse.org/request/show/1284431 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pypi-search?expand=0&rev=3
This commit is contained in:
@@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jun 10 11:41:00 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Update packaging
|
||||||
|
* run spec-cleaner
|
||||||
|
* convert to pip-based build
|
||||||
|
* convert to 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>
|
||||||
|
|
||||||
|
@@ -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,31 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%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 pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
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
|
# 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 +50,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
|
||||||
|
Reference in New Issue
Block a user