2018-08-29 13:04:09 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-hiredis
|
|
|
|
|
#
|
2024-01-02 22:33:30 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2018-08-29 13:04:09 +00:00
|
|
|
#
|
|
|
|
|
# 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.
|
|
|
|
|
|
2019-08-27 00:53:49 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-08-29 13:04:09 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2023-06-11 12:56:28 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2018-08-29 13:04:09 +00:00
|
|
|
Name: python-hiredis
|
2023-12-20 21:50:27 +00:00
|
|
|
Version: 2.3.2
|
2018-08-29 13:04:09 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Python wrapper for hiredis
|
|
|
|
|
License: BSD-3-Clause
|
|
|
|
|
URL: https://github.com/redis/hiredis-py
|
2022-01-16 13:27:21 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/h/hiredis/hiredis-%{version}.tar.gz
|
2021-12-31 13:23:52 +00:00
|
|
|
# PATCH-FIX-UPSTREAM drop-vendor-sources.patch gh#redis/hiredis-py#90 mcepl@suse.com
|
|
|
|
|
# Allow to use platform hiredis libs on build
|
2023-03-19 09:48:24 +00:00
|
|
|
Patch0: drop-vendor-sources.patch
|
2023-03-18 20:23:07 +00:00
|
|
|
# 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
|
2023-03-19 09:48:24 +00:00
|
|
|
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
|
2018-08-29 13:04:09 +00:00
|
|
|
BuildRequires: %{python_module devel}
|
2023-03-18 20:23:07 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2024-01-02 22:33:30 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2023-03-18 20:23:07 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2018-08-29 13:04:09 +00:00
|
|
|
BuildRequires: fdupes
|
2021-03-03 12:42:11 +00:00
|
|
|
BuildRequires: hiredis-devel >= 1.0.0
|
2018-08-29 13:04:09 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Python wrapper for hiredis C connector.
|
|
|
|
|
|
|
|
|
|
%prep
|
2023-03-18 20:23:07 +00:00
|
|
|
%autosetup -p1 -n hiredis-%{version}
|
2018-08-29 13:04:09 +00:00
|
|
|
|
2023-03-19 09:48:24 +00:00
|
|
|
# Use system hiredis
|
|
|
|
|
rm -r vendor/hiredis
|
|
|
|
|
|
2018-08-29 13:04:09 +00:00
|
|
|
%build
|
2023-03-18 20:23:07 +00:00
|
|
|
%pyproject_wheel
|
2018-08-29 13:04:09 +00:00
|
|
|
|
|
|
|
|
%install
|
2023-03-18 20:23:07 +00:00
|
|
|
%pyproject_install
|
2018-08-29 13:04:09 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
|
|
|
|
|
2023-03-18 20:23:07 +00:00
|
|
|
# %%check
|
|
|
|
|
# export PYTHONPATH=%%{buildroot}%%{$python_sitearch}
|
|
|
|
|
# %%python_exec test.py
|
2018-08-29 13:04:09 +00:00
|
|
|
|
|
|
|
|
%files %{python_files}
|
2023-03-18 20:23:07 +00:00
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.md
|
|
|
|
|
%{python_sitearch}/hiredis
|
|
|
|
|
%{python_sitearch}/hiredis-%{version}*-info
|
2018-08-29 13:04:09 +00:00
|
|
|
|
|
|
|
|
%changelog
|