forked from pool/python-shodan
		
	Accepting request 1285967 from devel:languages:python
- Switch to pyroject macros. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/request/show/1285967 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-shodan?expand=0&rev=34
This commit is contained in:
		@@ -1,3 +1,9 @@
 | 
				
			|||||||
 | 
					-------------------------------------------------------------------
 | 
				
			||||||
 | 
					Mon Jun 16 06:16:48 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- Switch to pyroject macros.
 | 
				
			||||||
 | 
					- No more greedy globs in %files.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-------------------------------------------------------------------
 | 
					-------------------------------------------------------------------
 | 
				
			||||||
Tue May 13 14:14:16 UTC 2025 - Sebastian Wagner <sebix@sebix.at>
 | 
					Tue May 13 14:14:16 UTC 2025 - Sebastian Wagner <sebix@sebix.at>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -16,19 +16,19 @@
 | 
				
			|||||||
#
 | 
					#
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 | 
					 | 
				
			||||||
%{!?license: %global license %doc}
 | 
					%{!?license: %global license %doc}
 | 
				
			||||||
Name:           python-shodan
 | 
					Name:           python-shodan
 | 
				
			||||||
Version:        1.31.0
 | 
					Version:        1.31.0
 | 
				
			||||||
Release:        0
 | 
					Release:        0
 | 
				
			||||||
Summary:        Python library and command-line utility for Shodan
 | 
					Summary:        Python library and command-line utility for Shodan
 | 
				
			||||||
License:        MIT
 | 
					License:        MIT
 | 
				
			||||||
Group:          Development/Languages/Python
 | 
					 | 
				
			||||||
URL:            https://github.com/achillean/shodan-python/
 | 
					URL:            https://github.com/achillean/shodan-python/
 | 
				
			||||||
Source:         https://files.pythonhosted.org/packages/source/s/shodan/shodan-%{version}.tar.gz
 | 
					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
 | 
					# 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
 | 
					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 setuptools}
 | 
				
			||||||
 | 
					BuildRequires:  %{python_module wheel}
 | 
				
			||||||
BuildRequires:  fdupes
 | 
					BuildRequires:  fdupes
 | 
				
			||||||
BuildRequires:  python-rpm-macros
 | 
					BuildRequires:  python-rpm-macros
 | 
				
			||||||
BuildRequires:  python3-Sphinx
 | 
					BuildRequires:  python3-Sphinx
 | 
				
			||||||
@@ -36,7 +36,6 @@ Requires:       python-XlsxWriter
 | 
				
			|||||||
Requires:       python-click
 | 
					Requires:       python-click
 | 
				
			||||||
Requires:       python-colorama
 | 
					Requires:       python-colorama
 | 
				
			||||||
Requires:       python-requests >= 2.2.1
 | 
					Requires:       python-requests >= 2.2.1
 | 
				
			||||||
Requires:       python-setuptools
 | 
					 | 
				
			||||||
Requires(post): update-alternatives
 | 
					Requires(post): update-alternatives
 | 
				
			||||||
Requires(postun): update-alternatives
 | 
					Requires(postun): update-alternatives
 | 
				
			||||||
Recommends:     python-curses
 | 
					Recommends:     python-curses
 | 
				
			||||||
@@ -60,7 +59,7 @@ HTML documentation on the API and examples for %{name}.
 | 
				
			|||||||
sed -i '1s/^#!.*//' shodan/cli/worldmap.py
 | 
					sed -i '1s/^#!.*//' shodan/cli/worldmap.py
 | 
				
			||||||
 | 
					
 | 
				
			||||||
%build
 | 
					%build
 | 
				
			||||||
%python_build
 | 
					%pyproject_wheel
 | 
				
			||||||
pushd docs
 | 
					pushd docs
 | 
				
			||||||
%make_build html
 | 
					%make_build html
 | 
				
			||||||
rm -r _build/html/.buildinfo _build/html/_sources/
 | 
					rm -r _build/html/.buildinfo _build/html/_sources/
 | 
				
			||||||
@@ -68,7 +67,7 @@ rm -r _build/html/.buildinfo _build/html/_sources/
 | 
				
			|||||||
popd
 | 
					popd
 | 
				
			||||||
 | 
					
 | 
				
			||||||
%install
 | 
					%install
 | 
				
			||||||
%python_install
 | 
					%pyproject_install
 | 
				
			||||||
install -Dm 644 docs/_build/man/shodan-python.1 %{buildroot}%{_mandir}/man1/shodan.1
 | 
					install -Dm 644 docs/_build/man/shodan-python.1 %{buildroot}%{_mandir}/man1/shodan.1
 | 
				
			||||||
%python_clone -a %{buildroot}%{_bindir}/shodan
 | 
					%python_clone -a %{buildroot}%{_bindir}/shodan
 | 
				
			||||||
%python_clone -a %{buildroot}%{_mandir}/man1/shodan.1
 | 
					%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
 | 
					%doc AUTHORS README.rst
 | 
				
			||||||
%license LICENSE
 | 
					%license LICENSE
 | 
				
			||||||
%python_alternative %{_bindir}/shodan
 | 
					%python_alternative %{_bindir}/shodan
 | 
				
			||||||
%{python_sitelib}/*
 | 
					%{python_sitelib}/shodan
 | 
				
			||||||
 | 
					%{python_sitelib}/shodan-%{version}.dist-info
 | 
				
			||||||
%python_alternative %{_mandir}/man1/shodan.1%{ext_man}
 | 
					%python_alternative %{_mandir}/man1/shodan.1%{ext_man}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
%files -n %{name}-doc
 | 
					%files -n %{name}-doc
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user