From 2364c89c19e82ae9758adeec74deb2769bdfd64128715c63974ebf6f41899acf Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 15 May 2025 09:17:49 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-akismet?expand=0&rev=12 --- .gitattributes | 23 +++++++++++++++ .gitignore | 1 + akismet-1.2.1.tar.gz | 3 ++ python-akismet.changes | 58 ++++++++++++++++++++++++++++++++++++++ python-akismet.spec | 63 ++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 148 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 akismet-1.2.1.tar.gz create mode 100644 python-akismet.changes create mode 100644 python-akismet.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/akismet-1.2.1.tar.gz b/akismet-1.2.1.tar.gz new file mode 100644 index 0000000..f539ae4 --- /dev/null +++ b/akismet-1.2.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f3790489ea091d43a14717f1f6b1a0a86af2ac235d10b13742ee0ea064ff8ea7 +size 16784 diff --git a/python-akismet.changes b/python-akismet.changes new file mode 100644 index 0000000..9dd1f10 --- /dev/null +++ b/python-akismet.changes @@ -0,0 +1,58 @@ +------------------------------------------------------------------- +Tue May 13 07:58:01 UTC 2025 - Markéta Machová + +- Convert to pip-based build + +------------------------------------------------------------------- +Thu Aug 4 08:32:22 UTC 2022 - Otto Hollmann + +- Update to 1.2.1: + * Add support for python 3.10 + * Drop python 3.6 + +------------------------------------------------------------------- +Mon Dec 6 22:55:52 UTC 2021 - Matej Cepl + +- Separate package mock is actually not needed. + +------------------------------------------------------------------- +Fri Apr 17 11:08:49 UTC 2020 - Marketa Calabkova + +- Update to 1.1 + * akismet 1.1 and later do not support Python 2 + * support for recheck_reason, used when a comment or other content + is being submitted a second or later time, and indicating the reason + +------------------------------------------------------------------- +Thu Nov 7 16:13:32 UTC 2019 - Matej Cepl + +- Run through spec-cleaner + +------------------------------------------------------------------- +Thu Aug 2 08:52:21 UTC 2018 - tchvatal@suse.com + +- Remove not required dependency on devel + +------------------------------------------------------------------- +Wed Oct 25 07:58:30 UTC 2017 - buschmann23@opensuse.org + +- update to version 1.0.1 + + no changelog available +- update to version 1.0.0 + + no changelog available +- spec file changes + + update url + + update source link + + convert to python single spec + +------------------------------------------------------------------- +Sat Mar 26 00:53:50 UTC 2011 - alexandre@exatati.com.br + +- Regenerate spec file with py2pack; +- Bzip2 source file; +- Add README.txt as documentation. + +------------------------------------------------------------------- +Thu Apr 29 03:02:22 UTC 2010 - alexandre@exatati.com.br + +- Initial package (0.2.0) for openSUSE. diff --git a/python-akismet.spec b/python-akismet.spec new file mode 100644 index 0000000..92965bb --- /dev/null +++ b/python-akismet.spec @@ -0,0 +1,63 @@ +# +# spec file for package python-akismet +# +# Copyright (c) 2025 SUSE LLC +# Copyright (c) 2017 Matthias Fehring +# +# 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. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define mod_name akismet +Name: python-%{mod_name} +Version: 1.2.1 +Release: 0 +Summary: Interface to the Akismet Anti Comment-Spam API +License: BSD-3-Clause +URL: https://github.com/ubernostrum/akismet +Source0: https://files.pythonhosted.org/packages/source/a/%{mod_name}/%{mod_name}-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module requests} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +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 +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# Can't run the tests as they need working server API +#%%pytest + +%files %{python_files} +%license LICENSE +%doc README.rst +%{python_sitelib}/akismet.py +%{python_sitelib}/akismet-%{version}*-info +%pycache_only %{python_sitelib}/__pycache__/akismet* + +%changelog