## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 13; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %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 ## START: Generated by rpmautospec * Thu Oct 31 2024 Michel Lind - 0.4-13 - Switch test runner from tox (which calls setup.py test) to pytest - Verify SPDX conversion - Update source URL - Resolves: rhbz#2319713 * Thu Jul 25 2024 Miroslav Suchý - 0.4-12 - convert GPLv3+ license to SPDX * Fri Jul 19 2024 Fedora Release Engineering - 0.4-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 0.4-10 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 0.4-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 0.4-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 0.4-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Wed Jun 14 2023 Python Maint - 0.4-6 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 0.4-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 0.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 0.4-3 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 0.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Mon Dec 13 2021 Michel Alexandre Salim - 0.4-1 - Initial Fedora package ## END: Generated by rpmautospec