Using django*.po files instead django*.mo 03/503/1
authorMaksym Yatsenko <myatsenko@mirantis.com>
Mon, 13 Oct 2014 09:07:56 +0000 (12:07 +0300)
committerDmitry Burmistrov <dburmistrov@mirantis.com>
Wed, 29 Oct 2014 20:35:40 +0000 (23:35 +0300)
Change-Id: Id19772e33c561aafb8b0436a148679ede0a7365b

rpm/SPECS/python-django-horizon.spec

index 9d783f4c53cb07fa92ad569927ca7cb13f187197..51a9a69da4dcef4f870809457edf2c050839e568 100644 (file)
@@ -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