commit 2af9989caa22583c26e7762fe6e8aaffdb4dda5b
Author: Jaromir Capik <jcapik(a)redhat.com>
Date: Mon Sep 26 19:55:15 2011 +0200
Initial import (#740545).
.gitignore | 2 +
aqute-bnd.spec | 167 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
bnd-0.0.363.pom | 22 +++++++
sources | 2 +
4 files changed, 193 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..45ff9af 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/aqute-service.tar.gz
+/bnd-0.0.363.jar
diff --git a/aqute-bnd.spec b/aqute-bnd.spec
new file mode 100644
index 0000000..f8f729c
--- /dev/null
+++ b/aqute-bnd.spec
@@ -0,0 +1,167 @@
+# Copyright (c) 2000-2008, JPackage Project
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+#
+# 1. Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+# 2. 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.
+# 3. Neither the name of the JPackage Project 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.
+#
+
+Name: aqute-bnd
+Version: 0.0.363
+Release: 2%{?dist}
+Summary: BND Tool
+License: ASL 2.0
+Group: Development/Tools
+URL:
http://www.aQute.biz/Code/Bnd
+
+# NOTE : sources for 0.0.363 are no longer available
+# The following links would work for 0.0.370-0.0.401 version range, but
+# we need to stay by 0.0.363 to minimize problems during the 1.43.0 introduction
+Source0:
http://www.aqute.biz/repo/biz/aQute/bnd/%{version}/bnd-%{version}.jar
+Source1:
http://www.aqute.biz/repo/biz/aQute/bnd/%{version}/bnd-%{version}.pom
+Source2: aqute-service.tar.gz
+
+BuildArch: noarch
+
+BuildRequires: jpackage-utils
+BuildRequires: java-devel
+BuildRequires: ant
+BuildRequires: eclipse-ecj
+BuildRequires: eclipse-jdt
+
+Requires: java
+
+%description
+The bnd tool helps you create and diagnose OSGi R4 bundles.
+The key functions are:
+- Show the manifest and JAR contents of a bundle
+- Wrap a JAR so that it becomes a bundle
+- Create a Bundle from a specification and a class path
+- Verify the validity of the manifest entries
+The tool is capable of acting as:
+- Command line tool
+- File format
+- Directives
+- Use of macros
+
+%package javadoc
+Requires: jpackage-utils
+Summary: Javadoc for %{name}
+Group: Documentation
+
+%description javadoc
+Javadoc for %{name}.
+
+%prep
+%setup -q -c
+
+mkdir -p target/site/apidocs/
+mkdir -p target/classes/
+mkdir -p src/main/
+mv OSGI-OPT/src src/main/java
+pushd src/main/java
+tar xfs %{SOURCE2}
+popd
+sed -i "s|import aQute.lib.filter.*;||g"
src/main/java/aQute/bnd/make/ComponentDef.java
+sed -i "s|import aQute.lib.filter.*;||g"
src/main/java/aQute/bnd/make/ServiceComponent.java
+
+# remove bundled stuff
+rm -rf aQute
+
+# Convert CR+LF to LF
+sed -i "s|\r||g" LICENSE
+
+%build
+export LANG=en_US.utf8
+export OPT_JAR_LIST=:
+export CLASSPATH=$(build-classpath ant)
+CLASSPATH=${CLASSPATH}:$(ls /usr/lib*/eclipse/plugins/org.eclipse.osgi_*.jar)
+CLASSPATH=${CLASSPATH}:$(ls /usr/lib*/eclipse/plugins/org.eclipse.osgi.services_*.jar)
+CLASSPATH=${CLASSPATH}:$(ls /usr/lib*/eclipse/plugins/org.eclipse.jface_*.jar)
+CLASSPATH=${CLASSPATH}:$(ls
/usr/lib*/eclipse/plugins/org.eclipse.jface.databinding_*.jar)
+CLASSPATH=${CLASSPATH}:$(ls /usr/lib*/eclipse/plugins/org.eclipse.jface.text_*.jar)
+CLASSPATH=${CLASSPATH}:$(ls /usr/lib*/eclipse/plugins/org.eclipse.ui_*.jar)
+CLASSPATH=${CLASSPATH}:$(ls /usr/lib*/eclipse/plugins/org.eclipse.ui.ide_*.jar)
+CLASSPATH=${CLASSPATH}:$(ls /usr/lib*/eclipse/plugins/org.eclipse.core.commands_*.jar)
+CLASSPATH=${CLASSPATH}:$(ls /usr/lib*/eclipse/plugins/org.eclipse.core.jobs_*.jar)
+CLASSPATH=${CLASSPATH}:$(ls /usr/lib*/eclipse/plugins/org.eclipse.core.runtime_*.jar)
+CLASSPATH=${CLASSPATH}:$(ls /usr/lib*/eclipse/plugins/org.eclipse.core.resources_*.jar)
+CLASSPATH=${CLASSPATH}:$(ls /usr/lib*/eclipse/plugins/org.eclipse.debug.core_*.jar)
+CLASSPATH=${CLASSPATH}:$(ls /usr/lib*/eclipse/plugins/org.eclipse.debug.ui_*.jar)
+CLASSPATH=${CLASSPATH}:$(ls /usr/lib*/eclipse/plugins/org.eclipse.text_*.jar)
+CLASSPATH=${CLASSPATH}:$(ls /usr/lib*/eclipse/plugins/org.eclipse.ui.console_*.jar)
+CLASSPATH=${CLASSPATH}:$(ls /usr/lib*/eclipse/plugins/org.eclipse.ui.editors_*.jar)
+CLASSPATH=${CLASSPATH}:$(ls /usr/lib*/eclipse/plugins/org.eclipse.ui.workbench_*.jar)
+CLASSPATH=${CLASSPATH}:$(ls
/usr/lib*/eclipse/plugins/org.eclipse.ui.workbench.texteditor_*.jar)
+CLASSPATH=${CLASSPATH}:$(ls
/usr/lib*/eclipse/dropins/jdt/plugins/org.eclipse.jdt.core_*.jar)
+CLASSPATH=${CLASSPATH}:$(ls
/usr/lib*/eclipse/dropins/jdt/plugins/org.eclipse.jdt.debug.ui_*.jar)
+CLASSPATH=${CLASSPATH}:$(ls
/usr/lib*/eclipse/dropins/jdt/plugins/org.eclipse.jdt.launching_*.jar)
+CLASSPATH=${CLASSPATH}:$(ls
/usr/lib*/eclipse/dropins/jdt/plugins/org.eclipse.jdt.junit_*.jar)
+CLASSPATH=${CLASSPATH}:$(ls
/usr/lib*/eclipse/dropins/jdt/plugins/org.eclipse.jdt.junit.core_*.jar)
+CLASSPATH=${CLASSPATH}:$(ls
/usr/lib*/eclipse/dropins/jdt/plugins/org.eclipse.jdt.ui_*.jar)
+CLASSPATH=${CLASSPATH}:$(ls /usr/lib*/eclipse/plugins/org.eclipse.equinox.common_*.jar)
+CLASSPATH=${CLASSPATH}:$(ls
/usr/lib*/eclipse/plugins/org.eclipse.equinox.registry_*.jar)
+CLASSPATH=${CLASSPATH}:$(ls /usr/lib*/eclipse/plugins/org.eclipse.swt.*.jar)
+
+%{javac} -d target/classes -target 1.5 -source 1.5 $(find src/main/java -type f -name
"*.java")
+%{javadoc} -d target/site/apidocs -sourcepath src/main/java aQute.lib.header
aQute.lib.osgi aQute.lib.qtokens aQute.lib.filter
+cp -p LICENSE maven-dependencies.txt plugin.xml pom.xml target/classes
+for f in $(find aQute/ -type f -not -name "*.class"); do
+ cp -p $f target/classes/$f
+done
+pushd target/classes
+%{jar} cmf ../../META-INF/MANIFEST.MF ../%{name}-%{version}.jar *
+popd
+
+%install
+# jars
+install -Dpm 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
+
+# pom
+install -Dm 644 %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
+
+# javadoc
+install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
+cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
+
+%add_maven_depmap JPP-%{name}.pom %{name}.jar
+
+%files
+%doc LICENSE
+%{_javadir}/%{name}.jar
+%{_mavenpomdir}/JPP-%{name}.pom
+%{_mavendepmapfragdir}/%{name}
+
+%files javadoc
+%doc LICENSE
+%{_javadocdir}/%{name}
+
+%changelog
+* Thu Sep 22 2011 Jaromir Capik <jcapik(a)redhat.com> - 0.0.363-2
+- Bundled classes removed
+- jpackage-utils dependency added to the javadoc subpackage
+
+* Wed Sep 21 2011 Jaromir Capik <jcapik(a)redhat.com> - 0.0.363-1
+- Initial version (cloned from aqute-bndlib 0.0.363)
diff --git a/bnd-0.0.363.pom b/bnd-0.0.363.pom
new file mode 100644
index 0000000..ef1b897
--- /dev/null
+++ b/bnd-0.0.363.pom
@@ -0,0 +1,22 @@
+<project
xmlns='http://maven.apache.org/POM/4.0.0'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xsi:schemaLocation='http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd'>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>biz.aQute</groupId>
+ <artifactId>bnd</artifactId>
+ <version>0.0.363</version>
+ <description>
+ A utility and plugin to wrap, build, or print bundles
+ </description>
+ <name>aQute Bundle Tool</name>
+ <url>http://www.aQute.biz/Code/Bnd</url>
+ <organization>
+ <name>aQute SARL</name>
+ <url>http://www.aQute.biz</url>
+ </organization>
+ <licenses>
+ <license>
+ <name>All files contained in this JAR are licensed under the Apache 2.0
license, unless noted differently in their source (see swing2swt).</name>
+ <
url>http://www.opensource.org/licenses/apache2.0.php</url>
+ <distribution>repo</distribution>
+ </license>
+ </licenses>
+</project>
diff --git a/sources b/sources
index e69de29..4dc0aa4 100644
--- a/sources
+++ b/sources
@@ -0,0 +1,2 @@
+11fe2398149f85066f6d0b6dc8af225b aqute-service.tar.gz
+1d36d0271381964304c08b00b5fd1b4a bnd-0.0.363.jar