[eclipse-jbosstools] Add script create-tarball.sh
Gerard Ryan
galileo at fedoraproject.org
Fri Jan 18 19:11:35 UTC 2013
commit 7e0849293cb1657c4a3c94b54b72835f4c1a039e
Author: Gerard Ryan <gerard at ryan.lt>
Date: Wed Jan 16 15:36:38 2013 +0000
Add script create-tarball.sh
create-tarball.sh | 57 +++++++++++++++++++++++++++++++++++++++++++++++
eclipse-jbosstools.spec | 18 +++-----------
2 files changed, 61 insertions(+), 14 deletions(-)
---
diff --git a/create-tarball.sh b/create-tarball.sh
new file mode 100644
index 0000000..757ea39
--- /dev/null
+++ b/create-tarball.sh
@@ -0,0 +1,57 @@
+#!/usr/bin/bash
+#
+# At the time of writing this, JBoss Tools 4.0.0 has been released but
+# there isn't any git tags yet, which means there are a couple of extra
+# steps to creating the tarball we want. This is also due to the fact
+# that upstream has recently moved to Github, and has reorganised the
+# entire structure.
+
+GIT_TAG="jbosstools-4.0.0.Final"
+MODULES="build build-sites server base jst javaee vpe webservices freemarker"
+
+# Tags will be manually added here to allow reasonable-sized archives.
+# Tags based latest commit in branch jbosstools-4.0.x, which are the
+# release commits found here (provided by upstream):
+# http://download.jboss.org/jbosstools/builds/development/4.0.0.Final.core/2012
+# -12-06_13-22-08-B136/logs/ALL_REVISIONS.txt
+declare -A commits
+commits[base]="83bd0196dcfc2acf25312bf3140fa9222e8daf67"
+commits[build]="629e02197dc11023113f36c68cb3f6d2540e610b" #Latest
+commits[build-sites]="13cad18f196981a9288a813bb02950a97edb1030" #Latest
+commits[freemarker]="6aab590446043db34c7d1522a10898e13e1b0249"
+commits[javaee]="524b37a6f1be43e5d59f1bcfe49e3c36fd00f160"
+commits[jst]="8ff165f1ae116612d1dc98674e3242f90f39c2d3"
+commits[server]="dad906367844c26f7fd77ff55bc97e3056fb5b9a"
+commits[vpe]="2809196fcde462a67e451a7e4f96530734eeeeb0"
+commits[webservices]="3a785837a5a1afb196422fd66670fbbb96bd6634"
+
+#mkdir eclipse-${GIT_TAG}{,-CLEAN}/
+
+pushd eclipse-${GIT_TAG}/
+ for module in ${MODULES}; do
+ #git clone https://github.com/jbosstools/jbosstools-${module}
+
+ pushd jbosstools-${module}
+ git tag ${GIT_TAG} ${commits[${module}]}
+ git archive --format=tar --prefix=${module}/ ${GIT_TAG} \
+ | xz > ../../${module}-${GIT_TAG}.tar.xz
+ popd
+ done
+popd
+
+pushd eclipse-${GIT_TAG}-CLEAN
+ for module in ${MODULES}; do
+ tar xJf ../${module}-${GIT_TAG}.tar.xz
+ done
+
+ for ext in jar war zip class; do
+ find -name *.${ext} -delete
+ done
+popd
+
+tar cJf eclipse-${GIT_TAG}-CLEAN.tar.xz eclipse-${GIT_TAG}-CLEAN/
+#rm -r eclipse-${GIT_TAG}{,-CLEAN}
+
+for module in ${MODULES}; do
+ rm ${module}-${GIT_TAG}.tar.xz
+done
diff --git a/eclipse-jbosstools.spec b/eclipse-jbosstools.spec
index 3712959..d4199dd 100644
--- a/eclipse-jbosstools.spec
+++ b/eclipse-jbosstools.spec
@@ -1,13 +1,13 @@
%global eclipse_dropins %{_datadir}/eclipse/dropins
%global build_base build/.m2/org/jboss/tools/
-%global rls_tag Alpha2
+%global rls_tag Final
# Comma separated list of all modules that we're currently building (in order)
%global tools parent,common,usage,archives,jmx,runtime,as,jst,cdi,ws,freemarker
Name: eclipse-jbosstools
Version: 4.0.0
-Release: 0.2%{?dist}
+Release: 1%{?dist}
Summary: Eclipse plugins that support JBoss and related technology
Group: Development/Tools
@@ -16,22 +16,12 @@ Group: Development/Tools
License: EPL and LGPLv2+ and ASL 2.0
URL: http://www.jboss.org/tools.html
-# svn export \
-# http://anonsvn.jboss.org/repos/jbosstools/tags/jbosstools-4.0.0.Alpha2/ \
-# eclipse-jbosstools-4.0.0.Alpha2
-# cp -r eclipse-jbosstools-4.0.0.Alpha2 eclipse-jbosstools-4.0.0.Alpha2-CLEAN
-# pushd eclipse-jbosstools-4.0.0.Alpha2-CLEAN
-# find -name *.jar -delete && find -name *.class -delete
-# rm -r birt bpel central deltacloud documentation drools esb flow forge gwt \
-# hibernatetools jbpm jsf maven modeshape module_template openshift portlet \
-# requirements runtime-soa seam struts xulrunner
-# popd
-# tar -cJf eclipse-jbosstools-4.0.0.Alpha2-CLEAN.tar.xz \
-# eclipse-jbosstools-4.0.0.Alpha2-CLEAN/
+# Steps to create this are found in create-tarball.sh
Source0: %{name}-%{version}.%{rls_tag}-CLEAN.tar.xz
Source1: LICENSE-2.0.txt
Source2: lgpl-2.1.txt
+Source3: create-tarball.sh
# feature.xml patch to remove 'requires' section - fails because of the way we
# have wtp packages set up currently - not all have same qualifier.
More information about the scm-commits
mailing list