File java-atk-wrapper.spec of Package java-atk-wrapper

# spec file for package java-atk-wrapper
# Copyright (c) 2014 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

%global major_version 0.30
Name:           java-atk-wrapper
Version:        0.30.5
Release:        0
Summary:        Java ATK Wrapper
License:        LGPL-2.0+
Group:          Development/Libraries/Java
Source1:        HOWTO
#PATCH-FIX-UPSTREAM: add missing includes,
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:  xz
Requires:       java >= 1.6.0
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} >= 1130
BuildRequires:  xprop
Requires:       xprop
BuildRequires:  xorg-x11
Requires:       xorg-x11

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

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.

%setup -q
%patch0 -p1
cp %{SOURCE1} .

%configure JAVACFLAGS="-source 1.5 -target 1.5"
make %{?_smp_mflags}

# 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/ %{buildroot}%{_libdir}/%{name}/
ln -s %{_libdir}/%{name}/ \

%doc NEWS
%doc HOWTO