2009-05-11 04:34:49 +02:00
|
|
|
#
|
2013-04-25 11:22:20 +02:00
|
|
|
# spec file for package jline
|
2009-05-11 04:34:49 +02:00
|
|
|
#
|
2017-05-19 12:10:33 +02:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2009-05-11 04:34:49 +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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: jline
|
|
|
|
Version: 0.9.94
|
2013-04-25 11:22:20 +02:00
|
|
|
Release: 0
|
2009-05-11 04:34:49 +02:00
|
|
|
Summary: Java library for reading and editing user input in console applications
|
2011-12-06 18:20:45 +01:00
|
|
|
License: BSD-3-Clause
|
2009-05-11 04:34:49 +02:00
|
|
|
Group: Development/Libraries/Java
|
2013-04-25 11:22:20 +02:00
|
|
|
Url: http://jline.sourceforge.net/
|
2009-05-11 04:34:49 +02:00
|
|
|
Source0: http://download.sourceforge.net/sourceforge/jline/jline-0.9.94.zip
|
|
|
|
Source1: CatalogManager.properties
|
|
|
|
Source2: jline-build.xml
|
|
|
|
Source3: jline-0.9.94.pom
|
2017-05-19 12:10:33 +02:00
|
|
|
BuildRequires: ant
|
|
|
|
BuildRequires: java-1_5_0-gcj-compat-devel
|
|
|
|
BuildRequires: javapackages-tools
|
|
|
|
BuildRequires: unzip
|
|
|
|
BuildRequires: xml-commons-resolver
|
|
|
|
#!BuildIgnore: antlr antlr-java
|
|
|
|
BuildArch: noarch
|
2009-05-11 04:34:49 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
JLine is a java library for reading and editing user input in console
|
|
|
|
applications. It features tab-completion, command history, password
|
|
|
|
masking, customizable keybindings, and pass-through handlers to use to
|
|
|
|
chain to other console applications.
|
|
|
|
|
|
|
|
%package demo
|
|
|
|
Summary: Java library for reading and editing user input in console applications
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
|
|
|
|
%description demo
|
|
|
|
JLine is a java library for reading and editing user input in console
|
|
|
|
applications. It features tab-completion, command history, password
|
|
|
|
masking, customizable keybindings, and pass-through handlers to use to
|
|
|
|
chain to other console applications.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
# BEWARE: The jar file META-INF is not under the subdir
|
|
|
|
%setup -q -c
|
|
|
|
cp -pr %{name}-%{version}/* .
|
|
|
|
rm -r %{name}-%{version}
|
|
|
|
find -type f -name '*.jar' | xargs -t rm
|
|
|
|
# Use locally installed DTDs
|
|
|
|
mkdir -p build
|
|
|
|
cp -p %{SOURCE1} build/CatalogManager.properties
|
|
|
|
cp -p %{SOURCE2} src/build.xml
|
|
|
|
perl -p -i -e 's|^.*<attribute name="Class-Path".*||' build.xml
|
|
|
|
|
|
|
|
%build
|
|
|
|
mkdir -p native
|
|
|
|
# Use locally installed DTDs
|
|
|
|
export CLASSPATH=`pwd`/build
|
|
|
|
cd src/
|
|
|
|
export CLASSPATH=`pwd`/target/classes:`pwd`/target/test-classes
|
|
|
|
export OPT_JAR_LIST=:
|
2013-08-23 11:30:16 +02:00
|
|
|
ant jar
|
2009-05-11 04:34:49 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
# jars
|
2017-05-19 12:10:33 +02:00
|
|
|
install -d -m 755 %{buildroot}%{_javadir}
|
|
|
|
install -p -m 644 src/target/jline.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
|
|
|
|
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} ${jar/-%{version}/}; done)
|
2009-05-11 04:34:49 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(0644,root,root,0755)
|
|
|
|
%{_javadir}/%{name}.jar
|
|
|
|
%{_javadir}/%{name}-%{version}.jar
|
|
|
|
|
|
|
|
%changelog
|