From ca68dd9a1933b18d85402077edd5d8d5f8dd9925a6602844c7aed1cc5bf751ad Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Thu, 3 Aug 2017 08:15:46 +0000 Subject: [PATCH] - fix build for leap OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-shodan?expand=0&rev=2 --- python-shodan.changes | 5 +++++ python-shodan.spec | 11 ++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/python-shodan.changes b/python-shodan.changes index 38995e7..754b151 100644 --- a/python-shodan.changes +++ b/python-shodan.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Aug 3 08:15:34 UTC 2017 - sebix+novell.com@sebix.at + +- fix build for leap + ------------------------------------------------------------------- Wed Jul 19 19:08:48 UTC 2017 - sebix+novell.com@sebix.at diff --git a/python-shodan.spec b/python-shodan.spec index 250be04..9ec305c 100644 --- a/python-shodan.spec +++ b/python-shodan.spec @@ -13,6 +13,7 @@ # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} @@ -20,20 +21,20 @@ Name: python-shodan Version: 1.7.4 Release: 0 -License: MIT Summary: Python library and command-line utility for Shodan -Url: http://github.com/achillean/shodan-python/ +License: MIT Group: Development/Languages/Python +Url: http://github.com/achillean/shodan-python/ Source: https://files.pythonhosted.org/packages/source/s/shodan/shodan-%{version}.tar.gz -BuildRequires: python-rpm-macros BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros BuildRequires: python3-Sphinx +Requires: python-XlsxWriter Requires: python-click Requires: python-click-plugins Requires: python-colorama Requires: python-requests >= 2.2.1 -Requires: python-XlsxWriter Recommends: python-curses Suggests: %{name}-doc BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -44,7 +45,7 @@ BuildArch: noarch %package -n %{name}-doc Summary: Documentation files for %name Group: Documentation/HTML -Provides: %{python_module shodan-doc} +Provides: %{python_module shodan-doc = %{version}} %description Shodan is a search engine for Internet-connected devices. Google lets you search for websites, Shodan lets you search for devices. This library provides developers easy access to all of the data stored in Shodan in order to automate tasks and integrate into existing tools.