15
0
Files
python-Protego/python-Protego.spec
Dirk Mueller 0b27aa4a3f - update to 0.3.0:
* Dropped support for Python 2.7, 3.5, 3.6, and 3.7, and
    added support for 3.11 and for the upcoming 3.12.
  * six is no longer a dependency.
  * Added support for the ``Visit-Time`` directive.
  * Fixed leading asterisks in allow and disallow values not
    being properly interpreted.
  * Protego.parse() now raises value error when *content*
    is not a string.
- drop python-Protego-no-six.patch (upstream)
- - Rename README.md to README.rst in %doc section
- Update to 0.2.1
- Update to 0.2.0
  Upgrade Protego version to 0.2.0

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Protego?expand=0&rev=7
2024-01-07 19:51:10 +00:00

59 lines
1.7 KiB
RPMSpec

#
# spec file for package python-Protego
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-Protego
Version: 0.3.0
Release: 0
Summary: Pure-Python robotstxt parser with support for modern conventions
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/scrapy/protego
Source: https://files.pythonhosted.org/packages/source/P/Protego/Protego-%{version}.tar.gz
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-six
BuildArch: noarch
%python_subpackages
%description
Protego is a pure-Python `robots.txt` parser with support for modern conventions.
%prep
%setup -q -n Protego-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc README.rst
%license LICENSE
%{python_sitelib}/*
%changelog