diff --git a/CatalogManager.properties b/CatalogManager.properties new file mode 100644 index 0000000..f68f3e2 --- /dev/null +++ b/CatalogManager.properties @@ -0,0 +1,61 @@ +######################################################################## +# CatalogManager provides an interface to the catalog properties. +# Properties can come from two places: from system properties or +# from a CatalogManager.properties file. This class provides a +# transparent interface to both, with system properties preferred +# over property file values. + +####################################################################### +# Catalog Files: +# The semicolon-delimited list of catalog files. +# Example: catalogs=./xcatalog;/share/doctypes/catalog + +catalogs=/etc/xml/catalog;/etc/sgml/catalog + +####################################################################### +# Relative Catalogs: +# If false, relative catalog URIs are made absolute with respect to the +# base URI of the CatalogManager.properties file. This setting only +# applies to catalog URIs obtained from the catalogs property in the +# CatalogManager.properties file +# Example: relative-catalogs = [yes|no] + +relative-catalogs=yes + +####################################################################### +# Verbosity: +# If non-zero, the Catalog classes will print informative and debugging +# messages. The higher the number, the more messages. +# Example: verbosity = [0..99] + +verbosity=0 + +####################################################################### +# Prefer: +# Which identifier is preferred, "public" or "system"? +# Example: xml.catalog.prefer = [public|system] + +prefer=system + +####################################################################### +# Static-catalog: +# Should a single catalog be constructed for all parsing, or should a +# different catalog be created for each parser? +# Example: static-catalog = [yes|no] + +static-catalog=yes + +####################################################################### +# Allow-oasis-xml-catalog-pi +# If the source document contains "oasis-xml-catalog" processing +# instructions, should they be used? +# Example: allow-oasis-xml-catalog-pi = [yes|no] + +allow-oasis-xml-catalog-pi=yes + +####################################################################### +# catalog-class-name +# If you're using the convenience classes +# org.apache.xml.resolver.tools.*, this setting allows you to specify +# an alternate class name to use for the underlying catalog. +# Example: catalog-class-name=org.apache.xml.resolver.Resolver diff --git a/jline-0.9.94-crosslink.patch b/jline-0.9.94-crosslink.patch new file mode 100644 index 0000000..3534dd4 --- /dev/null +++ b/jline-0.9.94-crosslink.patch @@ -0,0 +1,12 @@ +diff -up jline-0.9.94/src/pom.xml~ jline-0.9.94/src/pom.xml +--- jline-0.9.94/src/pom.xml~ 2008-02-22 03:00:58.000000000 +0200 ++++ jline-0.9.94/src/pom.xml 2011-10-15 22:34:00.642269743 +0300 +@@ -164,7 +164,7 @@ To make a bundle and request that ibilio + true + true + +- http://java.sun.com/j2se/1.5.0/docs/api ++ /usr/share/javadoc/java + + + diff --git a/jline-1.0.zip b/jline-1.0.zip new file mode 100644 index 0000000..ac0703c Binary files /dev/null and b/jline-1.0.zip differ diff --git a/jline1.spec b/jline1.spec new file mode 100644 index 0000000..9c26a6c --- /dev/null +++ b/jline1.spec @@ -0,0 +1,112 @@ +# Copyright (c) 2000-2005, JPackage Project +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the +# distribution. +# 3. Neither the name of the JPackage Project nor the names of its +# contributors may be used to endorse or promote products derived +# from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# + +Name: jline1 +Version: 1.0 +Release: 1 +Summary: Java library for reading and editing user input in console applications +License: BSD +URL: http://jline.sourceforge.net/ +Source0: http://download.sourceforge.net/sourceforge/jline/jline-%{version}.zip +Source1: CatalogManager.properties +Patch1: jline-0.9.94-crosslink.patch + +Requires: bash +# for /bin/stty +Requires: coreutils + +BuildRequires: maven-local maven-assembly-plugin maven-compiler-plugin maven-install-plugin +BuildRequires: maven-jar-plugin maven-javadoc-plugin maven-plugin-bundle +BuildRequires: maven-resources-plugin maven-site-plugin maven-surefire-plugin +BuildRequires: maven-surefire-provider-junit + +# https://bugzilla.redhat.com/show_bug.cgi?id=1022939 +Requires: java-headless + +BuildArch: noarch + +%description +JLine is a java library for reading and editing user input in console +applications. It features tab-completion, command history, password +masking, configurable key-bindings, and pass-through handlers to use to +chain to other console applications. + +%package demo +Summary: Demos for %{name} +Requires: %{name} = %{version}-%{release} + +%description demo +Demonstrations and samples for %{name}. + +%package javadoc +Summary: javadoc for %{name} + +%description javadoc +javadoc for %{name}. + +%prep +%setup -q -n jline-%{version} +%patch1 -p1 + +# Make sure upstream hasn't sneaked in any jars we don't know about +find -name '*.class' -exec rm -f '{}' \; +find -name '*.jar' -exec rm -f '{}' \; + +# Remove pre-built Windows-only binary artifacts +rm src/src/main/resources/jline/jline*.dll + +# Use locally installed DTDs +mkdir build +cp -p %{SOURCE1} build/ + +%build +# Use locally installed DTDs +export CLASSPATH=%{_builddir}/%{name}-%{version}/build + +mv src tmp +mv tmp/* . + +%mvn_compat_version : %{version} 1 +%mvn_build + +%install +%mvn_install + +%files -f .mfiles +# there is native code in sources but only for Windows +%dir %{_jnidir}/%{name} +%doc LICENSE.txt src/main/resources/jline/keybindings.properties + +%files javadoc -f .mfiles-javadoc +%doc LICENSE.txt + +%changelog +* Wed Aug 19 2020 wangxiao - 1.0-1 +- package init diff --git a/jline1.yaml b/jline1.yaml new file mode 100644 index 0000000..b446502 --- /dev/null +++ b/jline1.yaml @@ -0,0 +1,5 @@ +git_url: https://github.com/jline/jline1 +version_control: github +src_repo: jline/jline1 +tag_prefix: "jline-" +seperator: "."