From a0046d1bdfb87d1413e86957e39ef2ceb97ed59922755b657df577f360d3437a Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 16 Jun 2025 06:23:16 +0000 Subject: [PATCH] - Switch to pyroject macros. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-shodan?expand=0&rev=71 --- python-shodan.changes | 6 ++++++ python-shodan.spec | 12 ++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/python-shodan.changes b/python-shodan.changes index c0a07ed..3fff7e1 100644 --- a/python-shodan.changes +++ b/python-shodan.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Jun 16 06:16:48 UTC 2025 - Steve Kowalik + +- Switch to pyroject macros. +- No more greedy globs in %files. + ------------------------------------------------------------------- Tue May 13 14:14:16 UTC 2025 - Sebastian Wagner diff --git a/python-shodan.spec b/python-shodan.spec index 2b0f56c..a421430 100644 --- a/python-shodan.spec +++ b/python-shodan.spec @@ -16,19 +16,19 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{!?license: %global license %doc} Name: python-shodan Version: 1.31.0 Release: 0 Summary: Python library and command-line utility for Shodan License: MIT -Group: Development/Languages/Python URL: https://github.com/achillean/shodan-python/ Source: https://files.pythonhosted.org/packages/source/s/shodan/shodan-%{version}.tar.gz # PATCH-FIX-UPSTREAM remove-click-plugins.patch -- remove dependency to unmaintained click-plugins Patch0: https://github.com/achillean/shodan-python/pull/236.patch#/remove-click-plugins.patch +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: python3-Sphinx @@ -36,7 +36,6 @@ Requires: python-XlsxWriter Requires: python-click Requires: python-colorama Requires: python-requests >= 2.2.1 -Requires: python-setuptools Requires(post): update-alternatives Requires(postun): update-alternatives Recommends: python-curses @@ -60,7 +59,7 @@ HTML documentation on the API and examples for %{name}. sed -i '1s/^#!.*//' shodan/cli/worldmap.py %build -%python_build +%pyproject_wheel pushd docs %make_build html rm -r _build/html/.buildinfo _build/html/_sources/ @@ -68,7 +67,7 @@ rm -r _build/html/.buildinfo _build/html/_sources/ popd %install -%python_install +%pyproject_install install -Dm 644 docs/_build/man/shodan-python.1 %{buildroot}%{_mandir}/man1/shodan.1 %python_clone -a %{buildroot}%{_bindir}/shodan %python_clone -a %{buildroot}%{_mandir}/man1/shodan.1 @@ -89,7 +88,8 @@ install -Dm 644 docs/_build/man/shodan-python.1 %{buildroot}%{_mandir}/man1/shod %doc AUTHORS README.rst %license LICENSE %python_alternative %{_bindir}/shodan -%{python_sitelib}/* +%{python_sitelib}/shodan +%{python_sitelib}/shodan-%{version}.dist-info %python_alternative %{_mandir}/man1/shodan.1%{ext_man} %files -n %{name}-doc