forked from pool/python-python-akismet
Accepting request 936490 from home:mcepl:branches:M17N:l10n.opensuse.org
Requirement for weblate. OBS-URL: https://build.opensuse.org/request/show/936490 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-akismet?expand=0&rev=2
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# spec file for package python-python-akismet
|
||||
# spec file for package python-akismet
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
#
|
||||
@@ -17,47 +17,44 @@
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python2 1
|
||||
Name: python-python-akismet
|
||||
Version: 0.4.2
|
||||
Release: 0
|
||||
Summary: Pykismet3 Fork
|
||||
Summary: Akismet v1.1 module for Python
|
||||
License: MIT
|
||||
URL: https://github.com/Nekmo/python-akismet
|
||||
# Using github sources because the sources at pypi.org are not version tagged
|
||||
Source0: https://github.com/Nekmo/python-akismet/archive/refs/tags/v%{version}.tar.gz#/python-akismet-%{version}.tar.gz
|
||||
Source: https://files.pythonhosted.org/packages/source/p/python-akismet/python-akismet-%{version}.tar.gz
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module requests}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-requests
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module requests}
|
||||
# /SECTION
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Pykismet3 fork. Support older versions of Python and improvements.
|
||||
Supported API
|
||||
|
||||
The Following Akismet API Calls are currently supported:
|
||||
* Comment Check
|
||||
* Submit Ham
|
||||
* Submit Spam
|
||||
Akismet v1.1 module for Python.
|
||||
|
||||
%prep
|
||||
%setup -q -n python-akismet-%{version}
|
||||
%autosetup -p1 -n python-akismet-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
# would require an AKISMET_API_KEY
|
||||
#%%check
|
||||
#%%python_expand $python setup.py test
|
||||
%check
|
||||
# Unfortunately, tests require connection to the live instance of
|
||||
# Akismet
|
||||
# %%pyunittest -v akismet.tests
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc README.rst
|
||||
%license LICENSE
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user