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