[eclipse-mylyn-commons] Initial commit of eclipse-mylyn-commons. Add spec-file, patch and source-fetch script.

jerboaa jerboaa at fedoraproject.org
Thu Apr 14 22:05:39 UTC 2011


commit 55c1b06e3f3421c2f25ef7554d08a6af3b90377e
Author: Severin Gehwolf <sgehwolf at redhat.com>
Date:   Thu Apr 14 18:03:07 2011 -0400

    Initial commit of eclipse-mylyn-commons. Add spec-file, patch and
    source-fetch script.

 .gitignore                         |    1 +
 eclipse-mylyn-commons-nosoap.patch |   89 ++++++++++++++++++++++++++
 eclipse-mylyn-commons.spec         |  121 ++++++++++++++++++++++++++++++++++++
 fetch-eclipse-mylyn-commons.sh     |   25 ++++++++
 sources                            |    1 +
 5 files changed, 237 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..79a5472 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+eclipse-mylyn-commons-R_3_5_0-fetched-src.tar.bz2
diff --git a/eclipse-mylyn-commons-nosoap.patch b/eclipse-mylyn-commons-nosoap.patch
new file mode 100644
index 0000000..96594b1
--- /dev/null
+++ b/eclipse-mylyn-commons-nosoap.patch
@@ -0,0 +1,89 @@
+--- org.eclipse.mylyn.commons-feature/feature.xml.orig	2011-04-13 15:54:02.826971266 -0400
++++ org.eclipse.mylyn.commons-feature/feature.xml	2011-04-13 15:55:02.994219073 -0400
+@@ -43,13 +43,6 @@
+          unpack="false"/>
+ 
+    <plugin
+-         id="org.eclipse.mylyn.commons.soap"
+-         download-size="0"
+-         install-size="0"
+-         version="0.0.0"
+-         unpack="false"/>
+-
+-   <plugin
+          id="org.eclipse.mylyn.commons.ui"
+          download-size="0"
+          install-size="0"
+@@ -85,37 +78,6 @@
+          unpack="false"/>
+ 
+    <plugin
+-         id="org.apache.axis"
+-         download-size="0"
+-         install-size="0"
+-         version="0.0.0"/>
+-
+-   <plugin
+-         id="javax.wsdl"
+-         download-size="0"
+-         install-size="0"
+-         version="0.0.0"
+-         unpack="false"/>
+-
+-   <plugin
+-         id="javax.xml.rpc"
+-         download-size="0"
+-         install-size="0"
+-         version="0.0.0"/>
+-
+-   <plugin
+-         id="javax.xml.soap"
+-         download-size="0"
+-         install-size="0"
+-         version="0.0.0"/>
+-
+-   <plugin
+-         id="org.apache.commons.discovery"
+-         download-size="0"
+-         install-size="0"
+-         version="0.0.0"/>
+-
+-   <plugin
+          id="org.apache.commons.logging"
+          download-size="0"
+          install-size="0"
+@@ -123,20 +85,6 @@
+          unpack="false"/>
+ 
+    <plugin
+-         id="javax.activation"
+-         download-size="0"
+-         install-size="0"
+-         version="0.0.0"
+-         unpack="false"/>
+-
+-   <plugin
+-         id="javax.mail"
+-         download-size="0"
+-         install-size="0"
+-         version="0.0.0"
+-         unpack="false"/>
+-
+-   <plugin
+          id="org.apache.commons.codec"
+          download-size="0"
+          install-size="0"
+@@ -158,13 +106,6 @@
+          unpack="false"/>
+ 
+    <plugin
+-         id="javax.xml"
+-         download-size="0"
+-         install-size="0"
+-         version="0.0.0"
+-         unpack="false"/>
+-
+-   <plugin
+          id="org.eclipse.mylyn.commons.repositories"
+          download-size="0"
+          install-size="0"
diff --git a/eclipse-mylyn-commons.spec b/eclipse-mylyn-commons.spec
new file mode 100644
index 0000000..4f941e0
--- /dev/null
+++ b/eclipse-mylyn-commons.spec
@@ -0,0 +1,121 @@
+%global eclipse_base        %{_libdir}/eclipse
+%global install_loc         %{_datadir}/eclipse/dropins
+# Taken from update site so we match upstream
+#  download.eclipse.org/mylyn/archive/3.5.0/v20110316-0100
+%global qualifier           v20110316-0100
+
+Name: eclipse-mylyn-commons
+Summary: Common libraries for Eclipse Mylyn
+Version: 3.5.0
+Release: 1%{?dist}
+License: EPL and ASL 2.0
+URL: http://www.eclipse.org/mylyn
+
+# bash fetch-eclipse-mylyn-commons.sh
+Source0: eclipse-mylyn-commons-R_3_5_0-fetched-src.tar.bz2
+Source1: fetch-eclipse-mylyn-commons.sh
+
+# Would require axis2+OSGi info. Remove once
+# https://bugzilla.redhat.com/show_bug.cgi?id=497126
+# is resolved.
+Patch0: %{name}-nosoap.patch
+
+BuildArch: noarch
+
+BuildRequires: java-devel >= 1.5.0
+BuildRequires: jpackage-utils
+BuildRequires: eclipse-pde >= 1:3.4.0
+BuildRequires: apache-commons-lang >= 2.3-2.3
+BuildRequires: apache-commons-logging
+BuildRequires: apache-commons-io
+BuildRequires: ws-commons-util >= 1.0.1-5
+BuildRequires: xmlrpc3-client >= 3.0-2.8
+BuildRequires: xmlrpc3-common >= 3.0-2.8
+BuildRequires: ws-jaxme >= 0.5.1-2.4
+BuildRequires: json
+BuildRequires: jdom >= 1.0-5.5
+Requires: eclipse-platform >= 1:3.4.0
+Requires: apache-commons-lang >= 2.3-2.3
+Requires: apache-commons-logging
+Requires: apache-commons-io
+Requires: ws-commons-util >= 1.0.1-5
+Requires: xmlrpc3-client >= 3.0-2.8
+Requires: xmlrpc3-common >= 3.0-2.8
+Requires: ws-jaxme >= 0.5.1-2.4
+Requires: json
+Requires: jpackage-utils
+
+Group: Development/Tools
+
+%description
+Mylyn integrates task support into Eclipse.  It supports offline editing
+for certain task repositories and monitors work activity to hide
+information that is not relevant to the current task. This package includes
+common libraries used by other Eclipse Mylyn packages.
+
+%prep
+%setup -q -n org.eclipse.mylyn.commons
+
+rm -rf orbitDeps
+mkdir orbitDeps
+pushd orbitDeps
+ln -s %{_javadir}/apache-commons-lang.jar
+ln -s %{_javadir}/apache-commons-io.jar
+ln -s %{_javadir}/apache-commons-logging-api.jar
+ln -s %{_javadir}/xmlrpc3-client.jar
+ln -s %{_javadir}/xmlrpc3-common.jar
+ln -s %{_javadir}/ws-commons-util.jar
+ln -s %{_javadir}/jdom.jar
+ln -s %{_javadir}/json.jar
+ln -s %{_javadir}/jaxme/jaxmeapi.jar
+popd
+
+%patch0
+
+%build
+%{eclipse_base}/buildscripts/pdebuild -f org.eclipse.mylyn.commons \
+ -a "-DjavacSource=1.5 -DjavacTarget=1.5 -DforceContextQualifier=%{qualifier} -DmylynQualifier=%{qualifier}" \
+ -j -DJ2SE-1.5=%{_jvmdir}/java/jre/lib/rt.jar \
+ -o `pwd`/orbitDeps
+
+%install
+rm -rf %{buildroot}
+install -d -m 755 %{buildroot}%{_datadir}/eclipse
+install -d -m 755 %{buildroot}%{install_loc}/mylyn-commons
+
+unzip -q -o -d %{buildroot}%{install_loc}/mylyn-commons \
+ build/rpmBuild/org.eclipse.mylyn.commons.zip
+
+pushd %{buildroot}%{install_loc}/mylyn-commons/eclipse/plugins
+rm org.apache.commons.codec_*.jar
+rm org.apache.commons.httpclient_*.jar
+rm org.apache.commons.lang_*.jar
+rm org.apache.commons.logging_*.jar
+rm org.apache.commons.io*.jar
+rm org.json*.jar
+rm org.jdom*.jar
+rm javax.xml.bind_2.0.0*.jar
+rm org.apache.ws.commons.util*.jar
+rm org.apache.xmlrpc_*.jar
+ln -s %{_javadir}/apache-commons-lang.jar
+ln -s %{_javadir}/apache-commons-logging-api.jar
+ln -s %{_javadir}/apache-commons-io.jar
+ln -s %{_javadir}/xmlrpc3-client.jar
+ln -s %{_javadir}/xmlrpc3-common.jar
+ln -s %{_javadir}/ws-commons-util.jar
+ln -s %{_javadir}/jdom.jar
+ln -s %{_javadir}/json.jar
+ln -s %{_javadir}/jaxme/jaxmeapi.jar
+popd
+
+%files
+%defattr(-,root,root,-)
+%{install_loc}/mylyn-commons
+%doc org.eclipse.mylyn.commons-feature/epl-v10.html
+
+%changelog
+* Wed Apr 13 2011 Severin Gehwolf <sgehwolf at redhat.com> 3.5.0-1
+- Introduce eclipse-mylyn-commons, since eclipse-mylyn will be
+  broken up into several source RPMs starting with Mylyn 3.5.0
+  release.
+
diff --git a/fetch-eclipse-mylyn-commons.sh b/fetch-eclipse-mylyn-commons.sh
new file mode 100644
index 0000000..52b7d19
--- /dev/null
+++ b/fetch-eclipse-mylyn-commons.sh
@@ -0,0 +1,25 @@
+#!/bin/sh
+#
+# Pulls sources for eclipse-mylyn-commons SRPM
+# (org.eclipse.mylyn.commons-feature)
+# 
+RELEASE_TAG="R_3_5_0"
+
+rm -fr org.eclipse.mylyn.commons
+for f in \
+org.eclipse.mylyn.commons.core \
+org.eclipse.mylyn.commons.net \
+org.eclipse.mylyn.commons.notifications \
+org.eclipse.mylyn.commons.repositories \
+org.eclipse.mylyn.commons.screenshots \
+org.eclipse.mylyn.commons.xmlrpc \
+org.eclipse.mylyn.commons.team \
+org.eclipse.mylyn.commons.ui \
+org.eclipse.mylyn.commons-feature; do
+cvs -d :pserver:anonymous at dev.eclipse.org:/cvsroot/mylyn \
+export -r ${RELEASE_TAG} org.eclipse.mylyn.commons/$f;
+done
+
+rm -f eclipse-mylyn-commons-${RELEASE_TAG}-fetched-src.tar.bz2
+tar cjf eclipse-mylyn-commons-${RELEASE_TAG}-fetched-src.tar.bz2 \
+	org.eclipse.mylyn.commons
diff --git a/sources b/sources
index e69de29..53f1a32 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+937f611b60928de4e848a0e3378607ec  eclipse-mylyn-commons-R_3_5_0-fetched-src.tar.bz2


More information about the scm-commits mailing list