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 version https://git-lfs.github.com/spec/v1
oid sha256:b755cb536dc1da53a00ab80fc6a31fa2b440381df54639f59b5407ac2c403589 oid sha256:874a4a8c2e9f2463aae0de315bcfb61cf653fd94effb8afc3a19eb17e9105a7c
size 10293 size 9407

View File

@@ -1,5 +1,4 @@
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Nov 30 15:59:19 UTC 2021 - Matthias Fehring <buschmann23@opensuse.org> Mon Dec 6 22:56:17 UTC 2021 - Matej Cepl <mcepl@suse.com>
- initial package versin 0.4.2
- 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 # Copyright (c) 2021 SUSE LLC
# #
@@ -17,47 +17,44 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-python-akismet Name: python-python-akismet
Version: 0.4.2 Version: 0.4.2
Release: 0 Release: 0
Summary: Pykismet3 Fork Summary: Akismet v1.1 module for Python
License: MIT License: MIT
URL: https://github.com/Nekmo/python-akismet URL: https://github.com/Nekmo/python-akismet
# Using github sources because the sources at pypi.org are not version tagged Source: https://files.pythonhosted.org/packages/source/p/python-akismet/python-akismet-%{version}.tar.gz
Source0: https://github.com/Nekmo/python-akismet/archive/refs/tags/v%{version}.tar.gz#/python-akismet-%{version}.tar.gz
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module requests} BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-requests Requires: python-requests
BuildArch: noarch BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module requests}
# /SECTION
%python_subpackages %python_subpackages
%description %description
Pykismet3 fork. Support older versions of Python and improvements. Akismet v1.1 module for Python.
Supported API
The Following Akismet API Calls are currently supported:
* Comment Check
* Submit Ham
* Submit Spam
%prep %prep
%setup -q -n python-akismet-%{version} %autosetup -p1 -n python-akismet-%{version}
%build %build
%python_build %python_build
%install %install
%python_install %python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
# would require an AKISMET_API_KEY %check
#%%check # Unfortunately, tests require connection to the live instance of
#%%python_expand $python setup.py test # Akismet
# %%pyunittest -v akismet.tests
%files %{python_files} %files %{python_files}
%license LICENSE
%doc README.rst %doc README.rst
%license LICENSE
%{python_sitelib}/* %{python_sitelib}/*
%changelog %changelog