Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.1
jna
jna.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File jna.spec of Package jna
# # spec file for package jna (Version 3.1.0) # # 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 # 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 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 Url: https://jna.dev.java.net/ Group: Development/Libraries/Java 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-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 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. %if %with native %package native License: LGPLv2+ Summary: Native shared library %{name} Group: Development/Libraries/Java %description native %{summary}. %endif %package javadoc License: LGPLv2+ Summary: Javadoc for %{name} Group: Development/HTML %description javadoc %{summary}. %prep %setup -q %patch0 -p1 -b .orig cp %{SOURCE2} . %build export CLASSPATH= export OPT_JAR_LIST="`%{__cat} %{_sysconfdir}/ant.d/{junit,nodeps,trax}`" cd jnalib %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 -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 -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} %clean rm -rf $RPM_BUILD_ROOT %post %update_maven_depmap %postun %update_maven_depmap %files %defattr(0644,root,root,0755) %doc jnalib/release-notes.html jnalib/LICENSE.txt gpl-2.0.txt %{_javadir}/%{name}-%{version}.jar %{_javadir}/%{name}.jar %{_datadir}/maven2/poms/JPP-%{name}.pom %{_mavendepmapfragdir}/%{name} %files javadoc %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
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