From bdfdfd19f2c2b99a7ed1f6fc4d470a10ce890c9d Mon Sep 17 00:00:00 2001 From: Maksym Yatsenko Date: Mon, 13 Oct 2014 12:07:56 +0300 Subject: [PATCH] Using django*.po files instead django*.mo Change-Id: Id19772e33c561aafb8b0436a148679ede0a7365b --- rpm/SPECS/python-django-horizon.spec | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/rpm/SPECS/python-django-horizon.spec b/rpm/SPECS/python-django-horizon.spec index 9d783f4..51a9a69 100644 --- a/rpm/SPECS/python-django-horizon.spec +++ b/rpm/SPECS/python-django-horizon.spec @@ -221,9 +221,6 @@ Customization module for OpenStack Dashboard to provide a branded logo. #git commit -a -q -m "%{version} baseline" #git am %{patches} -# remove unnecessary .po files -find . -name "django*.po" -exec rm -f '{}' \; - sed -i s/REDHATVERSION/%{version}/ horizon/version.py sed -i s/REDHATRELEASE/%{release}/ horizon/version.py @@ -317,9 +314,9 @@ mv %{buildroot}%{_datadir}/openstack-dashboard/openstack_dashboard/conf/*.json % # # The rest of the packaging guideline still apply -- do not list # locale files by hand! -(cd $RPM_BUILD_ROOT && find . -name 'django*.mo') | %{__sed} -e 's|^.||' | +(cd $RPM_BUILD_ROOT && find . -name 'django*.po') | %{__sed} -e 's|^.||' | %{__sed} -e \ - 's:\(.*/locale/\)\([^/_]\+\)\(.*\.mo$\):%lang(\2) \1\2\3:' \ + 's:\(.*/locale/\)\([^/_]\+\)\(.*\.po$\):%lang(\2) \1\2\3:' \ >> django.lang %endif -- 2.45.2