2017-08-16 02:56:55 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-sasl
|
|
|
|
|
#
|
2024-03-14 03:59:15 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2017-08-16 02:56:55 +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.
|
|
|
|
|
|
2021-04-16 08:25:43 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-08-16 02:56:55 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%bcond_without test
|
|
|
|
|
Name: python-sasl
|
2023-02-21 08:05:30 +00:00
|
|
|
Version: 0.3.1
|
2017-08-16 02:56:55 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: SASL for Python
|
|
|
|
|
License: Apache-2.0
|
2021-04-16 08:25:43 +00:00
|
|
|
URL: https://github.com/cloudera/python-sasl
|
2017-08-16 02:56:55 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/s/sasl/sasl-%{version}.tar.gz
|
2024-03-14 03:59:15 +00:00
|
|
|
# PATCH-FIX-UPSTREAM Based on gh#cloudera/python-sasl#32
|
|
|
|
|
Patch0: cythonize-during-build.patch
|
2024-06-10 21:16:36 +00:00
|
|
|
# PATCH-FIX-UPSTREAM https://github.com/cloudera/python-sasl/pull/33 Drop python-six dependency
|
|
|
|
|
Patch1: remove-six.patch
|
2024-03-14 03:59:15 +00:00
|
|
|
BuildRequires: %{python_module Cython}
|
2017-08-16 02:56:55 +00:00
|
|
|
BuildRequires: %{python_module devel}
|
2024-03-14 03:59:15 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2017-08-16 02:56:55 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2024-03-14 03:59:15 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2017-08-16 02:56:55 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: gcc-c++
|
2021-04-16 08:25:43 +00:00
|
|
|
BuildRequires: pkgconfig
|
2017-08-16 02:56:55 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
|
BuildRequires: pkgconfig(libsasl2)
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Cyrus-SASL bindings for Python.
|
|
|
|
|
|
|
|
|
|
%prep
|
2023-02-21 08:05:30 +00:00
|
|
|
%autosetup -p1 -n sasl-%{version}
|
2017-08-16 02:56:55 +00:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
export CFLAGS="%{optflags}"
|
2024-03-14 03:59:15 +00:00
|
|
|
%pyproject_wheel
|
2017-08-16 02:56:55 +00:00
|
|
|
|
|
|
|
|
%install
|
2024-03-14 03:59:15 +00:00
|
|
|
%pyproject_install
|
2017-08-16 02:56:55 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
2024-03-14 03:59:15 +00:00
|
|
|
# Don't ship generated sources
|
|
|
|
|
%python_expand rm %{buildroot}%{$python_sitearch}/sasl/saslwrapper.{cpp,h}
|
2017-08-16 02:56:55 +00:00
|
|
|
|
|
|
|
|
%files %{python_files}
|
2021-04-16 08:25:43 +00:00
|
|
|
%doc PKG-INFO
|
|
|
|
|
%license LICENSE.txt
|
2023-02-21 08:05:30 +00:00
|
|
|
%{python_sitearch}/sasl
|
2024-03-14 03:59:15 +00:00
|
|
|
%{python_sitearch}/sasl-%{version}.dist-info
|
2017-08-16 02:56:55 +00:00
|
|
|
|
|
|
|
|
%changelog
|