2012-03-10 17:30:00 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-cl
|
|
|
|
|
#
|
2022-03-02 08:46:20 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2012-03-10 17:30:00 +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.
|
2013-01-14 09:31:58 +00:00
|
|
|
|
2018-12-04 13:19:56 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-03-10 17:30:00 +00:00
|
|
|
#
|
|
|
|
|
|
2013-01-14 09:31:58 +00:00
|
|
|
|
2017-09-05 09:41:49 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2012-03-10 17:30:00 +00:00
|
|
|
Name: python-cl
|
|
|
|
|
Version: 0.0.3
|
|
|
|
|
Release: 0
|
|
|
|
|
Summary: Kombu actor framework
|
|
|
|
|
License: BSD-2-Clause
|
|
|
|
|
Group: Development/Languages/Python
|
2022-10-13 07:15:10 +00:00
|
|
|
URL: https://github.com/ask/cl/
|
2017-09-05 09:41:49 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/c/cl/cl-%{version}.tar.gz
|
2022-03-02 08:57:30 +00:00
|
|
|
# PATCH-FIX-UPSTREAM port-2to3.patch bsc#[0-9]+ mcepl@suse.com
|
|
|
|
|
# Remove use_2to3 in setup.py
|
|
|
|
|
Patch0: port-2to3.patch
|
2018-12-06 15:00:57 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2018-12-06 15:25:34 +00:00
|
|
|
BuildRequires: fdupes
|
2017-09-05 09:41:49 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2012-03-10 17:30:00 +00:00
|
|
|
Requires: python-kombu
|
|
|
|
|
BuildArch: noarch
|
2022-03-02 08:46:20 +00:00
|
|
|
Requires(post): update-alternatives
|
|
|
|
|
Requires(postun):update-alternatives
|
2017-09-05 09:41:49 +00:00
|
|
|
%python_subpackages
|
2012-03-10 17:30:00 +00:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Actor framework for Kombu
|
|
|
|
|
|
|
|
|
|
%prep
|
2022-03-02 08:57:30 +00:00
|
|
|
%autosetup -p1 -n cl-%{version}
|
2012-03-10 17:30:00 +00:00
|
|
|
|
|
|
|
|
%build
|
2017-09-05 09:41:49 +00:00
|
|
|
%python_build
|
2012-03-10 17:30:00 +00:00
|
|
|
|
|
|
|
|
%install
|
2017-09-05 09:41:49 +00:00
|
|
|
%python_install
|
2018-12-06 15:25:34 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/cl
|
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
%python_install_alternative cl
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
%python_uninstall_alternative cl
|
2012-03-10 17:30:00 +00:00
|
|
|
|
2017-09-05 09:41:49 +00:00
|
|
|
%files %{python_files}
|
2018-12-04 17:11:09 +00:00
|
|
|
%license LICENSE
|
|
|
|
|
%doc AUTHORS README examples
|
2018-12-06 15:25:34 +00:00
|
|
|
%python_alternative %{_bindir}/cl
|
2012-03-10 17:30:00 +00:00
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
|
|
%changelog
|