Group :: Development/Other
RPM: java-atk-wrapper
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Group: Development/Other
# BEGIN SourceDeps(oneline):
BuildRequires: imake libXt-devel pkgconfig(dbus-1) xorg-cf-files
# END SourceDeps(oneline)
BuildRequires: /proc rpm-build-java
BuildRequires: jpackage-default
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
%global major_version 0.38
%global minor_version 0
Name: java-atk-wrapper
Version: %{major_version}.%{minor_version}
Release: alt2_6jpp11
Summary: Java ATK Wrapper
License: LGPLv2+
URL: https://gitlab.gnome.org/GNOME/java-atk-wrapper
Source0: https://download.gnome.org/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
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: clang
BuildRequires: libatk-devel libatk-gir-devel
BuildRequires: glib2-devel libgio libgio-devel
BuildRequires: gtk-builder-convert libgail-devel libgtk+2-devel
BuildRequires: xprop
BuildRequires: libgail3-devel libgtk+3-devel libgtk+3-gir-devel
BuildRequires: at-spi2-atk-devel
BuildRequires: libat-spi2-core-devel libat-spi2-core-gir-devel
BuildRequires: gobject-introspection-devel
Requires: java
Requires: xprop
Source44: import.info
%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
%build
%configure --disable-Werror
#make_build
make -j2
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 %{buildroot}%{_libdir}/%{name}/
ln -s %{_libdir}/%{name}/libatk-wrapper.so \
%{buildroot}%{_libdir}/%{name}/libatk-wrapper.so.0
%files
%doc AUTHORS
%doc COPYING.LESSER
%doc NEWS
%doc README
%doc README.fedora
%{_libdir}/%{name}/
%changelog
…
Full changelog you can see here
# BEGIN SourceDeps(oneline):
BuildRequires: imake libXt-devel pkgconfig(dbus-1) xorg-cf-files
# END SourceDeps(oneline)
BuildRequires: /proc rpm-build-java
BuildRequires: jpackage-default
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
%global major_version 0.38
%global minor_version 0
Name: java-atk-wrapper
Version: %{major_version}.%{minor_version}
Release: alt2_6jpp11
Summary: Java ATK Wrapper
License: LGPLv2+
URL: https://gitlab.gnome.org/GNOME/java-atk-wrapper
Source0: https://download.gnome.org/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
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: clang
BuildRequires: libatk-devel libatk-gir-devel
BuildRequires: glib2-devel libgio libgio-devel
BuildRequires: gtk-builder-convert libgail-devel libgtk+2-devel
BuildRequires: xprop
BuildRequires: libgail3-devel libgtk+3-devel libgtk+3-gir-devel
BuildRequires: at-spi2-atk-devel
BuildRequires: libat-spi2-core-devel libat-spi2-core-gir-devel
BuildRequires: gobject-introspection-devel
Requires: java
Requires: xprop
Source44: import.info
%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
%build
%configure --disable-Werror
#make_build
make -j2
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 %{buildroot}%{_libdir}/%{name}/
ln -s %{_libdir}/%{name}/libatk-wrapper.so \
%{buildroot}%{_libdir}/%{name}/libatk-wrapper.so.0
%files
%doc AUTHORS
%doc COPYING.LESSER
%doc NEWS
%doc README
%doc README.fedora
%{_libdir}/%{name}/
%changelog
…
Full changelog you can see here