[opensuse-packaging] Beginner Java Bindings packaging question
All, I just found out the java bindings should be in sleuthkit-devel. Previously, they were just dropping on the floor. I made a stab at it in my home project. home:gregfreemyer:Tools-for-forensic-boot-cd > sleuthkit The diff is: ==== @@ -98,6 +98,8 @@ %make_install INSTALL="install -p" %endif find %{buildroot} -name '*.la' -exec rm -f {} ';' +mkdir -p %{buildroot}/%{_datadir}/sleuthkit +cp --archive bindings %{buildroot}/%{_datadir}/sleuthkit/bindings %post -n libtsk3%sosuffix -p /sbin/ldconfig @@ -186,5 +188,6 @@ # CPL and IBM %{_includedir}/tsk3/ %{_libdir}/*.so +%{_datadir}/sleuthkit/bindings ==== Is that the right way to do it? Did I put them in the right directory/location? Thanks Greg -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Sun, Mar 10, 2013 at 10:49:59AM -0400, Greg Freemyer wrote:
All,
I just found out the java bindings should be in sleuthkit-devel. Previously, they were just dropping on the floor. I made a stab at it in my home project.
home:gregfreemyer:Tools-for-forensic-boot-cd > sleuthkit
The diff is:
==== @@ -98,6 +98,8 @@ %make_install INSTALL="install -p" %endif find %{buildroot} -name '*.la' -exec rm -f {} ';' +mkdir -p %{buildroot}/%{_datadir}/sleuthkit +cp --archive bindings %{buildroot}/%{_datadir}/sleuthkit/bindings
%post -n libtsk3%sosuffix -p /sbin/ldconfig
@@ -186,5 +188,6 @@ # CPL and IBM %{_includedir}/tsk3/ %{_libdir}/*.so +%{_datadir}/sleuthkit/bindings ====
Is that the right way to do it? Did I put them in the right directory/location?
Hi, this is not well documented in our wiki, but you can follow the Fedora documentation. * JAR files using JNI or containing JNI shared objects themselves MUST be placed in %{_jnidir} and CAN BE symlinked to %{_libdir}/%{name}. * JNI shared objects MUST be placed in %{_libdir}/%{name} https://fedoraproject.org/wiki/Packaging:Java#Packaging_JAR_files_that_use_J... But we are not that strict about _jnidir, so feel free to put jar and a .so file into %{_libdir}/%{name}. See libreadline-java as an example https://build.opensuse.org/package/show?package=libreadline-java&project=openSUSE%3AFactory Regards Michal Vyskocil
participants (2)
-
Greg Freemyer
-
Michal Vyskocil