diff --git a/python-oslo-i18n.spec b/python-oslo-i18n.spec index 1dba8d0..eb86c56 100644 --- a/python-oslo-i18n.spec +++ b/python-oslo-i18n.spec @@ -61,6 +61,7 @@ Documentation for the oslo.i18n library. %endif %package -n python-%{pkg_name}-lang +BuildRequires: python3-babel Summary: Translation files for Oslo i18n library %description -n python-%{pkg_name}-lang @@ -107,15 +108,15 @@ done # remove the sphinx-build-3 leftovers rm -rf doc/build/html/.{doctrees,buildinfo} -# Generate i18n files -python3 setup.py compile_catalog -d %{buildroot}%{python3_sitelib}/oslo_i18n/locale --domain oslo_i18n - # Fix this rpmlint warning if [ -f html/_static/jquery.js ]; then sed -i "s|\r||g" html/_static/jquery.js fi %endif +# Generate i18n files +python3 setup.py compile_catalog -d %{buildroot}%{python3_sitelib}/oslo_i18n/locale --domain oslo_i18n + # Install i18n .mo files (.po and .pot are not required) install -d -m 755 %{buildroot}%{_datadir} rm -f %{buildroot}%{python3_sitelib}/oslo_i18n/locale/*/LC_*/oslo_i18n*po