2019-09-12 09:06:06 +00:00
|
|
|
#
|
2019-09-12 09:46:47 +00:00
|
|
|
# spec file for package python-thriftpy2
|
2019-09-12 09:06:06 +00:00
|
|
|
#
|
2019-09-12 09:46:47 +00:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2019-09-12 09:06:06 +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-09-12 09:46:47 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2019-09-12 09:06:06 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2019-09-12 09:46:47 +00:00
|
|
|
Name: python-thriftpy2
|
2019-10-08 09:11:57 +00:00
|
|
|
Version: 0.4.7
|
2019-09-12 09:06:06 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Pure python implementation of Apache Thrift
|
|
|
|
License: MIT
|
|
|
|
Group: Development/Languages/Python
|
2019-09-12 09:46:47 +00:00
|
|
|
URL: https://github.com/Thriftpy/thriftpy2
|
|
|
|
Source: https://github.com/Thriftpy/thriftpy2/archive/v%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module Cython >= 0.28.4}
|
2019-09-12 09:06:06 +00:00
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
BuildRequires: %{python_module ply >= 3.4}
|
2019-09-12 09:46:47 +00:00
|
|
|
BuildRequires: %{python_module pytest >= 2.8}
|
2019-09-12 09:06:06 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2019-09-19 08:05:54 +00:00
|
|
|
BuildRequires: %{python_module tornado >= 4.0}
|
|
|
|
BuildRequires: %{python_module toro >= 0.6}
|
2019-09-12 09:06:06 +00:00
|
|
|
BuildRequires: fdupes
|
2019-09-12 09:46:47 +00:00
|
|
|
BuildRequires: python-gdbm
|
2019-09-12 09:06:06 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2019-09-12 09:46:47 +00:00
|
|
|
BuildRequires: python3-dbm
|
2019-09-12 09:53:30 +00:00
|
|
|
BuildRequires: python3-pytest-asyncio
|
2019-09-12 09:06:06 +00:00
|
|
|
Requires: python-ply >= 3.4
|
2019-09-19 08:05:54 +00:00
|
|
|
Recommends: python-tornado >= 4.0
|
|
|
|
Recommends: python-toro >= 0.6
|
2019-09-12 09:06:06 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
ThriftPy is a pure python implementation of Apache Thrift in a
|
|
|
|
pythonic way.
|
|
|
|
|
|
|
|
%prep
|
2019-09-12 09:46:47 +00:00
|
|
|
%setup -q -n thriftpy2-%{version}
|
2019-09-12 09:06:06 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
|
|
|
|
2019-09-12 09:46:47 +00:00
|
|
|
%check
|
|
|
|
cd tests
|
2019-09-19 13:06:50 +00:00
|
|
|
# the two tests fail in OBS on timeout
|
|
|
|
%pytest_arch -k 'not (test_able_to_communicate or test_zero_length_string)'
|
2019-09-12 09:46:47 +00:00
|
|
|
|
2019-09-12 09:06:06 +00:00
|
|
|
%files %{python_files}
|
|
|
|
%license LICENSE
|
|
|
|
%doc CHANGES.rst README.rst
|
|
|
|
%{python_sitearch}/*
|
|
|
|
|
|
|
|
%changelog
|