public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-scrapy] rawhide: spec cleanup and modernization
@ 2026-06-13 20:08 Filipe Rosset
0 siblings, 0 replies; only message in thread
From: Filipe Rosset @ 2026-06-13 20:08 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-scrapy
Branch : rawhide
Commit : 9cd4edf2730e8f656e2943a9bf855fe3cafc6c79
Author : Filipe Rosset <filiperosset@fedoraproject.org>
Date : 2026-06-13T17:00:14-03:00
Stats : +9/-40 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/python-scrapy/c/9cd4edf2730e8f656e2943a9bf855fe3cafc6c79?branch=rawhide
Log:
spec cleanup and modernization
Signed-off-by: Filipe Rosset <filiperosset@fedoraproject.org>
---
diff --git a/python-scrapy.spec b/python-scrapy.spec
index ed4c390..f225476 100644
--- a/python-scrapy.spec
+++ b/python-scrapy.spec
@@ -4,11 +4,9 @@ Name: python-scrapy
Version: 2.14.2
Release: %autorelease
Summary: A high-level Python Screen Scraping framework
-# Automatically converted from old format: BSD - review is highly recommended.
-License: LicenseRef-Callaway-BSD
+License: BSD-3-Clause
URL: https://scrapy.org
-# TODO fix Source0 to correct github source URL
-Source0: https://files.pythonhosted.org/packages/source/S/%{pypi_name}/%{pkg_name}-%{version}.tar.gz
+Source: %{pypi_source %{pkg_name}}
BuildArch: noarch
@@ -22,26 +20,6 @@ from data mining to monitoring and automated testing.
%package -n python3-%{pkg_name}
Summary: %{summary}
-Requires: python3-pyOpenSSL
-Requires: python3-twisted
-Requires: python3-lxml
-Requires: python3-w3lib
-Requires: python3-queuelib
-Requires: python3-zope-interface
-Requires: python3-cssselect
-Requires: python3-pydispatcher
-Requires: python3-parsel
-Requires: python3-itemadapter
-Requires: python3-protego
-Requires: python3-itemloaders
-Requires: python3-pydispatcher
-Requires: python-tldextract
-Requires: python3-service-identity
-Requires: python3-cryptography
-
-%{?python_provide:%python_provide python3-%{pkg_name}}
-
-
%description -n python3-%{pkg_name}
Scrapy is a fast high-level screen scraping and web crawling
framework, used to crawl websites and extract structured data
@@ -50,15 +28,7 @@ from data mining to monitoring and automated testing.
-%package doc
-Summary: Documentation for %{name}
-%description doc
-Scrapy is a fast high-level screen scraping and web crawling
-framework, used to crawl websites and extract structured data
-from their pages. It can be used for a wide range of purposes,
-from data mining to monitoring and automated testing.
-This package contains the documentation for %{name}
%prep
%autosetup -n %{pkg_name}-%{version}
@@ -67,19 +37,18 @@ This package contains the documentation for %{name}
%build
%pyproject_wheel
-pushd docs
-%make_build html && rm -r build/html/.buildinfo
-popd
%install
%pyproject_install
+%pyproject_save_files -l scrapy
+
+
+%check
+%pyproject_check_import -e 'scrapy.core.downloader.handlers.http2' -e 'scrapy.core.http2.*'
-%files -n python3-%{pkg_name}
-%license LICENSE
-%doc AUTHORS PKG-INFO
-%{python3_sitelib}/scrapy
-%{python3_sitelib}/scrapy-%{version}.dist-info/
+%files -n python3-%{pkg_name} -f %{pyproject_files}
+%doc AUTHORS README.rst
%{_bindir}/scrapy
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-13 20:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-13 20:08 [rpms/python-scrapy] rawhide: spec cleanup and modernization Filipe Rosset
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox