forked from pool/python-robot-detection
Accepting request 1285053 from devel:languages:python
- Convert to pip-based build OBS-URL: https://build.opensuse.org/request/show/1285053 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-robot-detection?expand=0&rev=5
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jun 12 08:13:46 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Convert to pip-based build
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Jun 7 12:24:11 UTC 2024 - Markéta Machová <mmachova@suse.com>
|
Fri Jun 7 12:24:11 UTC 2024 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-robot-detection
|
# spec file for package python-robot-detection
|
||||||
#
|
#
|
||||||
# Copyright (c) 2024 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
|
||||||
@@ -27,8 +27,10 @@ URL: https://github.com/rory/robot-detection
|
|||||||
# https://github.com/rory/robot-detection/issues/2
|
# https://github.com/rory/robot-detection/issues/2
|
||||||
Source0: https://github.com/rory/robot-detection/archive/v%{version}.tar.gz
|
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-FIX-UPSTREAM https://github.com/amandasaurus/robot-detection/pull/3 get rid of six
|
||||||
Patch: no-six.patch
|
Patch0: no-six.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
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@@ -41,14 +43,14 @@ Library for detecting if a HTTP User Agent header is likely to be a bot.
|
|||||||
%autosetup -p1 -n robot-detection-%{version}
|
%autosetup -p1 -n robot-detection-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%python_exec -m unittest discover
|
%pyunittest
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.md
|
%doc README.md
|
||||||
|
Reference in New Issue
Block a user