A new user interface for you!

File jna-posix.spec of Package jna-posix

# spec file for package 
# 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 http://bugs.opensuse.org/

Name:		jna-posix
Version:	1.0.3
Release:	0
License:	LGPL-2.1
Summary:	Access to common POSIX functions from Java
Url:		https://kenai.com/projects/jna-posix
Group:		Development/Libraries/Java
Source:		%{name}-%{version}.tar.xz
BuildRequires:	ant ant-junit
%if 0%{?rhel_version} || 0%{?centos_version}
BuildRequires:	java-1.6.0-openjdk-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:	noarch

jna-posix is a lightweight cross-platform POSIX emulation layer for Java,
written in Java and leveraging the JNA library (https://jna.dev.java.net/).

%package javadoc
Summary:	Javadocs for %{name}
Group:		Documentation/HTML
Requires:	jpackage-utils

%description javadoc
This package contains the API documentation for %{name}.

%setup -q

ant jar javadoc

%{__mkdir} -p %{buildroot}%{_javadir}
%{__cp} -p dist/%{name}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
/bin/ln -s %{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
%{__mkdir} -p %{buildroot}%{_javadocdir}/%{name}
%{__cp} -rp dist/javadoc/* %{buildroot}%{_javadocdir}/%{name}



%doc LICENSE.txt README.txt

%files javadoc