File python-sphinx-feature-classification.spec of Package python-sphinx-feature-classification

#
# spec file for package python-sphinx-feature-classification
#
# Copyright (c) 2020 SUSE LLC
#
# 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/
#


Name:           python-sphinx-feature-classification
Version:        1.1.0
Release:        0
Summary:        OpenStack sphinx-feature-classification library
License:        Apache-2.0
Group:          Development/Languages/Python
URL:            https://docs.openstack.org/sphinx-feature-classification/latest/
Source0:        https://files.pythonhosted.org/packages/source/s/sphinx-feature-classification/sphinx-feature-classification-1.1.0.tar.gz
BuildRequires:  openstack-macros
BuildRequires:  python3-ddt
BuildRequires:  python3-devel
BuildRequires:  python3-oslotest
BuildRequires:  python3-pbr
BuildRequires:  python3-testrepository
BuildRequires:  python3-testtools
BuildArch:      noarch

%description
This is a Sphinx directive that allows creating matrices of drivers
a project contains and which features they support.

%package -n python3-sphinx-feature-classification
Summary:        OpenStack sphinx-feature-classification library
Group:          Development/Languages/Python
Requires:       python3-docutils
Requires:       python3-pbr

%description -n python3-sphinx-feature-classification
This is a Sphinx directive that allows creating matrices of drivers
a project contains and which features they support.

%package -n python-sphinx-feature-classification-doc
Summary:        Documentation for the OpenStack sphinx-feature-classification library
Group:          Development/Languages/Python
BuildRequires:  python3-Sphinx
BuildRequires:  python3-openstackdocstheme

%description -n python-sphinx-feature-classification-doc
Documentation for the OpenStack sphinx-feature-classification library.

%prep
%autosetup -p1 -n sphinx-feature-classification-1.1.0
%py_req_cleanup

%build
%{py3_build}

PYTHONPATH=. %sphinx_build -b html doc/source doc/build/html
# remove the sphinx-build leftovers
rm -rf doc/build/html/.{doctrees,buildinfo}

%install
%{py3_install}

%check
PYTHON=python3 python3 setup.py test

%files -n python3-sphinx-feature-classification
%license LICENSE
%{python3_sitelib}/sphinx_feature_classification
%{python3_sitelib}/*.egg-info

%files -n python-sphinx-feature-classification-doc
%doc doc/build/html README.rst
%license LICENSE

%changelog