- Add OSGi Manifest to jar.
This commit is contained in:
parent
00d157d66f
commit
5f3dce2335
13
MANIFEST.MF
Normal file
13
MANIFEST.MF
Normal file
@ -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
|
||||||
|
|
15
jsch.spec
15
jsch.spec
@ -36,13 +36,18 @@
|
|||||||
|
|
||||||
Name: jsch
|
Name: jsch
|
||||||
Version: 0.1.28
|
Version: 0.1.28
|
||||||
Release: 1jpp.5
|
Release: 1jpp.6
|
||||||
Epoch: 0
|
Epoch: 0
|
||||||
Summary: Pure Java implementation of SSH2
|
Summary: Pure Java implementation of SSH2
|
||||||
Group: Development/Libraries/Java
|
Group: Development/Libraries/Java
|
||||||
License: BSD-style
|
License: BSD-style
|
||||||
URL: http://www.jcraft.com/jsch/
|
URL: http://www.jcraft.com/jsch/
|
||||||
Source0: http://download.sourceforge.net/sourceforge/jsch/jsch-%{version}.zip
|
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
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
||||||
|
|
||||||
BuildRequires: jpackage-utils >= 0:1.5
|
BuildRequires: jpackage-utils >= 0:1.5
|
||||||
@ -92,6 +97,11 @@ Requires(postun): /bin/rm
|
|||||||
export CLASSPATH=$(build-classpath jzlib)
|
export CLASSPATH=$(build-classpath jzlib)
|
||||||
ant dist javadoc
|
ant dist javadoc
|
||||||
|
|
||||||
|
# inject the OSGi Manifest
|
||||||
|
mkdir META-INF
|
||||||
|
mv %{SOURCE1} META-INF
|
||||||
|
zip dist/lib/%{name}-*.jar META-INF/MANIFEST.MF
|
||||||
|
|
||||||
%install
|
%install
|
||||||
# jars
|
# jars
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
@ -163,6 +173,9 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Apr 3 2007 Ben Konrath <bkonrath@redhat.com> - 0:0.1.28-1jpp.6
|
||||||
|
- Add OSGi Manifest to jar.
|
||||||
|
|
||||||
* Thu Aug 10 2006 Deepak Bhole <dbhole@redhat.com> - 0:0.1.28-1jpp.5
|
* Thu Aug 10 2006 Deepak Bhole <dbhole@redhat.com> - 0:0.1.28-1jpp.5
|
||||||
- Updated changelog entries in spec.
|
- Updated changelog entries in spec.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user