public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-robot-detection] epel10: Initial commit for epel10
@ 2026-11-03 12:53 Michal Konecny
0 siblings, 0 replies; only message in thread
From: Michal Konecny @ 2026-11-03 12:53 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-robot-detection
Branch : epel10
Commit : 70b68eeef344b80eb3c13b3290192a52f8988caf
Author : Michal Konecny <michal.konecny@pacse.eu>
Date : 2026-11-03T13:53:25+01:00
Stats : +63/-0 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/python-robot-detection/c/70b68eeef344b80eb3c13b3290192a52f8988caf?branch=epel10
Log:
Initial commit for epel10
---
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..ce895c5
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/robot-detection-0.4.tar.gz
diff --git a/python-robot-detection.spec b/python-robot-detection.spec
new file mode 100644
index 0000000..5e413de
--- /dev/null
+++ b/python-robot-detection.spec
@@ -0,0 +1,61 @@
+%global srcname robot-detection
+
+Name: python-%{srcname}
+Version: 0.4
+%global gh_ver %{version}.0
+Release: %autorelease
+Summary: Library for detecting bot HTTP UA headers
+License: GPL-3.0-or-later
+URL: https://github.com/amandasaurus/robot-detection
+# PyPI source does not have tests and license text
+# Source0: %%{pypi_source %%{srcname}}
+Source0: %{url}/archive/v%{gh_ver}/%{srcname}-%{version}.tar.gz
+
+BuildArch: noarch
+
+BuildRequires: python%{python3_pkgversion}-devel
+BuildRequires: python%{python3_pkgversion}-setuptools
+BuildRequires: python3dist(pytest)
+
+%global _description %{expand:
+robot_detection is a python module to detect if a given HTTP User Agent is a web
+crawler. It uses the list of registered robots from http://www.robotstxt.org:
+[Robots Database](http://www.robotstxt.org/db.html).}
+
+%description %{_description}
+
+
+%package -n python%{python3_pkgversion}-%{srcname}
+Summary: %{summary}
+
+%description -n python%{python3_pkgversion}-%{srcname} %{_description}
+
+
+%prep
+%autosetup -p1 -n %{srcname}-%{gh_ver}
+
+
+%generate_buildrequires
+%pyproject_buildrequires -t
+
+
+%build
+%pyproject_wheel
+
+
+%install
+%pyproject_install
+%pyproject_save_files robot_detection
+
+
+%check
+%pytest -v tests.py
+
+
+%files -n python%{python3_pkgversion}-%{srcname} -f %{pyproject_files}
+%license LICENCE
+%doc README.md
+
+
+%changelog
+%autochangelog
diff --git a/sources b/sources
new file mode 100644
index 0000000..e875852
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (robot-detection-0.4.tar.gz) = 10b1fbd2307c375e3cd067e43bee1bc0ff71f4b83ede9b92d2fb8d60edfd6d4a8d1a4d06d74e3c0653056f2e2b2cb81a7e997047093e925bd79bf4626d33d85f
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-03 12:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-03 12:53 [rpms/python-robot-detection] epel10: Initial commit for epel10 Michal Konecny
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox