File python-oslo.i18n.spec of Package python-oslo.i18n
#
# spec file for package python-oslo.i18n
#
# Copyright (c) 2023 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: 5.0.1
Release: 0
Summary: OpenStack i18n library
License: Apache-2.0
Group: Development/Languages/Python
URL: https://launchpad.net/oslo.i18n
Source0: https://files.pythonhosted.org/packages/source/o/oslo.i18n/oslo.i18n-5.0.1.tar.gz
BuildRequires: openstack-macros
BuildRequires: python3-Babel
BuildRequires: python3-mock
BuildRequires: python3-oslotest
BuildRequires: python3-pbr
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
Requires: python3-Babel
Requires: python3-six
%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-5.0.1
%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
python3 -m stestr.cli 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