Interactive interface for browsing global, full-resolution satellite imagery
Updates to spec file
Mike McGann7eb1296b31ee
diff --git a/Gruntfile.js b/Gruntfile.jsindex 59e66dd81..a94ab591f 100644--- a/Gruntfile.js+++ b/Gruntfile.js@@ -133,7 +133,7 @@ module.exports = function(grunt) {{ expand: true, cwd: "etc/deploy",src: ["worldview.spec"], dest: "build/rpmbuild/SPECS" },{ expand: true, cwd: "dist",- src: ["worldview.tar.gz", "worldview-debug.tar.gz"],+ src: ["worldview.tar.bz2", "worldview-debug.tar.bz2"],dest: "build/rpmbuild/SOURCES" }]},@@ -206,39 +206,39 @@ module.exports = function(grunt) {// Create a tarball of the debug build with a version number and// git revision.tar_debug_versioned: {- command: "tar czCf build dist/" ++ command: "tar cjCf build dist/" +"<%= pkg.name %>" +"-debug" +"-<%= pkg.version %>" +"-<%= pkg.release %>" +buildNumber +".git<%= grunt.config.get('git-revision') %>" +- ".tar.gz worldview-debug"+ ".tar.bz2 worldview-debug"},// Create a tarball of the debug build without versioning// informationtar_debug: {- command: "tar czCf build dist/worldview-debug.tar.gz " ++ command: "tar cjCf build dist/worldview-debug.tar.bz2 " +"worldview-debug"},// Create a tarball of the release build with a version number and// git revisiontar_release_versioned: {- command: "tar czCf build dist/" ++ command: "tar cjCf build dist/" +"<%= pkg.name %>" +"-<%= pkg.version %>" +"-<%= pkg.release %>" +buildNumber +".git<%= grunt.config.get('git-revision') %>" +- ".tar.gz worldview"+ ".tar.bz2 worldview"},// Create a tarball of the release build without versioning// informationtar_release: {- command: "tar czCf build dist/worldview.tar.gz " ++ command: "tar cjCf build dist/worldview.tar.bz2 " +"worldview"},@@ -246,7 +246,7 @@ module.exports = function(grunt) {rpmbuild: {command: 'rpmbuild --define "_topdir $PWD/build/rpmbuild" ' +'--define "build_num ' + buildNumber +'" ' +- '-ba build/rpmbuild/SPECS/worldview.spec'+ '-ba build/rpmbuild/SPECS/worldview.spec'}},@@ -305,7 +305,7 @@ module.exports = function(grunt) {src: ["build/rpmbuild/SOURCES/*","build/rpmbuild/SPECS/*",- "!**/*.tar.gz"+ "!**/*.tar.bz2"],overwrite: true,replacements: [{@@ -452,7 +452,7 @@ module.exports = function(grunt) {"!build/worldview-debug/web/js/Worldview/Map/TileWorker.js","!build/worldview-debug/web/ext/wv.main/**"],- dist_tar: ["dist/*.tar.gz"],+ dist_tar: ["dist/*.tar.bz2"],dist_rpm: ["dist/*.rpm"],rpmbuild: ["build/rpmbuild"]}diff --git a/etc/deploy/worldview.spec b/etc/deploy/worldview.specindex 1c26c5e69..19d7b91fb 100644--- a/etc/deploy/worldview.spec+++ b/etc/deploy/worldview.spec@@ -8,8 +8,8 @@ Summary: Browse full-resolution, near real-time satellite imagery.License: Copyright NASAURL: http://earthdata.nasa.gov-Source0: worldview.tar.gz-Source1: worldview-debug.tar.gz+Source0: worldview.tar.bz2+Source1: worldview-debug.tar.bz2Source2: httpd.worldview.confSource3: httpd.worldview-debug.conf#Source4: events_log.conf@@ -59,9 +59,9 @@ cp %{SOURCE2} .cp %{SOURCE3} .#cp %{SOURCE4} .#cp %{SOURCE5} .-#p %{SOURCE6} .-#p %{SOURCE7} .-#p %{SOURCE8} .+#cp %{SOURCE6} .+#cp %{SOURCE7} .+#cp %{SOURCE8} .%build@@ -69,19 +69,32 @@ cp %{SOURCE3} .%installrm -rf %{buildroot}++# Apache configuration for releaseinstall -m 755 -d %{buildroot}/%{httpdconfdir}install -m 644 httpd.worldview.conf \%{buildroot}/%{httpdconfdir}/@[email protected]rm httpd.worldview.conf++# Apache configuration for debuginstall -m 644 httpd.worldview-debug.conf \%{buildroot}/%{httpdconfdir}/@[email protected]rm httpd.worldview-debug.conf+# Release applicationinstall -m 755 -d %{buildroot}/%{_datadir}/@WORLDVIEW@cp -r worldview/* %{buildroot}/%{_datadir}/@WORLDVIEW@++# Debug applicationinstall -m 755 -d %{buildroot}/%{_datadir}/@WORLDVIEW@-debugcp -r worldview-debug/* %{buildroot}/%{_datadir}/@WORLDVIEW@-debug+# Release configuration directory+install -m 755 -d %{buildroot}/%{_sysconfdir}/@WORLDVIEW@++# Debug configuration directory+install -m 755 -d %{buildroot}/%{_sysconfdir}/@WORLDVIEW@-debug+#install -m 755 -d %{buildroot}/%{_sysconfdir}/@WORLDVIEW@#install -m 644 events_log.conf \# %{buildroot}/%{_sysconfdir}/@WORLDVIEW@/events_log.conf@@ -104,6 +117,15 @@ cp -r worldview-debug/* %{buildroot}/%{_datadir}/@WORLDVIEW@-debug#install -m 600 logrotate.worldview-debug \# %{buildroot}/%{_sysconfdir}/logrotate.d/@WORLDVIEW@-debug+# Allow Worldview to find configuration from its application root+# Release+install -m 755 -d %{buildroot}/%{_datadir}/@WORLDVIEW@+ln -s %{_sysconfdir}/@WORLDVIEW@ %{buildroot}/%{_datadir}/@WORLDVIEW@/conf++# Debug+install -m 755 -d %{buildroot}/%{_datadir}/@WORLDVIEW@-debug+ln -s %{_sysconfdir}/@WORLDVIEW@-debug \+ %{buildroot}/%{_datadir}/@WORLDVIEW@-debug/conf%cleanrm -rf %{buildroot}@@ -113,7 +135,7 @@ rm -rf %{buildroot}%defattr(-,root,root,-)%{_datadir}/@WORLDVIEW@%config(noreplace) %{httpdconfdir}/@[email protected]-#%dir %{_sysconfdir}/worldview+%dir %{_sysconfdir}/@WORLDVIEW@#%config(noreplace) %{_sysconfdir}/@WORLDVIEW@/events_log.conf#%config(noreplace) %{_sysconfdir}/cron.d/@WORLDVIEW@#%config(noreplace) %{_sysconfdir}/logrotate.d/@WORLDVIEW@@@ -126,7 +148,7 @@ rm -rf %{buildroot}%files debug%{_datadir}/@WORLDVIEW@-debug%config(noreplace) %{httpdconfdir}/@[email protected]-#%dir %{_sysconfdir}/@WORLDVIEW@-debug+%dir %{_sysconfdir}/@WORLDVIEW@-debug#%config(noreplace) %{_sysconfdir}/@WORLDVIEW@-debug/events_log-debug.conf#%config(noreplace) %{_sysconfdir}/cron.d/@WORLDVIEW@-debug#%config(noreplace) %{_sysconfdir}/logrotate.d/@WORLDVIEW@-debug@@ -137,23 +159,31 @@ rm -rf %{buildroot}%post-if [ $1 -gt 1 ] ; then- service httpd reload+if [ $1 -gt 0 ] ; then+ if /sbin/service httpd status >/dev/null ; then+ /sbin/service httpd reload+ fifi%post debug-if [ $1 -gt 1 ] ; then- service httpd reload+if [ $1 -gt 0 ] ; then+ if /sbin/service httpd status >/dev/null ; then+ /sbin/service httpd reload+ fifi%postunif [ $1 -eq 0 ] ; then- serivce httpd reload+ if /sbin/service httpd status >/dev/null ; then+ /sbin/service httpd reload+ fifi%postun debugif [ $1 -eq 0 ] ; then- serivce httpd reload+ if /sbin/service httpd status >/dev/null ; then+ /sbin/service httpd reload+ fifi