17
0

Compare commits

2 Commits

2 changed files with 12 additions and 5 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu May 15 13:07:04 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
-------------------------------------------------------------------
Fri Feb 28 00:26:13 UTC 2020 - Martin Herkt <9+suse@cirno.systems>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-cfscrape
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,7 +16,6 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-cfscrape
Version: 2.1.1
Release: 0
@@ -25,11 +24,13 @@ License: MIT
Group: Development/Languages/Python
URL: https://github.com/Anorov/cloudflare-scrape
Source: https://github.com/Anorov/cloudflare-scrape/archive/%{version}.tar.gz#/cloudflare-scrape-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module responses}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module sure}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: nodejs
BuildRequires: python-rpm-macros
@@ -60,10 +61,10 @@ is much more common.
%setup -q -n cloudflare-scrape-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
# test suite requires internet access
@@ -74,6 +75,7 @@ is much more common.
%files %{python_files}
%license LICENSE
%doc README.md
%{python_sitelib}/*
%{python_sitelib}/cfscrape
%{python_sitelib}/cfscrape-%{version}*-info
%changelog