From 5f3dce2335366b3bf216c2b066b4b303674ad75c Mon Sep 17 00:00:00 2001 From: Ben Konrath Date: Tue, 3 Apr 2007 04:21:39 +0000 Subject: [PATCH] - Add OSGi Manifest to jar. --- MANIFEST.MF | 13 +++++++++++++ jsch.spec | 15 ++++++++++++++- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 MANIFEST.MF diff --git a/MANIFEST.MF b/MANIFEST.MF new file mode 100644 index 0000000..80207ff --- /dev/null +++ b/MANIFEST.MF @@ -0,0 +1,13 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Version: 0.1.28 +Export-Package: com.jcraft.jsch, com.jcraft.jsch.jce;x-internal:=true, + com.jcraft.jsch.jcraft;x-internal:=true +Created-By: 1.4.0 (Sun Microsystems Inc.) +Bundle-SymbolicName: com.jcraft.jsch +Bundle-Name: %bundleName +Bundle-Localization: plugin +Bundle-Vendor: %venderName +Bundle-ClassPath: . +Bundle-RequiredExecutionEnvironment: J2SE-1.4 + diff --git a/jsch.spec b/jsch.spec index 4b212aa..7a4a6a2 100644 --- a/jsch.spec +++ b/jsch.spec @@ -36,13 +36,18 @@ Name: jsch Version: 0.1.28 -Release: 1jpp.5 +Release: 1jpp.6 Epoch: 0 Summary: Pure Java implementation of SSH2 Group: Development/Libraries/Java License: BSD-style URL: http://www.jcraft.com/jsch/ Source0: http://download.sourceforge.net/sourceforge/jsch/jsch-%{version}.zip +# wget http://download.eclipse.org/tools/orbit/downloads/drops/S200703261521/bundles/com.jcraft.jsch_0.1.28.jar +# unzip com.jcraft.jsch_0.1.28.jar META-INF/MANIFEST.MF +# mv META-INF/MANIFEST.MF +# rmdir META-INF +Source1: MANIFEST.MF BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: jpackage-utils >= 0:1.5 @@ -92,6 +97,11 @@ Requires(postun): /bin/rm export CLASSPATH=$(build-classpath jzlib) ant dist javadoc +# inject the OSGi Manifest +mkdir META-INF +mv %{SOURCE1} META-INF +zip dist/lib/%{name}-*.jar META-INF/MANIFEST.MF + %install # jars rm -rf $RPM_BUILD_ROOT @@ -163,6 +173,9 @@ fi %changelog +* Tue Apr 3 2007 Ben Konrath - 0:0.1.28-1jpp.6 +- Add OSGi Manifest to jar. + * Thu Aug 10 2006 Deepak Bhole - 0:0.1.28-1jpp.5 - Updated changelog entries in spec.