14
0

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:
2021-12-08 13:02:03 +00:00
committed by Git OBS Bridge
parent 7c2526edf8
commit c7c16498e8
3 changed files with 19 additions and 23 deletions

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b755cb536dc1da53a00ab80fc6a31fa2b440381df54639f59b5407ac2c403589
size 10293
oid sha256:874a4a8c2e9f2463aae0de315bcfb61cf653fd94effb8afc3a19eb17e9105a7c
size 9407

View File

@@ -1,5 +1,4 @@
-------------------------------------------------------------------
Tue Nov 30 15:59:19 UTC 2021 - Matthias Fehring <buschmann23@opensuse.org>
- initial package versin 0.4.2
Mon Dec 6 22:56:17 UTC 2021 - Matej Cepl <mcepl@suse.com>
- Initial packaging effort of python-akismet 0.4.2.

View File

@@ -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