2006-12-15 17:10:17 +00:00
|
|
|
#
|
2012-01-19 08:43:14 +00:00
|
|
|
# spec file for package libreadline-java
|
2006-12-15 17:10:17 +00:00
|
|
|
#
|
2017-06-09 11:04:34 +00:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2006-12-15 17:10:17 +00:00
|
|
|
#
|
2009-06-18 23:03:57 +00:00
|
|
|
# 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.
|
|
|
|
|
2006-12-15 17:10:17 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2008-04-10 12:32:28 +00:00
|
|
|
|
2006-12-15 17:10:17 +00:00
|
|
|
Name: libreadline-java
|
|
|
|
Version: 0.8.0
|
2012-01-19 08:43:14 +00:00
|
|
|
Release: 0
|
2012-06-20 13:32:42 +00:00
|
|
|
Summary: Java Wrapper for the EditLine Library
|
2011-12-06 17:25:27 +00:00
|
|
|
License: LGPL-2.1+
|
2012-01-19 08:43:14 +00:00
|
|
|
Group: Development/Libraries/Java
|
2014-06-27 12:06:50 +00:00
|
|
|
Url: http://java-readline.sf.net/
|
2006-12-15 17:10:17 +00:00
|
|
|
Source0: http://download.sourceforge.net/java-readline/libreadline-java-0.8.0-src.tar.gz
|
2010-03-18 23:11:37 +00:00
|
|
|
Source1: baselibs.conf
|
2012-06-20 13:32:42 +00:00
|
|
|
Patch0: libreadline-java-ncurses.patch
|
|
|
|
Patch1: libreadline-java-libdir.patch
|
|
|
|
Patch2: libreadline-java-0.8.0-missing-return-type.patch
|
2017-06-09 11:04:34 +00:00
|
|
|
BuildRequires: java-devel >= 1.6.0
|
2013-09-13 09:12:11 +00:00
|
|
|
BuildRequires: javapackages-tools
|
2012-06-20 13:32:42 +00:00
|
|
|
BuildRequires: libedit-devel >= 2.9
|
|
|
|
BuildRequires: ncurses-devel
|
2017-06-09 11:04:34 +00:00
|
|
|
BuildRequires: zlib-devel
|
|
|
|
Requires: java
|
2012-06-20 13:32:42 +00:00
|
|
|
Requires: libedit >= 2.9
|
2014-06-27 12:06:50 +00:00
|
|
|
Provides: gnu.readline
|
|
|
|
Provides: java_readline
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2006-12-15 17:10:17 +00:00
|
|
|
|
2012-06-20 13:32:42 +00:00
|
|
|
%description
|
|
|
|
libreadline-java provides Java bindings for libedit though a JNI
|
|
|
|
wrapper.
|
2006-12-15 17:10:17 +00:00
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Summary: Javadoc for libreadline-java
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
|
|
|
|
%description javadoc
|
2012-06-20 13:32:42 +00:00
|
|
|
libreadline-java provides Java bindings for libedit though a JNI
|
|
|
|
wrapper. This package contains the javadoc documentation for it.
|
2006-12-15 17:10:17 +00:00
|
|
|
|
|
|
|
%prep
|
2014-06-27 12:06:50 +00:00
|
|
|
%setup -q
|
2012-06-20 13:32:42 +00:00
|
|
|
%patch0
|
|
|
|
%patch1
|
|
|
|
%patch2 -p1
|
2006-12-15 17:10:17 +00:00
|
|
|
find . -name "*.jar" -exec rm -f {} \;
|
2012-06-20 13:32:42 +00:00
|
|
|
sed -i 's|@LIBDIR@|%{_libdir}|' src/org/gnu/readline/Readline.java
|
2006-12-15 17:10:17 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
export JAVA_HOME=%{java_home}
|
|
|
|
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH
|
2014-06-27 12:06:50 +00:00
|
|
|
make CFLAGS="%{optflags} -fPIC -DPOSIX" T_LIBS=JavaEditline -j1
|
|
|
|
make apidoc -j1
|
2012-06-20 13:32:42 +00:00
|
|
|
|
|
|
|
# fix debuginfo package
|
|
|
|
rm -f org test
|
|
|
|
for dir in org test
|
|
|
|
do
|
|
|
|
ln -s src/$dir
|
|
|
|
done
|
2006-12-15 17:10:17 +00:00
|
|
|
|
|
|
|
%install
|
2012-06-20 13:32:42 +00:00
|
|
|
# install jar file and JNI library under %{_libdir}/%{name}
|
|
|
|
# FIXME: fix jpackage-utils to handle multilib correctly
|
2014-06-27 12:06:50 +00:00
|
|
|
mkdir -p %{buildroot}%{_libdir}/%{name}
|
2012-06-20 13:32:42 +00:00
|
|
|
install -m 644 %{name}.jar \
|
2014-06-27 12:06:50 +00:00
|
|
|
%{buildroot}%{_libdir}/%{name}/%{name}.jar
|
|
|
|
install -m 755 libJavaEditline.so %{buildroot}%{_libdir}/%{name}
|
2012-06-20 13:32:42 +00:00
|
|
|
|
2006-12-15 17:10:17 +00:00
|
|
|
# javadoc
|
2014-07-08 10:14:27 +00:00
|
|
|
mkdir -p %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
cp -a api/* %{buildroot}%{_javadocdir}/%{name}
|
2006-12-15 17:10:17 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(0644,root,root,0755)
|
2012-06-20 13:32:42 +00:00
|
|
|
%doc ChangeLog NEWS README README.1st VERSION COPYING.LIB
|
|
|
|
%dir %{_libdir}/%{name}
|
|
|
|
%attr(-,root,root) %{_libdir}/%{name}/*
|
2006-12-15 17:10:17 +00:00
|
|
|
|
|
|
|
%files javadoc
|
|
|
|
%defattr(0644,root,root,0755)
|
2012-06-20 13:32:42 +00:00
|
|
|
%doc %{_javadocdir}/%{name}
|
2006-12-15 17:10:17 +00:00
|
|
|
|
2007-05-03 22:17:22 +00:00
|
|
|
%changelog
|