Don't use libtool symlinks for the native library

OBS-URL: https://build.opensuse.org/package/show/Java:Factory/java-atk-wrapper?expand=0&rev=10
This commit is contained in:
Fridrich Strba 2017-10-10 16:43:06 +00:00 committed by Git OBS Bridge
parent 824cae4ce7
commit f34607f09e
3 changed files with 28 additions and 0 deletions

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Tue Oct 10 16:35:27 UTC 2017 - fstrba@suse.com
- Added patch:
* jaw-avoid-version.patch
- Avoid libtool generated symlinks for the native library,
since it is loaded by System.loadLibrary which expects the
library finish with .so anyway.
-------------------------------------------------------------------
Wed Sep 6 13:12:32 UTC 2017 - fstrba@suse.com

View File

@ -27,7 +27,12 @@ Url: http://git.gnome.org/browse/java-atk-wrapper/
Source0: http://ftp.gnome.org/pub/GNOME/sources/%{name}/%{major_version}/%{name}-%{version}.tar.xz
Source1: HOWTO
Source2: manifest.txt
# Avoid libtool versioning; this library is dynamically loaded from Java code
Patch0: jaw-avoid-version.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: java-devel >= 1.7.0
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: xprop
BuildRequires: xz
@ -55,10 +60,13 @@ change of underlying communication mechanism.
%prep
%setup -q
%patch0 -p1
cp %{SOURCE1} .
cp %{SOURCE2} wrapper/
%build
libtoolize --force --copy --install
autoreconf -fi
%configure JAVACFLAGS="-source 1.7 -target 1.7" --libdir=%{_libdir}/%{name}
make %{?_smp_mflags}

11
jaw-avoid-version.patch Normal file
View File

@ -0,0 +1,11 @@
--- java-atk-wrapper-0.33.2/jni/src/Makefile.am 2015-06-25 19:57:08.000000000 +0200
+++ java-atk-wrapper-0.33.2/jni/src/Makefile.am 2017-10-10 18:26:19.645994291 +0200
@@ -32,7 +32,7 @@
libatk_wrapper_la_LDFLAGS = $(LIB_ATK_WRAPPER_LD_FLAGS) \
$(LT_VERSION_INFO) \
$(PLATFORM_LDFLAGS) \
- $(AM_LDFLAGS)
+ $(AM_LDFLAGS) -avoid-version
libatk_wrapper_la_LIBADD = $(JAW_LIBS)