Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.2:Test
jna
jna.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File jna.spec of Package jna
# # spec file for package jna (Version 3.0.3) # # Copyright (c) 2009 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 http://bugs.opensuse.org/ # %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 # 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 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 %description 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. %package javadoc License: LGPL Summary: Javadoc for %{name} Group: Development/Documentation Requires(post): /bin/rm,/bin/ln Requires(postun): /bin/rm %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. %prep %setup -q %patch0 -b .sav0 chmod 0644 jnalib/release-notes.html jnalib/LICENSE.txt 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" cd jnalib %ant compile jar javadoc %install install -d -m 755 $RPM_BUILD_ROOT%{_javadir} install -m 644 jnalib/build*/%{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 -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 %clean rm -rf $RPM_BUILD_ROOT %post %update_maven_depmap %postun %update_maven_depmap %files %defattr(-,root,root) %{_javadir}/*.jar %doc jnalib/release-notes.html jnalib/LICENSE.txt gpl-2.0.txt %{_datadir}/maven2 %config %{_mavendepmapfragdir} %files javadoc %defattr(-,root,root) %doc %{_javadocdir}/%{name}-%{version} %doc %{_javadocdir}/%{name} %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor