The package rpms/python-pyahocorasick.git has added or updated architecture specific content in its spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s): https://src.fedoraproject.org/cgit/rpms/python-pyahocorasick.git/commit/?id=....
Change: +ExclusiveArch: x86_64 %{arm64} ppc64le
Thanks.
Full change: ============
commit bca8b8c1d6188f63da9396d2984b073c0c73bcc6 Author: Robert-André Mauchin zebob.m@gmail.com Date: Sun Oct 29 19:41:49 2023 +0100
Disable non supported architectures
diff --git a/python-pyahocorasick.spec b/python-pyahocorasick.spec index df6d0bb..cb74208 100644 --- a/python-pyahocorasick.spec +++ b/python-pyahocorasick.spec @@ -9,6 +9,10 @@ License: BSD-3-Clause AND LicenseRef-Fedora-Public-Domain URL: https://github.com/WojciechMula/pyahocorasick Source: %url/archive/%{version}/%{pypi_name}-%{version}.tar.gz
+# https://github.com/WojciechMula/pyahocorasick/issues/142 +# https://github.com/WojciechMula/pyahocorasick/blob/master/README.rst +ExclusiveArch: x86_64 %{arm64} ppc64le + BuildRequires: gcc BuildRequires: python3-devel BuildRequires: python3dist(pytest)
commit 93cb191dd272cbd79f34c687d36b9227b5a9a067 Author: Robert-André Mauchin zebob.m@gmail.com Date: Sun Oct 29 18:51:56 2023 +0100
Initial import
Close: rhbz#2235078
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6d98f16 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/pyahocorasick-2.0.0.tar.gz diff --git a/python-pyahocorasick.spec b/python-pyahocorasick.spec new file mode 100644 index 0000000..df6d0bb --- /dev/null +++ b/python-pyahocorasick.spec @@ -0,0 +1,81 @@ +%global pypi_name pyahocorasick + +Name: python-%{pypi_name} +Version: 2.0.0 +Release: %autorelease +Summary: Python module (C extension and plain Python) implementing Aho-Corasick algorithm + +License: BSD-3-Clause AND LicenseRef-Fedora-Public-Domain +URL: https://github.com/WojciechMula/pyahocorasick +Source: %url/archive/%{version}/%{pypi_name}-%{version}.tar.gz + +BuildRequires: gcc +BuildRequires: python3-devel +BuildRequires: python3dist(pytest) +BuildRequires: python3dist(sphinx) + +%global common_description %{expand: +pyahocorasick is a fast and memory efficient library for exact or approximate +multi-pattern string search meaning that you can find multiple key strings +occurrences at once in some input text. The strings "index" can be built ahead +of time and saved (as a pickle) to disk to reload and reuse later. The library +provides an ahocorasick Python module that you can use as a plain dict-like Trie +or convert a Trie to an automaton for efficient Aho-Corasick search. + +pyahocorasick is implemented in C and tested on Python 3.6 and up. It works on +64 bits Linux, macOS and Windows.} + +%description %{common_description} + +%package -n python3-%{pypi_name} +Summary: %{summary} + +%description -n python3-%{pypi_name} %{common_description} + +%package -n python-%{pypi_name}-doc +Summary: Documentation for python-%{pypi_name} +# BSD-2-Clause: Sphinx javascript +# MIT: jquery +License: BSD-3-Clause AND BSD-2-Clause AND MIT +BuildArch: noarch +Requires: python3-%{pypi_name} = %{?epoch:%{epoch}:}%{version}-%{release} +Provides: bundled(js-doctools) +Provides: bundled(js-language_data) +Provides: bundled(js-searchtools) +Provides: bundled(js-sidebar) + +%description -n python-%{pypi_name}-doc +%{common_description} + +This package is providing the documentation for %{pypi_name}. + +%prep +%autosetup -p1 -n %{pypi_name}-%{version} + +%generate_buildrequires +%pyproject_buildrequires + +%build +%pyproject_wheel + +# generate html docs +sphinx-build-3 -b html docs/ html +# remove the sphinx-build-3 leftovers +rm -rf html/.{doctrees,buildinfo} + +%install +%pyproject_install + +%check +%pytest + +%files -n python3-%{pypi_name} +%doc CHANGELOG.rst +%{python3_sitearch}/ahocorasick.*.so +%{python3_sitearch}/%{pypi_name}-%{version}.dist-info + +%files -n python-%{pypi_name}-doc +%doc html + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..beaecbf --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (pyahocorasick-2.0.0.tar.gz) = 4a0652ff28cba260ebba83d3ffdcca993e849f197326a79dc7012f12ccaf5194c04fc46d9412ad9d0a9c44503d8cef44e8e25133fa4917d0bcc1f7f622f0f373
arch-excludes@lists.fedoraproject.org