diff --git a/python-oslo-i18n.spec b/python-oslo-i18n.spec index 2b81038..268dbc1 100644 --- a/python-oslo-i18n.spec +++ b/python-oslo-i18n.spec @@ -7,7 +7,7 @@ Name: python-oslo-i18n Version: 2.5.0 -Release: 3%{?dist} +Release: 4%{?dist} Summary: OpenStack i18n library License: ASL 2.0 URL: https://github.com/openstack/%{pypi_name} @@ -23,6 +23,10 @@ or library. %package -n python2-oslo-i18n Summary: OpenStack i18n Python 2 library %{?python_provide:%python_provide python2-oslo-i18n} +# python_provide does not exist in CBS Cloud buildroot +Provides: python-oslo-i18n = %{version}-%{release} +Obsoletes: python-oslo-i18n < 2.5.0-2 + BuildRequires: python2-devel BuildRequires: python-setuptools BuildRequires: python-pbr @@ -35,8 +39,6 @@ Requires: python-babel Requires: python-six Requires: python-fixtures -Obsoletes: python-oslo-i18n < 2.5.0-2 - %description -n python2-oslo-i18n The oslo.i18n library contain utilities for working with internationalization (i18n) features, especially translation for text strings in an application @@ -66,17 +68,22 @@ or library. %package -n python2-oslo-i18n-doc Summary: Documentation for OpenStack i18n library +%{?python_provide:%python_provide python2-oslo-i18n-doc} +# python_provide does not exist in CBS Cloud buildroot +Provides: python-oslo-i18n-doc = %{version}-%{release} +Obsoletes: python-oslo-i18n-doc < 2.5.0-2 + BuildRequires: python-sphinx BuildRequires: python-oslo-sphinx -Obsoletes: python-oslo-i18n-doc < 2.5.0-2 - %description -n python2-oslo-i18n-doc Documentation for the oslo.i18n library. %if 0%{?with_python3} %package -n python3-oslo-i18n-doc Summary: Documentation for OpenStack i18n library +%{?python_provide:%python_provide python3-oslo-i18n-doc} + BuildRequires: python3-sphinx BuildRequires: python3-oslo-sphinx @@ -169,6 +176,10 @@ popd %endif %changelog +* Thu Sep 03 2015 Parag Nemade - 2.5.0-4 +- Add explicit Provides: python-oslo-i18n for CBS Cloud buildroot +- also add missing python_provide macro for -doc subpackages + * Thu Sep 03 2015 Parag Nemade - 2.5.0-3 - Also Obsolete python-oslo-i18n-doc package