[fedora-java] Packaging guidelines - do we need to repack jars for noarch Java packages?

Sean Flanigan sflaniga at redhat.com
Thu Sep 11 02:41:13 UTC 2008


G'day!

I've been creating a package for eclipse-nls
<https://bugzilla.redhat.com/show_bug.cgi?id=456972>, and I added this
to my spec file:

# Disable repacking of jars, since it takes forever for all the little
jars,
# and we don't need multilib anyway:
%define __jar_repack %{nil}

I haven't found a good explanation of the reasons behind jar repacking,
but I gather it's something to do with multilib.  What happens if you
don't repack when you should?

Jar repacking is incredibly slow when you have lots of little plugins
(hello Eclipse!), so avoiding it is nice.

I'm pretty sure it's safe to skip repacking in my case, because my
package contains nothing except .properties files inside Eclipse plugins
which are in jars when I download them, but is it safe to do in more
general cases, such as noarch packages?

Is there anything useful we could add to the guidelines?

Regards

Sean.
-- 
Sean Flanigan

Senior Software Engineer
Engineering - Internationalisation
Red Hat

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 551 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/fedora-devel-java-list/attachments/20080911/3474a0bf/attachment.sig>


More information about the fedora-devel-java-list mailing list