LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File jna-posix.spec of Package jna-posix (Project home:concyclic)

#
# 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
#Patch:
BuildRequires:	ant ant-junit
%if 0%{?rhel_version} || 0%{?centos_version}
BuildRequires:	java-1.6.0-openjdk-devel
%endif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:	noarch

%description
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}.

%prep
%setup -q

%build
ant jar javadoc

%install
%{__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}


#%%post

#%%postun

%files
%defattr(-,root,root)
%{_javadir}/*
%doc LICENSE.txt README.txt

%files javadoc
%defattr(0644,root,root,0755)
%{_javadocdir}/%{name}

#%%changelog