14
0

Accepting request 1179217 from home:mcalabkova:branches:devel:languages:python

- Add no-six.patch to get rid of the six dependency

OBS-URL: https://build.opensuse.org/request/show/1179217
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-robot-detection?expand=0&rev=6
This commit is contained in:
2024-06-10 21:13:20 +00:00
committed by Git OBS Bridge
parent 8ba5a5f9d0
commit 07de324514
3 changed files with 49 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-robot-detection
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,6 +16,7 @@
#
%define pypiver 0.4
%{?sle15_python_module_pythons}
Name: python-robot-detection
Version: 0.4.0
@@ -25,11 +26,11 @@ License: GPL-3.0-or-later
URL: https://github.com/rory/robot-detection
# https://github.com/rory/robot-detection/issues/2
Source0: https://github.com/rory/robot-detection/archive/v%{version}.tar.gz
# PATCH-FIX-UPSTREAM https://github.com/amandasaurus/robot-detection/pull/3 get rid of six
Patch: no-six.patch
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-six
BuildArch: noarch
%python_subpackages
@@ -37,7 +38,7 @@ BuildArch: noarch
Library for detecting if a HTTP User Agent header is likely to be a bot.
%prep
%setup -q -n robot-detection-%{version}
%autosetup -p1 -n robot-detection-%{version}
%build
%python_build
@@ -52,6 +53,8 @@ Library for detecting if a HTTP User Agent header is likely to be a bot.
%files %{python_files}
%doc README.md
%license LICENCE
%{python_sitelib}/*
%{python_sitelib}/robot_detection.py
%{python_sitelib}/robot_detection-%{pypiver}*info
%pycache_only %{python_sitelib}/__pycache__/robot_detection*
%changelog