[OSGi-bundle-ant-task] - Initial import
Ankur Sinha
ankursinha at fedoraproject.org
Tue Jul 19 01:53:07 UTC 2011
commit 92b5458db08cead82e6c07a3eead15953a15ba32
Author: Ankur Sinha <sanjay.ankur at gmail.com>
Date: Tue Jul 19 07:22:42 2011 +0530
- Initial import
.gitignore | 1 +
OSGi-bundle-ant-task-bsd.txt | 27 +++++++++++++++
OSGi-bundle-ant-task-build-xml.patch | 49 ++++++++++++++++++++++++++++
OSGi-bundle-ant-task.spec | 59 ++++++++++++++++++++++++++++++++++
sources | 1 +
5 files changed, 137 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..fbcd493 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/OSGi-bundle-ant-task.tar.gz
diff --git a/OSGi-bundle-ant-task-bsd.txt b/OSGi-bundle-ant-task-bsd.txt
new file mode 100644
index 0000000..3304877
--- /dev/null
+++ b/OSGi-bundle-ant-task-bsd.txt
@@ -0,0 +1,27 @@
+Copyright (c) 2006, 2007 luminis
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+- Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+- Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+- Neither the name of the Luminis nor the names of its contributors may be
+ used to endorse or promote products derived from this software without
+ specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGE.
+
diff --git a/OSGi-bundle-ant-task-build-xml.patch b/OSGi-bundle-ant-task-build-xml.patch
new file mode 100644
index 0000000..3336f29
--- /dev/null
+++ b/OSGi-bundle-ant-task-build-xml.patch
@@ -0,0 +1,49 @@
+diff -ur ../OSGi-bundle-ant-task.orig/build.xml ./build.xml
+--- ../OSGi-bundle-ant-task.orig/build.xml 2008-07-16 02:57:33.000000000 +0530
++++ ./build.xml 2011-07-08 06:46:50.010523555 +0530
+@@ -1,17 +1,30 @@
+-<project name="build-plugin" basedir="..">
+- <target name="init" />
+- <target name="build">
+- <jar jarfile="deploy/net.luminis.build.plugin-0.2.0.jar" update="true">
+- <fileset dir="classes">
+- <include name="net/luminis/build/plugin/bnd/**" />
+- </fileset>
+- <fileset dir="shared/OSGI-OPT">
+- <include name="NOTICE" />
+- <include name="LICENSE" />
+- </fileset>
+- <zipfileset src="ext/bnd-0.0.238.jar" includes="**/*.class" />
+- </jar>
++<project name="build-plugin" basedir=".">
++ <!-- set global properties for this build -->
++ <property name="src" location="src"/>
++ <property name="build" location="build"/>
++ <property name="dist" location="dist"/>
++ <target name="init">
++ <!-- Create the time stamp -->
++ <tstamp/>
++ <!-- Create the build directory structure used by compile -->
++ <mkdir dir="${build}"/>
++ </target>
++ <target name="compile" depends="init"
++ description="compile the source " >
++ <!-- Compile the java code from ${src} into ${build} -->
++ <javac srcdir="${src}" destdir="${build}"/>
++ </target>
++ <target name="dist" depends="compile"
++ description="generate the distribution" >
++ <!-- Create the distribution directory -->
++ <mkdir dir="${dist}/lib"/>
++ <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
++ <jar jarfile="${dist}/lib/net.luminis.build.plugin-0.2.0.jar" update="true" basedir="${build}" />
++ </target>
++ <target name="clean"
++ description="clean up" >
++ <!-- Delete the ${build} and ${dist} directory trees -->
++ <delete dir="${build}"/>
++ <delete dir="${dist}"/>
+ </target>
+- <target name="deploy" />
+- <target name="clean" />
+ </project>
diff --git a/OSGi-bundle-ant-task.spec b/OSGi-bundle-ant-task.spec
new file mode 100644
index 0000000..f283dde
--- /dev/null
+++ b/OSGi-bundle-ant-task.spec
@@ -0,0 +1,59 @@
+%global svn_rev 1242
+Name: OSGi-bundle-ant-task
+Version: 0.2.0
+Release: 0.3.svn%{svn_rev}%{?dist}
+Summary: A wrapper around Bnd to allow easy bundle creation from ant builds
+
+License: BSD
+URL: https://opensource.luminis.net/wiki/display/SITE/OSGi+Bundle+Ant+Task
+# svn export -r 1242 https://opensource.luminis.net/svn/BUNDLES/releases/build-plugin-0.2.0/ OSGi-bundle-ant-task
+# tar -cvzf OSGi-bundle-ant-task.tar.gz OSGi-bundle-ant-task/
+Source0: %{name}.tar.gz
+Source1: %{name}-bsd.txt
+Patch0: %{name}-build-xml.patch
+
+BuildArch: noarch
+BuildRequires: jpackage-utils
+BuildRequires: java-devel
+BuildRequires: aqute-bndlib ant
+
+# for jar
+BuildRequires: java-1.6.0-openjdk-devel
+
+Requires: jpackage-utils
+Requires: java
+
+%description
+A wrapper around Bnd to allow easy bundle creation from ant builds
+
+%prep
+%setup -q -n %{name}
+%patch0 -p0
+
+find -name '*.class' -exec rm -f '{}' \;
+find -name '*.jar' -exec rm -f '{}' \;
+cp %{SOURCE1} .
+
+%build
+export CLASSPATH=$(build-classpath aqute-bndlib ant)
+ant dist
+%install
+
+mkdir -p $RPM_BUILD_ROOT%{_javadir}
+cp -pa dist/lib/net.luminis.build.plugin-0.2.0.jar $RPM_BUILD_ROOT%{_javadir}/net.luminis.build.plugin.jar
+
+%files
+%doc %{name}-bsd.txt
+%{_javadir}/*
+
+%changelog
+* Sun Jul 17 2011 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.2.0-0.3.svn1242
+- correct versioning
+- correct svn command
+- add license
+
+* Fri Jul 08 2011 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.2.0-0.2svn1242
+- update patch to fix build.xml
+
+* Wed Jul 06 2011 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.2.0-0.1svn1242
+- initial rpm build
diff --git a/sources b/sources
index e69de29..b853a1b 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+14d31b67b02eb26bfbfc2b3823f49961 OSGi-bundle-ant-task.tar.gz
More information about the scm-commits
mailing list