Summary: Openstack web user interface reference implementation
Group: Applications/System
+Requires: gettext
Requires: httpd
Requires: mod_wsgi
Requires: python-django-horizon >= %{version}
# create /var/log/horizon and own it
mkdir -p %{buildroot}%{_var}/log/horizon
+%post -n openstack-dashboard
+# make sure the l10n strings are compiled
+if [ -d /usr/share/openstack-dashboard/openstack_dashboard/locale -a -e /usr/share/openstack-dashboard/manage.py ] ; then
+ pushd /usr/share/openstack-dashboard/openstack_dashboard
+ %{__python} ../manage.py compilemessages
+ popd
+else
+ echo "Couldn't compile Django l10n strings (.mo files)"
+fi
%check
# don't run tests on rhel
%doc html
%changelog
+* Mon Jun 01 2015 Timur Sufiev <tsufiev@mirantis.com> 2014.2.b3
+- Update requirements
+- Compile l10n strings at post-install
+
* Mon Apr 24 2015 Vasyl Saienko <vsaienko@mirantis.com> 2014.2.2
- added {python_sitelib}/horizon/backends to files section (LP #1367767)
* Mon Apr 06 2015 Ivan Berezovskiy <iberezovskiy@mirantis.com> 2014.2.2
- Fix netaddr in requirements.txt (LP #1439079)
-
* Mon Mar 02 2015 Mikhail Ivanov <mivanov@mirantis.com> 2014.2.2
- Update requirements
-
* Tue Sep 23 2014 Ivan Berezovskiy <iberezovskiy@mirantis.com> 2014.2.b3
- Update requirements
- Add simple tests
+horizon (1:2014.2.2-1~u14.04+mos2) mos6.1; urgency=medium
+
+ * Compile l10n strings at post-install
+
+ -- Vasyl Saienko <vsaienko@mirantis.com> Wed, 02 Jun 2015 22:27:30 +0200
+
horizon (1:2014.2.2-1~u14.04+mos1) mos6.1; urgency=medium
* Fix version according to Fuel versioning policy:
/usr/share/openstack-dashboard/openstack_dashboard/static
fi
+ if [ -d /usr/share/openstack-dashboard/openstack_dashboard/locale -a -e /usr/share/openstack-dashboard/manage.py ] ; then
+ curdir="`pwd`"
+ cd /usr/share/openstack-dashboard/openstack_dashboard
+ python ../manage.py compilemessages
+ cd "$curdir"
+ else
+ echo "Couldn't compile Django l10n strings (.mo files)"
+ fi
+
if [ -d /etc/openstack-dashboard/ ] ; then
chown horizon:horizon /etc/openstack-dashboard/
fi