2013-12-18 12:32:25 +01:00
|
|
|
#
|
|
|
|
# spec file for package java-atk-wrapper
|
|
|
|
#
|
2014-05-10 22:57:49 +02:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2013-12-18 12:32:25 +01:00
|
|
|
#
|
|
|
|
# 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
|
2014-05-10 22:57:49 +02:00
|
|
|
#PATCH: force production of bytecode version compatible with java 1.5
|
|
|
|
Patch1: java-atk-wrapper-source-target.patch
|
|
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
2013-12-18 12:32:25 +01:00
|
|
|
BuildRequires: atk-devel
|
|
|
|
BuildRequires: gconf2-devel
|
|
|
|
BuildRequires: glib2-devel
|
|
|
|
BuildRequires: gtk2-devel
|
|
|
|
BuildRequires: java-devel >= 1.6.0
|
|
|
|
Requires: java >= 1.6.0
|
2014-05-10 22:57:49 +02:00
|
|
|
%if 0%{?suse_version} >= 1130
|
|
|
|
BuildRequires: xprop
|
2013-12-18 12:32:25 +01:00
|
|
|
Requires: xprop
|
2014-05-10 22:57:49 +02:00
|
|
|
%else
|
|
|
|
BuildRequires: xorg-x11
|
|
|
|
Requires: xorg-x11
|
|
|
|
%endif
|
2013-12-18 12:32:25 +01:00
|
|
|
|
|
|
|
%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
|
2014-05-10 22:57:49 +02:00
|
|
|
%patch1 -p1
|
2013-12-18 12:32:25 +01:00
|
|
|
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
|