[packages/python-oslo.i18n] - updated to 3.25.1
qboosh
qboosh at pld-linux.org
Sat Jan 20 10:57:01 CET 2024
commit d4cd6b593c774b0253f189cf2e777d8816b07f38
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Jan 20 09:49:28 2024 +0100
- updated to 3.25.1
python-oslo.i18n.spec | 73 +++++++++++++++++++++++++++++++++------------------
1 file changed, 47 insertions(+), 26 deletions(-)
---
diff --git a/python-oslo.i18n.spec b/python-oslo.i18n.spec
index 22291a1..9571bf9 100644
--- a/python-oslo.i18n.spec
+++ b/python-oslo.i18n.spec
@@ -1,32 +1,49 @@
#
# Conditional build:
-%bcond_with doc # build doc (broken)
-%bcond_with tests # do perform "make test" (broken)
+%bcond_without doc # Sphinx documentation
+%bcond_with tests # unit tests (incomplete dependencies)
%bcond_without python2 # CPython 2.x module
%bcond_without python3 # CPython 3.x module
Summary: Oslo i18n library
+Summary(pl.UTF-8): Biblioteka Oslo i18n
Name: python-oslo.i18n
-Version: 3.17.0
-Release: 8
+# keep 3.x for python2 support
+Version: 3.25.1
+Release: 1
License: Apache
Group: Libraries/Python
Source0: https://files.pythonhosted.org/packages/source/o/oslo.i18n/oslo.i18n-%{version}.tar.gz
-# Source0-md5: 5750633d9105a972554ea9aeb9662ef0
-URL: https://pypi.python.org/pypi/oslo.i18n
-BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.714
+# Source0-md5: 82e01af1ce6aecfdece62ac5c0dd650a
+URL: https://pypi.org/project/oslo.i18n
%if %{with python2}
-BuildRequires: python-pbr >= 2.0.0
+BuildRequires: python-pbr >= 3.0.0
+BuildRequires: python-modules >= 1:2.7
BuildRequires: python-setuptools
+%if %{with tests}
+BuildRequires: python-babel >= 2.5.0
+BuildRequires: python-six >= 1.10.0
+BuildRequires: python-stestr >= 2.0.0
+BuildRequires: python-testscenarios >= 0.4
+%endif
%endif
%if %{with python3}
-BuildRequires: python3-pbr >= 2.0.0
+BuildRequires: python3-pbr >= 3.0.0
+BuildRequires: python3-modules >= 1:3.6
BuildRequires: python3-setuptools
+%if %{with tests}
+BuildRequires: python3-babel >= 2.5.0
+BuildRequires: python3-six >= 1.10.0
+BuildRequires: python3-stestr >= 2.0.0
+BuildRequires: python3-testscenarios >= 0.4
+%endif
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+%if %{with doc}
+BuildRequires: python-openstackdocstheme >= 1.18.1
+BuildRequires: sphinx-pdg-2 >= 1.8.0
%endif
-Requires: python-babel >= 2.3.4
-Requires: python-pbr >= 2.0.0
-Requires: python-six >= 1.9.0
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -35,18 +52,26 @@ The oslo.i18n library contain utilities for working with
internationalization (i18n) features, especially translation for text
strings in an application or library.
+%description -l pl.UTF-8
+Biblioteka oslo.i18n zawiera narzędzia do pracy z funkcjonalnością
+umiędzynarodowienia (internationalization - i18n), w szczególności
+tłumaczenia łańcuchów tekstowych w aplikachach lub bibliotekach.
+
%package -n python3-oslo.i18n
Summary: Oslo i18n library
+Summary(pl.UTF-8): Biblioteka Oslo i18n
Group: Libraries/Python
-Requires: python3-babel >= 2.3.4
-Requires: python3-pbr >= 2.0.0
-Requires: python3-six >= 1.9.0
%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.
+%description -n python3-oslo.i18n -l pl.UTF-8
+Biblioteka oslo.i18n zawiera narzędzia do pracy z funkcjonalnością
+umiędzynarodowienia (internationalization - i18n), w szczególności
+tłumaczenia łańcuchów tekstowych w aplikachach lub bibliotekach.
+
%package apidocs
Summary: API documentation for Python oslo.i18n module
Summary(pl.UTF-8): Dokumentacja API modułu Pythona oslo.i18n
@@ -71,9 +96,7 @@ Dokumentacja API modułu Pythona oslo.i18n.
%endif
%if %{with doc}
-cd doc
-%{__make} -j1 html
-rm -rf _build/html/_sources
+sphinx-build-2 -b html doc/source doc/build/html
%endif
%install
@@ -82,17 +105,15 @@ rm -rf $RPM_BUILD_ROOT
%if %{with python2}
%py_install
-# when files are installed in other way that standard 'setup.py
-# they need to be (re-)compiled
-# change %{py_sitedir} to %{py_sitescriptdir} for 'noarch' packages!
-%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
-%py_comp $RPM_BUILD_ROOT%{py_sitedir}
-
%py_postclean
+
+%{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/oslo_i18n/tests
%endif
%if %{with python3}
%py3_install
+
+%{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/oslo_i18n/tests
%endif
%clean
@@ -117,5 +138,5 @@ rm -rf $RPM_BUILD_ROOT
%if %{with doc}
%files apidocs
%defattr(644,root,root,755)
-%doc doc/_build/html/*
+%doc doc/build/html/{_static,contributor,reference,user,*.html,*.js}
%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-oslo.i18n.git/commitdiff/d4cd6b593c774b0253f189cf2e777d8816b07f38
More information about the pld-cvs-commit
mailing list