Hello community,
here is the log from the commit of package jna for openSUSE:Factory
checked in at Thu Apr 8 12:33:38 CEST 2010.
--------
--- jna/jna.changes 2009-06-01 09:35:38.000000000 +0200
+++ /mounts/work_src_done/STABLE/jna/jna.changes 2010-04-08 09:46:37.000000000 +0200
@@ -1,0 +2,15 @@
+Thu Apr 8 06:44:52 UTC 2010 - mvyskocil@suse.cz
+
+- update to 3.1.0 (jna-3.1.0-2.jpp6.src.rpm)
+ * raw JNI mapping of static Java methods increased performance
+ * library option to allow passing/return of Java Objects.
+ * handling of uncaught callback exceptions (Issue 63).
+ * object oriented interface to X server (see contrib/x11)
+ * Memory class more accessible.
+ * allow implicit library access to current process on linux (issue 98).
+ * open all shared libraries with RTLD_GLOBAL, if applicable. This was the default behavior on OSX and changes the default behavior on linux.
+ * allow NIO Buffer as Structure field (with limitations) (Issue 57)
+ * add size_t size.
+ * Bug Fixes
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
Old:
----
jna-3.0.3-build.patch
jna-3.0.3-nojars.tar.bz2
jna-3.0.3.pom
New:
----
jna-3.1.0-build.patch
jna-3.1.0.pom
jna-3.1.0.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ jna.spec ++++++
--- /var/tmp/diff_new_pack.krbjEJ/_old 2010-04-08 12:33:29.000000000 +0200
+++ /var/tmp/diff_new_pack.krbjEJ/_new 2010-04-08 12:33:29.000000000 +0200
@@ -1,7 +1,9 @@
#
-# spec file for package jna (Version 3.0.3)
+# spec file for package jna (Version 3.1.0)
#
-# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2000-2009, JPackage Project
+# All rights reserved.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,37 +18,44 @@
#
+%define with() %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}}
+%define without() %{expand:%%{?with_%{1}:0}%%{!?with_%{1}:1}}
+%define bcond_with() %{expand:%%{?_with_%{1}:%%global with_%{1} 1}}
+%define bcond_without() %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}}
+
+%bcond_with native
+
%define section free
Name: jna
-Summary: Java Native Access
Url: https://jna.dev.java.net/
Group: Development/Libraries/Java
-Version: 3.0.3
-Release: 3
-License: LGPL
-BuildRequires: jpackage-utils >= 1.7.5
-BuildRequires: java-devel
-BuildRequires: ant >= 1.6.5
-BuildRequires: ant-nodeps
-BuildRequires: ant-junit
-BuildRequires: junit
-BuildRequires: ant-trax
-BuildRequires: xalan-j2
-Requires: java >= 1.5.0
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
-BuildArch: noarch
+Version: 3.1.0
+Release: 1
+
+Summary: Java Native Access
+License: LGPLv2+
+# svn -q export https://jna.dev.java.net/svn/jna/tags/3.1.0 jna-3.1.0 --username guest --password "" && tar cjf jna-3.1.0.tar.bz2 jna-3.1.0
# tax -xf jna-3.0.3.tar.bz2
# find jna-3.0.3/ -name '*.jar' | xargs rm -rf
# tar -cjf jna-3.0.3-nojars.tar.bz2 jna-3.0.3/
-Source0: jna-%{version}-nojars.tar.bz2
-# svn export https://jna.dev.java.net/svn/jna/tags/3.0.3 jna-3.0.3 --username guest
-# password is void
+Source0: jna-3.1.0.tar.bz2
Source1: %{name}-%{version}.pom
Source2: http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
Patch0: %{name}-%{version}-build.patch
Requires(post): jpackage-utils >= 1.7.5
Requires(postun): jpackage-utils >= 1.7.5
+Requires: java >= 1.5.0
+BuildRequires: ant
+BuildRequires: ant-nodeps
+BuildRequires: ant-junit
+BuildRequires: ant-trax
+BuildRequires: java-devel >= 1.5.0
+BuildRequires: jpackage-utils >= 1.7.5
+%if %without native
+BuildArch: noarch
+%endif
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
JNA provides Java programs easy access to native shared
@@ -58,6 +67,7 @@
with a minimum of effort. No boilerplate or generated code is
required. While some attention is paid to performance,
correctness and ease of use take priority.
+
The JNA library uses a small native library stub to dynamically
invoke native code. The developer uses a Java interface to
describe functions and structures in the target native library.
@@ -65,53 +75,64 @@
features without incurring the high overhead of configuring and
building JNI code for multiple platforms.
+%if %with native
+
+%package native
+License: LGPLv2+
+Summary: Native shared library %{name}
+Group: Development/Libraries/Java
+
+%description native
+
+%{summary}.
+%endif
+
%package javadoc
-License: LGPL
+License: LGPLv2+
Summary: Javadoc for %{name}
-Group: Development/Documentation
-Requires(post): /bin/rm,/bin/ln
-Requires(postun): /bin/rm
+Group: Development/HTML
%description javadoc
-JNA provides Java programs easy access to native shared
-libraries (DLLs on Windows) without writing anything but
-Java code. No JNI or native code is required. This functionality
-is comparable to Windows' Platform/Invoke and Python's ctypes.
-Access is dynamic at runtime without code generation.
-JNA's design aims to provide native access in a natural way
-with a minimum of effort. No boilerplate or generated code is
-required. While some attention is paid to performance,
-correctness and ease of use take priority.
-The JNA library uses a small native library stub to dynamically
-invoke native code. The developer uses a Java interface to
-describe functions and structures in the target native library.
-This makes it quite easy to take advantage of native platform
-features without incurring the high overhead of configuring and
-building JNI code for multiple platforms.
+
+%{summary}.
%prep
%setup -q
-%patch0 -b .sav0
-chmod 0644 jnalib/release-notes.html jnalib/LICENSE.txt
+%patch0 -p1 -b .orig
cp %{SOURCE2} .
%build
-unset CLASSPATH
-export JAVA_HOME=%{_jvmdir}/java-1.5.0
-export OPT_JAR_LIST="ant/ant-trax ant/ant-nodeps ant/ant-junit junit xalan-j2-serializer"
+export CLASSPATH=
+export OPT_JAR_LIST="`%{__cat} %{_sysconfdir}/ant.d/{junit,nodeps,trax}`"
cd jnalib
-%ant compile jar javadoc
+%if %with native
+%{ant} jar native compile-tests examples javadoc
+%else
+%{ant} jar compile-tests examples javadoc
+%endif
%install
+
+if [ -d jnalib/build-d64 ]; then
+suffix="-d64"
+fi
+
+%if %with native
+install -d -m 755 $RPM_BUILD_ROOT%{_libdir}
+install -p -m 644 jnalib/build${suffix}/native/libjnidispatch.so $RPM_BUILD_ROOT%{_libdir}/libjnidispatch.so
+%endif
+
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
-install -m 644 jnalib/build*/%{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
+install -p -m 644 jnalib/build${suffix}/%{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
+
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms
%add_to_maven_depmap com.sun.jna jna %{version} JPP %{name}
-install -m 644 %{SOURCE1} $RPM_BUILD_ROOT/%{_datadir}/maven2/poms/JPP-%{name}.pom
+install -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT/%{_datadir}/maven2/poms/JPP-%{name}.pom
+
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr jnalib/doc/javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
-ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink
+ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}
%clean
rm -rf $RPM_BUILD_ROOT
@@ -123,15 +144,23 @@
%update_maven_depmap
%files
-%defattr(-,root,root)
-%{_javadir}/*.jar
+%defattr(0644,root,root,0755)
%doc jnalib/release-notes.html jnalib/LICENSE.txt gpl-2.0.txt
-%{_datadir}/maven2
-%config %{_mavendepmapfragdir}
+%{_javadir}/%{name}-%{version}.jar
+%{_javadir}/%{name}.jar
+%{_datadir}/maven2/poms/JPP-%{name}.pom
+%{_mavendepmapfragdir}/%{name}
%files javadoc
-%defattr(-,root,root)
-%doc %{_javadocdir}/%{name}-%{version}
-%doc %{_javadocdir}/%{name}
+%defattr(0644,root,root,0755)
+%{_javadocdir}/%{name}-%{version}
+%{_javadocdir}/%{name}
+
+%if %with native
+
+%files native
+%defattr(0755,root,root,0755)
+%{_libdir}/libjnidispatch.so
+%endif
%changelog
++++++ jna-3.0.3-build.patch -> jna-3.1.0-build.patch ++++++
--- jna/jna-3.0.3-build.patch 2009-05-19 12:20:04.000000000 +0200
+++ /mounts/work_src_done/STABLE/jna/jna-3.1.0-build.patch 2010-03-24 17:20:15.000000000 +0100
@@ -1,8 +1,6 @@
-Index: jnalib/build.xml
-===================================================================
---- jnalib/build.xml.orig 2008-05-22 18:32:12.000000000 +0200
-+++ jnalib/build.xml 2009-05-19 12:12:07.875111832 +0200
-@@ -171,7 +171,7 @@
+--- jna-3.1.0/jnalib/build.xml.orig 2009-05-20 16:55:33.000000000 -0400
++++ jna-3.1.0/jnalib/build.xml 2009-07-14 14:23:55.300153922 -0400
+@@ -195,7 +195,7 @@
</srcfiles>
</uptodate>
</target>
@@ -11,8 +9,8 @@
description="Build primary jar">
<jar jarfile="${build}/${jar}">
<manifest>
-@@ -188,7 +188,7 @@
- <fileset dir="${classes}"><patternset refid="jar-compiled"/></fileset>
+@@ -214,7 +214,7 @@
+ </fileset>
</jar>
</target>
- <target name="examples" depends="jar,native">
@@ -20,7 +18,16 @@
<jar jarfile="${build}/examples.jar">
<manifest>
<attribute name="Class-Path" value="jna.jar"/>
-@@ -412,7 +412,9 @@
+@@ -391,7 +391,7 @@
+ </jar>
+ </target>
+
+-