From 5251a60c7e3fce0a1b82c41925d7508b331d5f26 Mon Sep 17 00:00:00 2001 From: Adam Samalik Date: Wed, 10 May 2023 09:59:54 +0200 Subject: [PATCH] import sources --- .gitignore | 1 + README.fedora | 12 +++ java-atk-wrapper.spec | 132 +++++++++++++++++++++++ removeNotExistingManifestInclusion.patch | 22 ++++ sources | 1 + 5 files changed, 168 insertions(+) create mode 100644 .gitignore create mode 100644 README.fedora create mode 100644 java-atk-wrapper.spec create mode 100644 removeNotExistingManifestInclusion.patch create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d3a36d8 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/java-atk-wrapper-0.33.2.tar.xz diff --git a/README.fedora b/README.fedora new file mode 100644 index 0000000..d948ac7 --- /dev/null +++ b/README.fedora @@ -0,0 +1,12 @@ +This fedora 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.spec b/java-atk-wrapper.spec new file mode 100644 index 0000000..c958f3d --- /dev/null +++ b/java-atk-wrapper.spec @@ -0,0 +1,132 @@ +%global major_version 0.33 +%global minor_version 2 +%global libver 5.0.0 + +Name: java-atk-wrapper +Version: %{major_version}.%{minor_version} +Release: 6%{?dist} +Summary: Java ATK Wrapper + +Group: Development/Libraries +License: LGPLv2+ +URL: http://git.gnome.org/browse/java-atk-wrapper +Source0: http://ftp.gnome.org/pub/GNOME/sources/%{name}/%{major_version}/%{name}-%{version}.tar.xz +# this is a fedora-specific file +# needed to explain how to use java-atk-wrapper with different java runtimes +Source1: README.fedora +Patch1: removeNotExistingManifestInclusion.patch + +BuildRequires: java-devel + +BuildRequires: atk-devel +BuildRequires: GConf2-devel +BuildRequires: glib2-devel +BuildRequires: gtk2-devel +BuildRequires: xorg-x11-utils +BuildRequires: gtk3-devel +BuildRequires: at-spi2-atk-devel +BuildRequires: at-spi2-core-devel + + +Requires: java +Requires: xorg-x11-utils + +%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 +%patch1 +# Source contains a pre-built AtkWrapper.java with incorrect path to xprop (should +# be in /usr/bin/ not /opt/X11/bin/). The real source file is AtkWrapper.java.in, +# so explicitly remove the pre-built file before building. +rm wrapper/org/GNOME/Accessibility/AtkWrapper.java + +%build +%configure +make %{?_smp_mflags} +cp %{SOURCE1} . + +%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.%{libver} %{buildroot}%{_libdir}/%{name}/ +ln -s %{_libdir}/%{name}/libatk-wrapper.so.%{libver} \ + %{buildroot}%{_libdir}/%{name}/libatk-wrapper.so.0 + + +%files +%doc AUTHORS +%doc COPYING.LESSER +%doc NEWS +%doc README +%doc README.fedora +%{_libdir}/%{name}/ + + +%changelog +* Wed Feb 07 2018 Fedora Release Engineering - 0.33.2-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Aug 02 2017 Fedora Release Engineering - 0.33.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 0.33.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 10 2017 Fedora Release Engineering - 0.33.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Thu Feb 04 2016 Fedora Release Engineering - 0.33.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Tue Nov 17 2015 - Anirudhan Mukundank - 0.33.2-1 +- Removed AtkWrapper.java before build in spec file + +* Tue Sep 01 2015 - Jiri Vanek - 0.33.2-0 +- updated t 0.33.2 +- added patch to fix addition of not existng manifest + +* Wed Jun 17 2015 Fedora Release Engineering - 0.32.92-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Mon Mar 30 2015 - Jiri Vanek - 0.32.92-1 +- first update ever +- to newest wrapper 32.92 with faith to fix some issues +- added build requirments of gtk3-devel, at-spi2-atk-devel and at-spi2-core-devel +- introduced libver macro to avoid duplicated entry + +* Sat Aug 16 2014 Fedora Release Engineering - 0.30.4-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 0.30.4-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sat Aug 03 2013 Fedora Release Engineering - 0.30.4-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Thu Feb 14 2013 Fedora Release Engineering - 0.30.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Thu Jul 19 2012 Fedora Release Engineering - 0.30.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Thu May 10 2012 - Omair Majid - 0.30.4-1 +- Added missing requires/buildrequires on xorg-x11-utils +- Added README.fedora + +* Wed May 09 2012 - Omair Majid - 0.30.4-1 +- Initial packaging diff --git a/removeNotExistingManifestInclusion.patch b/removeNotExistingManifestInclusion.patch new file mode 100644 index 0000000..f053621 --- /dev/null +++ b/removeNotExistingManifestInclusion.patch @@ -0,0 +1,22 @@ +--- wrapper/Makefile.am ++++ wrapper/Makefile.am +@@ -16,7 +16,7 @@ + EXTRA_DIST = $(properties_DATA) + + $(JARFILES) : $(DEP_CLASSES) +- $(JAR) cfm $(JARFILES) manifest.txt org/GNOME/Accessibility/*.class ++ $(JAR) cf $(JARFILES) org/GNOME/Accessibility/*.class + + all-local : $(DATA) $(JARFILES) + +--- wrapper/Makefile.in ++++ wrapper/Makefile.in +@@ -717,7 +717,7 @@ + + + $(JARFILES) : $(DEP_CLASSES) +- $(JAR) cfm $(JARFILES) manifest.txt org/GNOME/Accessibility/*.class ++ $(JAR) cf $(JARFILES) org/GNOME/Accessibility/*.class + + all-local : $(DATA) $(JARFILES) + diff --git a/sources b/sources new file mode 100644 index 0000000..993c390 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (java-atk-wrapper-0.33.2.tar.xz) = 9a82ee3145ab72a9d82ac579b642c0cff85a22bf708b36f1446ecb0becbdea22ac0fd1c4adfa1518cc5d283237903decfd2aaddfe6693051af5dcc1cd7cb6c20