commit 2e1cd4fe6eaa87b3e9417d5d9e0a8b168d641167537de8a1cdf68081945cd8ef Author: Stephan Kulow Date: Wed Dec 18 11:32:25 2013 +0000 Accepting request 211022 from Java:openjdk6:Factory OBS-URL: https://build.opensuse.org/request/show/211022 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/java-atk-wrapper?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/HOWTO b/HOWTO new file mode 100644 index 0000000..573ec01 --- /dev/null +++ b/HOWTO @@ -0,0 +1,12 @@ +Package installs java-atk-wrapper in a JRE-independent way. It is up to each +JRE to make use of it correctly. In general, you want to symlink the shared +object and the jar into somehwere where the JRE can find it and configure the +accessiblity configuration of the JRE to load this. + +For OpenJDK, the process looks like this: +ln -s %{_libdir}/java-atk-wrapper/libatk-wrapper.so.0 \ + /usr/lib/jvm/jre/lib/%{arch}/libatk-wrapper.so +ln -s %{_libdir}/java-atk-wrapper/java-atk-wrapper.jar \ + /usr/lib/jvm/jre/lib/ext/ +echo "assistive_technologies=org.GNOME.Accessibility.AtkWrapper" \ + >> /usr/lib/java/jre/lib/accessibility.properties diff --git a/java-atk-wrapper-0.30.4.tar.bz2 b/java-atk-wrapper-0.30.4.tar.bz2 new file mode 100644 index 0000000..7e11719 --- /dev/null +++ b/java-atk-wrapper-0.30.4.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:24518862452a09448a6db22a40a2a533596e88fc66fcadc25d581c716b40a2d8 +size 272549 diff --git a/java-atk-wrapper-fortify-decl.patch b/java-atk-wrapper-fortify-decl.patch new file mode 100644 index 0000000..39eded2 --- /dev/null +++ b/java-atk-wrapper-fortify-decl.patch @@ -0,0 +1,29 @@ +--- + jni/src/jawtoplevel.c | 1 + + jni/src/jawutil.c | 1 + + 2 files changed, 2 insertions(+) + +Index: java-atk-wrapper-0.30.4/jni/src/jawtoplevel.c +=================================================================== +--- java-atk-wrapper-0.30.4.orig/jni/src/jawtoplevel.c ++++ java-atk-wrapper-0.30.4/jni/src/jawtoplevel.c +@@ -19,6 +19,7 @@ + + #include + #include ++#include + #include + #include "jawtoplevel.h" + +Index: java-atk-wrapper-0.30.4/jni/src/jawutil.c +=================================================================== +--- java-atk-wrapper-0.30.4.orig/jni/src/jawutil.c ++++ java-atk-wrapper-0.30.4/jni/src/jawutil.c +@@ -19,6 +19,7 @@ + + #include + #include ++#include + #include + #include "jawutil.h" + #include "jawtoplevel.h" diff --git a/java-atk-wrapper.changes b/java-atk-wrapper.changes new file mode 100644 index 0000000..f893480 --- /dev/null +++ b/java-atk-wrapper.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Thu Dec 12 15:26:28 UTC 2013 - mvyskocil@suse.com + +- Initial SUSE packaging of java-awt-wrapper + * java-atk-wrapper-fortify-decl.patch to fix missing headers diff --git a/java-atk-wrapper.spec b/java-atk-wrapper.spec new file mode 100644 index 0000000..585c8b8 --- /dev/null +++ b/java-atk-wrapper.spec @@ -0,0 +1,82 @@ +# +# spec file for package java-atk-wrapper +# +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +%global major_version 0.30 + +Name: java-atk-wrapper +Version: 0.30.4 +Release: 0 +Summary: Java ATK Wrapper +License: LGPL-2.0+ +Group: Development/Libraries/Java +Url: http://git.gnome.org/browse/java-atk-wrapper/ +Source0: http://ftp.gnome.org/pub/GNOME/sources/%{name}/%{major_version}/%{name}-%{version}.tar.bz2 +Source1: HOWTO +#PATCH-FIX-UPSTREAM: add missing includes, mvyskocil@suse.com +Patch0: java-atk-wrapper-fortify-decl.patch +BuildRequires: atk-devel +BuildRequires: gconf2-devel +BuildRequires: glib2-devel +BuildRequires: gtk2-devel +BuildRequires: java-devel >= 1.6.0 +BuildRequires: xprop +Requires: java >= 1.6.0 +Requires: xprop + +%description +Java ATK Wrapper is a implementation of ATK by using JNI technic. It +converts Java Swing events into ATK events, and send these events to +ATK-Bridge. + +JAW is part of the Bonobo deprecation project. It will replaces the +former java-access-bridge. +By talking to ATK-Bridge, it keeps itself from being affected by the +change of underlying communication mechanism. + +%prep +%setup -q +%patch0 -p1 +cp %{SOURCE1} . + +%build +%configure +make %{?_smp_mflags} + +%install +# java-atk-wrapper's make install is broken by design +# it installs to the current JDK_HOME. We want to install it to a central +# location and then allow all/any JRE's/JDK's to use it. +# make install DESTDIR=$RPM_BUILD_ROOT + +mkdir -p %{buildroot}%{_libdir}/%{name} + +mv wrapper/java-atk-wrapper.jar %{buildroot}%{_libdir}/%{name}/ +mv jni/src/.libs/libatk-wrapper.so.0.0.18 %{buildroot}%{_libdir}/%{name}/ +ln -s %{_libdir}/%{name}/libatk-wrapper.so.0.0.18 \ + %{buildroot}%{_libdir}/%{name}/libatk-wrapper.so.0 + +%files +%defattr(-,root,root,-) +%doc AUTHORS +%doc COPYING.LESSER +%doc NEWS +%doc README +%doc HOWTO +%{_libdir}/%{name}/ + +%changelog