15
0
Files
python-hiredis/python-hiredis.spec
Tomáš Chvátal 14a16377ac - Update to 1.0.1:
* Permit all allowed values of codec errors (see #86)
  * BUGFIX: READEME.md has UTF-8 characters, setup.py will fail on systems where the locale is not UTF-8. (see #89)
- Drop merged patch 0002-Fix-README.md-has-unicode.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hiredis?expand=0&rev=7
2020-01-16 08:58:13 +00:00

59 lines
1.7 KiB
RPMSpec

#
# spec file for package python-hiredis
#
# Copyright (c) 2020 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-hiredis
Version: 1.0.1
Release: 0
Summary: Python wrapper for hiredis
License: BSD-3-Clause
URL: https://github.com/redis/hiredis-py
Source: https://github.com/redis/hiredis-py/archive/v%{version}.tar.gz
Patch0: 0001-Use-system-libhiredis.patch
Patch1: fix_build_dir_in_tests.patch
Patch2: drop-vendor-sources.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: hiredis-devel >= 0.13.3
BuildRequires: python-rpm-macros
%python_subpackages
%description
Python wrapper for hiredis C connector.
%prep
%setup -q -n hiredis-py-%{version}
%autopatch -p1
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
%python_exec test.py
%files %{python_files}
%license COPYING
%{python_sitearch}/*
%changelog