Hi,
You should probably create a stripped version of the source archive without the
bundled stuff since some of them seem non-free (windows/lib/msvcr71.dll). Also
remove bundled jars, *.so, windows and macosx stuff.
Then you need to find packages providing the libraries you unbundled.
jh.jar should be provided by javahelp2 (the jar is named javahelp2.jar)
junit.jar is obviously provided by junit
script-api.jar should be provided by rhino
substance-lite.jar doesn't seem to be packaged in Fedora, but it seems like
look-and-feel library, maybe you don't need it
medialib could be partially provided by JDK or jai-imageio-core, if not
you'll have to package it
You need to point the build system to the right locations. You need to either
patch the build files or make symlinks to system-wide files. There is a script -
build-jar-repository that could simplify this task. Since the build file is looking
for the jars in lib/ directory, create symlinks with build-jar-repository there.
The native files that are really produced during the build belong to
%{_jnidir} (.jar files using native parts) and %{_libdir} (.so files).
See:
http://fedoraproject.org/wiki/Packaging:Java#JNI
Michael Simacek
----- Original Message -----
From: "Matthew Miller" <mattdm(a)fedoraproject.org>
To: java-devel(a)lists.fedoraproject.org
Sent: Sunday, June 1, 2014 5:43:45 PM
Subject: [fedora-java] java help properly packaging LightZone
Hi! I'm really kind of java-clueless, and I'd like to package up LightZone,
a unique and powerful open source photography application. I made a package
that _works_, but it throws everything in one directory and I'm quite sure
that's not how we are supposed to be packaging things, but I'm also not
quite sure how to detangle which parts are arch-specific.
A _lot_ of the arch-specific stuff seems to be bundled libraries, and I'm
not sure how to separate that while also actually linking the java things
against the system libraries.
Would anyone like to help me with this?
Ideally, would anyone like to help, and then, also, be a comaintainer of the
package once we get it into Fedora proper?
My first cut is in a Copr here:
http://copr.fedoraproject.org/coprs/mattdm/LightZone/
(from src.rpm at
http://mattdm.org/misc/fedora/LightZone-4.1.0-0.2.beta9.git39223bf.src.rpm)
--
Matthew Miller -- Fedora Project -- <mattdm(a)fedoraproject.org>
"Tepid change for the somewhat better!"
--
java-devel mailing list
java-devel(a)lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/java-devel