2018-08-02 08:49:57 +00:00
|
|
|
#
|
2025-05-15 09:17:49 +00:00
|
|
|
# spec file for package python-akismet
|
2018-08-02 08:49:57 +00:00
|
|
|
#
|
2025-05-15 09:17:49 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2018-08-02 08:49:57 +00:00
|
|
|
# Copyright (c) 2017 Matthias Fehring <buschmann23@opensuse.org>
|
|
|
|
|
#
|
|
|
|
|
# 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.
|
|
|
|
|
|
2019-10-14 13:49:53 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-08-02 08:49:57 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%define mod_name akismet
|
|
|
|
|
Name: python-%{mod_name}
|
2022-08-04 12:28:28 +00:00
|
|
|
Version: 1.2.1
|
2018-08-02 08:49:57 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Interface to the Akismet Anti Comment-Spam API
|
|
|
|
|
License: BSD-3-Clause
|
2018-08-02 08:53:47 +00:00
|
|
|
URL: https://github.com/ubernostrum/akismet
|
2018-08-02 08:49:57 +00:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/a/%{mod_name}/%{mod_name}-%{version}.tar.gz
|
2025-05-15 09:17:49 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2018-08-02 08:53:47 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2018-08-02 08:49:57 +00:00
|
|
|
BuildRequires: %{python_module requests}
|
|
|
|
|
BuildRequires: %{python_module setuptools}
|
2025-05-15 09:17:49 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2018-08-02 08:49:57 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
|
Requires: python-requests
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
A Python interface to the Akismet anti comment-spam API.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n %{mod_name}-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
2025-05-15 09:17:49 +00:00
|
|
|
%pyproject_wheel
|
2018-08-02 08:49:57 +00:00
|
|
|
|
|
|
|
|
%install
|
2025-05-15 09:17:49 +00:00
|
|
|
%pyproject_install
|
2018-08-02 08:49:57 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
2018-08-02 08:53:47 +00:00
|
|
|
%check
|
|
|
|
|
# Can't run the tests as they need working server API
|
2019-11-07 16:13:58 +00:00
|
|
|
#%%pytest
|
2018-08-02 08:53:47 +00:00
|
|
|
|
2018-08-02 08:49:57 +00:00
|
|
|
%files %{python_files}
|
2018-08-02 08:53:47 +00:00
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.rst
|
2025-05-15 09:17:49 +00:00
|
|
|
%{python_sitelib}/akismet.py
|
|
|
|
|
%{python_sitelib}/akismet-%{version}*-info
|
|
|
|
|
%pycache_only %{python_sitelib}/__pycache__/akismet*
|
2018-08-02 08:49:57 +00:00
|
|
|
|
|
|
|
|
%changelog
|