2013-03-13 09:44:59 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-happybase
|
|
|
|
#
|
2020-03-31 13:30:55 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2013-03-13 09:44:59 +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.
|
|
|
|
|
2018-12-04 13:31:40 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-04-05 07:36:51 +00:00
|
|
|
#
|
2013-03-13 09:44:59 +00:00
|
|
|
|
|
|
|
|
2017-08-25 10:22:47 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2013-03-13 09:44:59 +00:00
|
|
|
Name: python-happybase
|
2019-09-12 10:00:59 +00:00
|
|
|
Version: 1.2.0
|
2013-03-13 09:44:59 +00:00
|
|
|
Release: 0
|
2017-09-04 05:24:56 +00:00
|
|
|
Summary: A Python library to interact with Apache HBase
|
2013-04-05 07:36:51 +00:00
|
|
|
License: MIT
|
2013-03-13 09:44:59 +00:00
|
|
|
Group: Development/Languages/Python
|
2018-12-04 17:14:16 +00:00
|
|
|
URL: https://github.com/wbolster/happybase
|
2019-09-12 10:00:59 +00:00
|
|
|
Source: https://github.com/wbolster/happybase/archive/%{version}.tar.gz
|
2020-03-31 13:30:55 +00:00
|
|
|
# https://github.com/python-happybase/happybase/pull/238
|
|
|
|
Patch0: use_pytest.patch
|
|
|
|
BuildRequires: %{python_module pytest}
|
2017-08-25 10:22:47 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2019-09-12 10:00:59 +00:00
|
|
|
BuildRequires: %{python_module thriftpy2}
|
|
|
|
BuildRequires: fdupes
|
2017-08-25 10:22:47 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
BuildRequires: python3-Sphinx
|
|
|
|
Requires: python-six
|
2019-09-12 10:00:59 +00:00
|
|
|
Requires: python-thriftpy2 >= 0.4
|
2013-03-13 09:44:59 +00:00
|
|
|
BuildArch: noarch
|
2017-08-25 10:22:47 +00:00
|
|
|
%python_subpackages
|
2013-03-13 09:44:59 +00:00
|
|
|
|
|
|
|
%description
|
2017-09-04 05:24:56 +00:00
|
|
|
HappyBase is a Python library to interact with Apache HBase.
|
2013-03-13 09:44:59 +00:00
|
|
|
|
2017-08-25 10:22:47 +00:00
|
|
|
%package -n python-happybase-doc
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
Group: Documentation/Other
|
|
|
|
Provides: %{python_module happybase-doc = %{version}}
|
|
|
|
|
|
|
|
%description -n python-happybase-doc
|
2017-09-04 05:24:56 +00:00
|
|
|
HappyBase is a Python library to interact with Apache HBase.
|
2017-08-25 10:22:47 +00:00
|
|
|
|
|
|
|
This package contains the documentation.
|
|
|
|
|
2013-03-13 09:44:59 +00:00
|
|
|
%prep
|
|
|
|
%setup -q -n happybase-%{version}
|
2020-03-31 13:30:55 +00:00
|
|
|
%patch0 -p1
|
2013-03-13 09:44:59 +00:00
|
|
|
|
|
|
|
%build
|
2017-08-25 10:22:47 +00:00
|
|
|
%python_build
|
|
|
|
sphinx-build -b html doc docs/build/html
|
2013-03-13 09:44:59 +00:00
|
|
|
|
|
|
|
%install
|
2017-08-25 10:22:47 +00:00
|
|
|
%python_install
|
2019-09-12 10:00:59 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
rm -r docs/build/html/.[a-z]*
|
2013-03-13 09:44:59 +00:00
|
|
|
|
2013-03-13 09:57:16 +00:00
|
|
|
%check
|
2019-09-12 10:00:59 +00:00
|
|
|
# the api tests need running thrift server
|
2020-03-31 13:30:55 +00:00
|
|
|
%pytest tests/test_util.py
|
2013-03-13 09:57:16 +00:00
|
|
|
|
2017-08-25 10:22:47 +00:00
|
|
|
%files %{python_files}
|
2018-12-04 17:14:16 +00:00
|
|
|
%license LICENSE.rst
|
|
|
|
%doc NEWS.rst README.rst TODO.rst
|
2013-03-13 09:44:59 +00:00
|
|
|
%{python_sitelib}/*
|
|
|
|
|
2017-08-25 10:22:47 +00:00
|
|
|
%files -n python-happybase-doc
|
2018-12-04 17:14:16 +00:00
|
|
|
%license LICENSE.rst
|
|
|
|
%doc docs/build/html
|
2017-08-25 10:22:47 +00:00
|
|
|
|
2013-03-13 09:44:59 +00:00
|
|
|
%changelog
|