2018-11-29 13:23:43 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-avro
|
|
|
|
#
|
2020-03-05 10:01:17 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2018-11-29 13:23:43 +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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
Name: python-avro
|
2020-07-12 06:35:07 +00:00
|
|
|
Version: 1.10.0
|
2018-11-29 13:23:43 +00:00
|
|
|
Release: 0
|
2018-11-30 01:51:36 +00:00
|
|
|
Summary: A serialization and RPC framework for Python
|
2018-11-29 13:23:43 +00:00
|
|
|
License: Apache-2.0
|
|
|
|
Group: Development/Languages/Python
|
2019-09-13 11:31:12 +00:00
|
|
|
URL: https://avro.apache.org/
|
2018-11-29 13:23:43 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/a/avro/avro-%{version}.tar.gz
|
2019-09-13 11:30:54 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2018-11-29 13:23:43 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2020-05-28 07:32:21 +00:00
|
|
|
Requires(post): update-alternatives
|
|
|
|
Requires(postun): update-alternatives
|
2020-07-12 06:35:07 +00:00
|
|
|
Requires: python-Twisted
|
|
|
|
Requires: python-zope.interface
|
2018-11-29 13:23:43 +00:00
|
|
|
Suggests: python-python-snappy
|
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
2020-07-12 06:35:07 +00:00
|
|
|
Apache Avro is a serialization and RPC framework.
|
|
|
|
This package contains the python implementation of Avro.
|
2018-11-29 13:23:43 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n avro-%{version}
|
2020-07-12 06:35:07 +00:00
|
|
|
sed -i '1{\@^#!/usr/bin/env python@d}' avro/*.py avro/tether/*.py avro/test/*.py
|
2018-11-29 13:23:43 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
2020-05-28 07:32:21 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/avro
|
2018-11-29 13:23:43 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
2020-07-12 06:35:07 +00:00
|
|
|
# test_server_with_path: tries to connect to apache.org
|
|
|
|
%pytest -k "not test_server_with_path"
|
2018-11-29 13:23:43 +00:00
|
|
|
|
2020-05-28 07:32:21 +00:00
|
|
|
%post
|
|
|
|
%python_install_alternative avro
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%python_uninstall_alternative avro
|
|
|
|
|
2018-11-29 13:23:43 +00:00
|
|
|
%files %{python_files}
|
2020-05-28 07:32:21 +00:00
|
|
|
%python_alternative %{_bindir}/avro
|
2020-07-12 06:35:07 +00:00
|
|
|
%{python_sitelib}/avro
|
|
|
|
%{python_sitelib}/avro-%{version}-py*.egg-info
|
2018-11-29 13:23:43 +00:00
|
|
|
|
|
|
|
%changelog
|