diff --git a/python-akismet-0.4.2.tar.gz b/python-akismet-0.4.2.tar.gz index 0c718c6..2521ae0 100644 --- a/python-akismet-0.4.2.tar.gz +++ b/python-akismet-0.4.2.tar.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:b755cb536dc1da53a00ab80fc6a31fa2b440381df54639f59b5407ac2c403589 -size 10293 +oid sha256:874a4a8c2e9f2463aae0de315bcfb61cf653fd94effb8afc3a19eb17e9105a7c +size 9407 diff --git a/python-python-akismet.changes b/python-python-akismet.changes index 36401d7..e11ebed 100644 --- a/python-python-akismet.changes +++ b/python-python-akismet.changes @@ -1,5 +1,4 @@ ------------------------------------------------------------------- -Tue Nov 30 15:59:19 UTC 2021 - Matthias Fehring - -- initial package versin 0.4.2 +Mon Dec 6 22:56:17 UTC 2021 - Matej Cepl +- Initial packaging effort of python-akismet 0.4.2. diff --git a/python-python-akismet.spec b/python-python-akismet.spec index 72f1560..4993c05 100644 --- a/python-python-akismet.spec +++ b/python-python-akismet.spec @@ -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