2021-11-30 23:11:25 +00:00
|
|
|
#
|
2022-10-07 07:52:12 +00:00
|
|
|
# spec file for package python-python-akismet
|
2021-11-30 23:11:25 +00:00
|
|
|
#
|
2025-06-10 12:42:07 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2021-11-30 23:11:25 +00:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-python-akismet
|
2022-10-07 07:52:12 +00:00
|
|
|
Version: 0.4.3
|
2021-11-30 23:11:25 +00:00
|
|
|
Release: 0
|
2021-12-08 13:02:03 +00:00
|
|
|
Summary: Akismet v1.1 module for Python
|
2021-11-30 23:11:25 +00:00
|
|
|
License: MIT
|
|
|
|
URL: https://github.com/Nekmo/python-akismet
|
2021-12-08 13:02:03 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/p/python-akismet/python-akismet-%{version}.tar.gz
|
2025-06-10 12:42:07 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2021-11-30 23:11:25 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2025-06-10 12:42:07 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2021-12-08 13:02:03 +00:00
|
|
|
BuildRequires: fdupes
|
2021-11-30 23:11:25 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
Requires: python-requests
|
|
|
|
BuildArch: noarch
|
2021-12-08 13:02:03 +00:00
|
|
|
# SECTION test requirements
|
|
|
|
BuildRequires: %{python_module requests}
|
|
|
|
# /SECTION
|
2021-11-30 23:11:25 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
2021-12-08 13:02:03 +00:00
|
|
|
Akismet v1.1 module for Python.
|
2021-11-30 23:11:25 +00:00
|
|
|
|
|
|
|
%prep
|
2021-12-08 13:02:03 +00:00
|
|
|
%autosetup -p1 -n python-akismet-%{version}
|
2021-11-30 23:11:25 +00:00
|
|
|
|
|
|
|
%build
|
2025-06-10 12:42:07 +00:00
|
|
|
%pyproject_wheel
|
2021-11-30 23:11:25 +00:00
|
|
|
|
|
|
|
%install
|
2025-06-10 12:42:07 +00:00
|
|
|
%pyproject_install
|
2021-12-08 13:02:03 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2021-11-30 23:11:25 +00:00
|
|
|
|
2021-12-08 13:02:03 +00:00
|
|
|
%check
|
|
|
|
# Unfortunately, tests require connection to the live instance of
|
|
|
|
# Akismet
|
|
|
|
# %%pyunittest -v akismet.tests
|
2021-11-30 23:11:25 +00:00
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%doc README.rst
|
2021-12-08 13:02:03 +00:00
|
|
|
%license LICENSE
|
2025-06-10 12:42:07 +00:00
|
|
|
%{python_sitelib}/akismet
|
|
|
|
%{python_sitelib}/python[-_]akismet-%{version}*-info
|
2021-11-30 23:11:25 +00:00
|
|
|
|
|
|
|
%changelog
|