Hi Andrew, On a semi-related note, I'd like know what you think about how we should build these OSGi bundles. Right now I'm thinking it should go something like this: * add the OSGi bundle from Orbit as an additional source to the rpm * build the jar like normal * extract and inject the OSGi Manifest to the original jar I whipped up an example of this with jsch from rawhide and attached the changes as a patch. We might want to include a symlink in /usr/share/java for the bundle notation that is used Orbit but I'm not convinced it would be useful at this point. For the Eclipse build I'm just going to add a symlink to the regular jar in /usr/share/eclipse/plugins with the Orbit bundle name. Let me know what you think so that I can commit this jsch stuff and move on the icu4j package. Thanks, Ben
? build.log ? com.jcraft.jsch_0.1.28.jar ? jsch-0.1.28 cvs diff: Diffing . Index: jsch.spec =================================================================== RCS file: /cvs/dist/rpms/jsch/devel/jsch.spec,v retrieving revision 1.19 diff -u -r1.19 jsch.spec --- jsch.spec 10 Aug 2006 15:28:36 -0000 1.19 +++ jsch.spec 28 Mar 2007 04:29:17 -0000 @@ -36,13 +36,14 @@ 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 +Source1: http://download.eclipse.org/tools/orbit/downloads/drops/S200703261521/bundles/com.jcraft.jsch_0.1.28.jar BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: jpackage-utils >= 0:1.5 @@ -92,6 +93,10 @@ export CLASSPATH=$(build-classpath jzlib) ant dist javadoc +# inject the OSGi Manifest +unzip %{SOURCE1} META-INF/MANIFEST.MF +zip dist/lib/%{name}-*.jar META-INF/MANIFEST.MF + %install # jars rm -rf $RPM_BUILD_ROOT @@ -163,8 +168,8 @@ %changelog -* Thu Aug 10 2006 Deepak Bhole <dbhole@xxxxxxxxxx> - 0:0.1.28-1jpp.5 -- Updated changelog entries in spec. +* Wed Mar 28 2007 Ben Konrath <bkonrath@xxxxxxxxxx> - 0:0.1.28-1jpp.6 +- Add OSGi Manifest to jar. * Fri Aug 04 2006 Deepak Bhole <dbhole@xxxxxxxxxx> - 0:0.1.28-1jpp.4 - Added conditional compiling support.
-- fedora-devel-java-list mailing list fedora-devel-java-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-devel-java-list