15
0
Files
python-hiredis/python-hiredis.spec
Dirk Mueller 7997b924ea - update to 2.3.2:
* Added Python 3.12 to test matrix and classifiers (#174)
  * Linking to Redis learning resources (#173)
  * Updating client license to clear, MIT (#170)
  * Integrating spellcheck into CI (#169)
  * hiredis 1.2.0 support, versioning as 2.3.0 (#168)
  * Fix including tests in sdist (#166)
  * Use absolute imports and remove __init__.py from tests.
  * Implement garbage collection support in Reader (#162) (#163)
  * wrong encoding is used when opening README.md in setup.py
  * (BREAKING CHANGE) Add ability to control how unicode decoding

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hiredis?expand=0&rev=21
2023-12-20 21:50:27 +00:00

71 lines
2.2 KiB
RPMSpec

#
# spec file for package python-hiredis
#
# Copyright (c) 2023 SUSE LLC
#
# 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/
#
%{?sle15_python_module_pythons}
Name: python-hiredis
Version: 2.3.2
Release: 0
Summary: Python wrapper for hiredis
License: BSD-3-Clause
URL: https://github.com/redis/hiredis-py
Source: https://files.pythonhosted.org/packages/source/h/hiredis/hiredis-%{version}.tar.gz
# PATCH-FIX-UPSTREAM drop-vendor-sources.patch gh#redis/hiredis-py#90 mcepl@suse.com
# Allow to use platform hiredis libs on build
Patch0: drop-vendor-sources.patch
# PATCH-FIX-UPSTREAM 159-sdsalloc-to-alloc.patch gh#redis/hiredis-py#158 mcepl@suse.com
# Don't use sdsalloc, we actually don't need it
Patch1: 159-sdsalloc-to-alloc.patch
# PATCH-FIX-UPSTREAM 161-use-system-hiredis.patch gh#redis/hiredis-py#158 mcepl@suse.com
# use system hiredis instead
Patch2: 161-use-system-hiredis.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: hiredis-devel >= 1.0.0
BuildRequires: python-rpm-macros
%python_subpackages
%description
Python wrapper for hiredis C connector.
%prep
%autosetup -p1 -n hiredis-%{version}
# Use system hiredis
rm -r vendor/hiredis
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
# %%check
# export PYTHONPATH=%%{buildroot}%%{$python_sitearch}
# %%python_exec test.py
%files %{python_files}
%license LICENSE
%doc README.md
%{python_sitearch}/hiredis
%{python_sitearch}/hiredis-%{version}*-info
%changelog