[eclipse-wtp-common] Initial commit (#712522)

Andrew Robinson arobinso at fedoraproject.org
Thu Jul 7 20:40:33 UTC 2011


commit 08da03134ede0b3026f9302f774a49c0ece23904
Author: Andrew Robinson <arobinso at redhat.com>
Date:   Thu Jul 7 16:28:58 2011 -0400

    Initial commit (#712522)

 eclipse-wtp-common-R3_2_4-fetched-src.tar.bz2 |  Bin 0 -> 2324701 bytes
 eclipse-wtp-common.spec                       |   88 +++++++++++++++++++++++++
 fetch-wtp-common-source.sh                    |   32 +++++++++
 3 files changed, 120 insertions(+), 0 deletions(-)
---
diff --git a/eclipse-wtp-common-R3_2_4-fetched-src.tar.bz2 b/eclipse-wtp-common-R3_2_4-fetched-src.tar.bz2
new file mode 100644
index 0000000..2059b90
Binary files /dev/null and b/eclipse-wtp-common-R3_2_4-fetched-src.tar.bz2 differ
diff --git a/eclipse-wtp-common.spec b/eclipse-wtp-common.spec
new file mode 100644
index 0000000..dff5c95
--- /dev/null
+++ b/eclipse-wtp-common.spec
@@ -0,0 +1,88 @@
+%global eclipse_base		%{_libdir}/eclipse
+%global install_loc			%{_datadir}/eclipse/dropins
+
+Name:			eclipse-wtp-common
+Version:		3.2.4
+Release:		1%{?dist}
+Summary:		Common infrastructure and utilities developed and used with WTP
+
+License:		EPL
+URL:			http://www.eclipse.org/webtools/common/
+Source0:		eclipse-wtp-common-R3_2_4-fetched-src.tar.bz2
+Source1:		fetch-wtp-common-source.sh
+
+BuildArch:		noarch
+
+BuildRequires:	java-devel >= 1.5.0
+BuildRequires:	eclipse-pde >= 1:3.6.2
+BuildRequires:	eclipse-platform >= 1:3.6.2
+BuildRequires:	eclipse-jdt >= 1:3.6.2
+BuildRequires:	eclipse-emf-xsd >= 2.6.0
+BuildRequires:	eclipse-gef >= 3.6.2
+BuildRequires:	eclipse-dtp >= 1.8.2
+Requires:		eclipse-platform >= 1:3.6.2
+Requires:		eclipse-jdt >= 1:3.6.2
+Requires:		eclipse-emf-xsd >= 2.6.0
+Requires:		eclipse-gef >= 3.6.2
+Requires:		eclipse-dtp >= 1.8.2
+
+%description
+This package contains various common utilities that are developed and used with
+the eclipse web tools platform including facets, snippets view, validation and
+extensible URI resolver.
+
+%prep
+%setup -q
+
+%build
+%{eclipse_base}/buildscripts/pdebuild -f org.eclipse.wst.common.fproj \
+	-d "emf gef"
+
+%{eclipse_base}/buildscripts/pdebuild -f org.eclipse.jst.common.fproj.enablement.jdt \
+	-d "emf gef"
+
+%{eclipse_base}/buildscripts/pdebuild -f org.eclipse.wst.common_core.feature \
+	-d "emf gef"
+
+%{eclipse_base}/buildscripts/pdebuild -f org.eclipse.wst.server_core.feature \
+	-d "emf gef"
+
+%{eclipse_base}/buildscripts/pdebuild -f org.eclipse.wst.common_ui.feature \
+	-d "emf gef"
+
+%install
+install -d -m 755 %{buildroot}%{_datadir}/eclipse
+install -d -m 755 %{buildroot}%{install_loc}/org.eclipse.wst.common.fproj
+install -d -m 755 %{buildroot}%{install_loc}/org.eclipse.jst.common.fproj.enablement.jdt
+install -d -m 755 %{buildroot}%{install_loc}/org.eclipse.wst.common_core.feature
+install -d -m 755 %{buildroot}%{install_loc}/org.eclipse.wst.server_core.feature
+install -d -m 755 %{buildroot}%{install_loc}/org.eclipse.wst.common_ui.feature
+
+unzip -q -o -d %{buildroot}%{install_loc}/org.eclipse.wst.common.fproj \
+ build/rpmBuild/org.eclipse.wst.common.fproj.zip
+
+unzip -q -o -d %{buildroot}%{install_loc}/org.eclipse.jst.common.fproj.enablement.jdt \
+ build/rpmBuild/org.eclipse.jst.common.fproj.enablement.jdt.zip
+
+unzip -q -o -d %{buildroot}%{install_loc}/org.eclipse.wst.common_core.feature \
+ build/rpmBuild/org.eclipse.wst.common_core.feature.zip
+
+unzip -q -o -d %{buildroot}%{install_loc}/org.eclipse.wst.server_core.feature \
+ build/rpmBuild/org.eclipse.wst.server_core.feature.zip
+
+unzip -q -o -d %{buildroot}%{install_loc}/org.eclipse.wst.common_ui.feature \
+ build/rpmBuild/org.eclipse.wst.common_ui.feature.zip
+
+
+%files
+%{install_loc}/org.eclipse.wst.common.fproj
+%{install_loc}/org.eclipse.jst.common.fproj.enablement.jdt
+%{install_loc}/org.eclipse.wst.common_core.feature
+%{install_loc}/org.eclipse.wst.server_core.feature
+%{install_loc}/org.eclipse.wst.common_ui.feature
+%doc features/org.eclipse.wst.common_core.feature/epl-v10.html
+%doc features/org.eclipse.wst.common_core.feature/license.html
+
+%changelog
+* Fri Jun 10 2011 Andrew Robinson <arobinso at redhat.com> 3.2.4-1
+- Initial Fedora package
\ No newline at end of file
diff --git a/fetch-wtp-common-source.sh b/fetch-wtp-common-source.sh
new file mode 100755
index 0000000..b26edc2
--- /dev/null
+++ b/fetch-wtp-common-source.sh
@@ -0,0 +1,32 @@
+#!/bin/sh
+#
+# eclipse-wtp-common SRPM produces one binary RPM including
+# the wtp common libraries
+# 
+RELEASE_TAG="R3_2_4"
+DOT_TAG="3.2.4"
+
+rm -fr common
+# get sources from wtp-common repo
+cvs -d :pserver:anonymous at dev.eclipse.org:/cvsroot/webtools export -r ${RELEASE_TAG} common 
+cvs -d :pserver:anonymous at dev.eclipse.org:/cvsroot/webtools export -r R3_2_3  servertools/plugins/org.eclipse.wst.server.core
+mv servertools/plugins/org.eclipse.wst.server.core common/plugins
+cvs -d :pserver:anonymous at dev.eclipse.org:/cvsroot/webtools export -r R3_2_3  servertools/plugins/org.eclipse.wst.internet.monitor.core
+mv servertools/plugins/org.eclipse.wst.internet.monitor.core common/plugins
+cvs -d :pserver:anonymous at dev.eclipse.org:/cvsroot/webtools export -r R3_2_3  servertools/features/org.eclipse.wst.server_core.feature
+mv servertools/features/org.eclipse.wst.server_core.feature common/features
+cvs -d :pserver:anonymous at dev.eclipse.org:/cvsroot/webtools export -r ${RELEASE_TAG} jeetools/plugins/org.eclipse.jst.common.frameworks
+mv jeetools/plugins/org.eclipse.jst.common.frameworks common/plugins
+rm -rf eclipse-wtp-common-${DOT_TAG}
+mv common eclipse-wtp-common-${DOT_TAG}
+#remove old tarball
+rm -rf eclipse-wtp-common-${RELEASE_TAG}-fetched-src.tar.bz2
+# fix documentation permissions
+chmod 644 `find | grep -e "\.html$"`
+chmod 644 `find | grep -e "\.xml$"`
+#make tarball
+tar cjf eclipse-wtp-common-${RELEASE_TAG}-fetched-src.tar.bz2 eclipse-wtp-common-${DOT_TAG}
+#clean
+rm -rf eclipse-wtp-common-${DOT_TAG}
+rm -rf servertools
+rm -rf jeetools
\ No newline at end of file


More information about the scm-commits mailing list