File python-oslo.i18n.spec of Package python-oslo.i18n
#
# spec file for package python-oslo.i18n
#
# Copyright (c) 2024 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-oslo.i18n
Version: 6.4.0
Release: 0
Summary: OpenStack i18n library
License: Apache-2.0
Group: Development/Languages/Python
URL: https://docs.openstack.org/oslo.i18n
Source0: https://files.pythonhosted.org/packages/source/o/oslo.i18n/oslo.i18n-6.4.0.tar.gz
BuildRequires: openstack-macros
BuildRequires: python3-oslotest
BuildRequires: python3-pbr >= 2.0.0
BuildRequires: python3-stestr
BuildRequires: python3-testscenarios
BuildArch: noarch
%description
The oslo.i18n library contain utilities for working with internationalization
(i18n) features, especially translation for text strings in an application
or library.
%package -n python3-oslo.i18n
Summary: OpenStack i18n library
%description -n python3-oslo.i18n
The oslo.i18n library contain utilities for working with internationalization
(i18n) features, especially translation for text strings in an application
or library.
This package contains the Python 3.x module.
%package -n python-oslo.i18n-doc
Summary: Documentation for OpenStack i18n library
BuildRequires: python3-Sphinx
BuildRequires: python3-openstackdocstheme
BuildRequires: python3-sphinxcontrib-apidoc
%description -n python-oslo.i18n-doc
Documentation for the oslo.i18n library.
%prep
%autosetup -p1 -n oslo.i18n-6.4.0
%py_req_cleanup
%build
%{py3_build}
%install
%{py3_install}
# generate html docs
PBR_VERSION=%{version} %sphinx_build -b html doc/source doc/build/html
# remove the sphinx-build leftovers
rm -rf doc/build/html/.{doctrees,buildinfo}
%check
%{openstack_stestr_run}
%files -n python3-oslo.i18n
%license LICENSE
%{python3_sitelib}/oslo_i18n
%{python3_sitelib}/*egg-info
%files -n python-oslo.i18n-doc
%doc doc/build/html ChangeLog CONTRIBUTING.rst README.rst
%license LICENSE
%changelog