diff --git a/java-atk-wrapper.changes b/java-atk-wrapper.changes index ba037df..43f534b 100644 --- a/java-atk-wrapper.changes +++ b/java-atk-wrapper.changes @@ -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 diff --git a/java-atk-wrapper.spec b/java-atk-wrapper.spec index 55aa7d4..cb36824 100644 --- a/java-atk-wrapper.spec +++ b/java-atk-wrapper.spec @@ -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} diff --git a/jaw-avoid-version.patch b/jaw-avoid-version.patch new file mode 100644 index 0000000..686d335 --- /dev/null +++ b/jaw-avoid-version.patch @@ -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) +