File python-babel.spec of Package python-babel
#
# spec file for package python-babel
#
# 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/
#
%global srcname Babel
%global sum Library for internationalizing Python applications
Name: babel
Version: 2.11.0
Release: 0
Summary: Tools for internationalizing Python applications
License: BSD
URL: https://babel.pocoo.org/
Source0: Babel-2.11.0.tar.gz
BuildRequires: python3-devel
BuildRequires: python3-setuptools
Requires: python3-babel
Requires: python3-setuptools
BuildArch: noarch
%description
Babel is composed of two major parts:
* tools to build and work with gettext message catalogs
* a Python interface to the CLDR (Common Locale Data Repository),
providing access to various locale display names, localized number
and date formatting, etc.
%package -n python3-babel
%{?python_provide:%python_provide python3-babel}
Summary: %{sum}
Requires: python3-pytz
Requires: python3-setuptools
%description -n python3-babel
Babel is composed of two major parts:
* tools to build and work with gettext message catalogs
* a Python interface to the CLDR (Common Locale Data Repository),
providing access to various locale display names, localized number
and date formatting, etc.
%prep
%autosetup -p1 -n %{srcname}-%{version}
%build
%py3_build
BUILDDIR="$PWD/built-docs"
rm -rf "$BUILDDIR"
%install
%py3_install
%files
%doc CHANGES.rst AUTHORS
%license LICENSE
%{_bindir}/pybabel
%files -n python3-babel
%{python3_sitelib}/Babel-%{version}-py*.egg-info/
%{python3_sitelib}/babel/
%changelog