15
0
Files
python-happybase/python-happybase.spec
Thomas Bechtold 62431e645b Accepting request 518703 from home:tbechtold:branches:devel:languages:python
- update to 1.1.0:
  * Set socket timeout unconditionally on ``TSocket``
  * Add new ‘0.98’ compatibility mode
  * Add support for reversed scanners
  * From now on this library uses a semantic versioning scheme.
    HappyBase is a mature library, but always used 0.x version numbers
    for no good reason. This has now changed.
  * Finally, Python 3 support. Thanks to all the people who contributed!
  * Switch to thriftpy as the underlying Thrift library, which is a much
    nicer and better maintained library.
  * Enable building universal wheels
- convert to singlespec
- split -doc package

OBS-URL: https://build.opensuse.org/request/show/518703
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-happybase?expand=0&rev=16
2017-08-25 10:22:47 +00:00

75 lines
2.3 KiB
RPMSpec

#
# spec file for package python-happybase
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-happybase
Version: 1.1.0
Release: 0
Summary: A developer-friendly Python library to interact with Apache HBase
License: MIT
Group: Development/Languages/Python
Url: https://github.com/wbolster/happybase
Source: https://files.pythonhosted.org/packages/source/h/happybase/happybase-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module thriftpy}
BuildRequires: python-rpm-macros
BuildRequires: python3-Sphinx
Requires: python-six
Requires: python-thriftpy >= 0.3.8
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%python_subpackages
%description
HappyBase is a developer-friendly Python library to interact with Apache HBase.
%package -n python-happybase-doc
Summary: Documentation for %{name}
Group: Documentation/Other
Provides: %{python_module happybase-doc = %{version}}
%description -n python-happybase-doc
HappyBase is a developer-friendly Python library to interact with Apache HBase.
This package contains the documentation.
%prep
%setup -q -n happybase-%{version}
%build
%python_build
sphinx-build -b html doc docs/build/html
%install
%python_install
%check
%python_exec setup.py test
%files %{python_files}
%defattr(-,root,root,-)
%doc LICENSE.rst NEWS.rst README.rst TODO.rst
%{python_sitelib}/*
%files -n python-happybase-doc
%doc LICENSE.rst docs/build/html
%changelog