Summary: OpenCloud core services
Name: opencloud
-Version: 1.0.2
+Version: 1.0.8
Release: 1
License: GPL+
Group: Development/Tools
requires: tar
requires: gcc
requires: python-httplib2
+requires: GeoIP
%description
%{summary}
pip-python install django-suit
pip-python install django-evolution
pip-python install django-bitfield
+pip-python install django-ipware
easy_install django_evolution
easy_install python_gflags
wget -P /usr/lib/python2.7/site-packages/suit/static/suit/js http://code.jquery.com/jquery-1.9.1.min.js
+if [ ! -f /usr/share/GeoIP/GeoLiteCity.dat ]; then
+ rm -f /usr/share/GeoIP/GeoLiteCity.*
+ wget -P /usr/share/GeoIP http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
+ gzip -d /usr/share/GeoIP/GeoLiteCity*.gz
+fi
+
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}
/opt/planetstack/scripts/opencloud initdb
%preun
-rm -rf /opt/planetstack
+if [ "$1" = 0 ] ; then
+ echo "doing preuninstall"
+ rm -rf /opt/planetstack
+fi
%changelog
* Sat Feb 22 2014 Siobhan Tully 1.0.0