# 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. # %define _with_gcj_support 1 %define gcj_support %{?_with_gcj_support:1}%{!?_with_gcj_support:%{?_without_gcj_support:0}%{!?_without_gcj_support:%{?_gcj_support:%{_gcj_support}}%{!?_gcj_support:0}}} %define _without_maven 1 %define with_maven %{!?_without_maven:1}%{?_without_maven:0} %define without_maven %{?_without_maven:1}%{!?_without_maven:0} %define cvs_version 0.9.9 %define repo_dir .m2/repository Name: jline Version: 0.9.9 Release: 2jpp.1%{?dist} Epoch: 0 Summary: Java library for reading and editing user input in console applications License: BSD URL: http://jline.sf.net/ Group: Development/Libraries Source0: http://download.sourceforge.net/sourceforge/jline/jline-%{cvs_version}.zip Source1: CatalogManager.properties Source2: jline-build.xml Requires: /bin/sh Requires: /bin/stty BuildRequires: jpackage-utils >= 0:1.7 %if %{with_maven} BuildRequires: xml-commons-resolver BuildRequires: maven2 BuildRequires: maven2-plugin-resources BuildRequires: ant-apache-resolver %else BuildRequires: ant BuildRequires: junit %endif %if ! %{gcj_support} BuildArch: noarch %endif BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %if %{gcj_support} BuildRequires: java-gcj-compat-devel Requires(post): java-gcj-compat Requires(postun): java-gcj-compat %endif %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: Demos for %{name} Group: Development/Documentation %if %{gcj_support} BuildRequires: java-gcj-compat-devel Requires(post): java-gcj-compat Requires(postun): java-gcj-compat %endif %description demo Demonstrations and samples for %{name}. # FIXME: the maven ant:ant generated build.xml file does not contain # a javadoc task %if %{with_maven} %package javadoc Summary: Javadoc for %{name} Group: Development/Documentation %if %{gcj_support} BuildRequires: java-gcj-compat-devel Requires(post): java-gcj-compat Requires(postun): java-gcj-compat %endif %description javadoc Javadoc for %{name}. %endif %prep # BEWARE: The jar file META-INF is not under the subdir %setup -q -c -n %{name}-%{cvs_version} cp -pr %{name}-%{cvs_version}/* . rm -fr %{name}-%{cvs_version} # Use locally installed DTDs mkdir %{_builddir}/%{name}-%{cvs_version}/build cp -p %SOURCE1 %{_builddir}/%{name}-%{cvs_version}/build/ cp -p %{SOURCE2} src/build.xml %build mkdir -p native # Now done by Patch0 for documentation purposes #perl -p -i -e 's|^.* - 0:0.9.9-2jpp.1 - Autorebuild for GCC 4.3 * Tue Mar 06 2007 Matt Wringe - 0:0.9.9-1jpp.1 - Add option to build with ant. - Fix various rpmlint issues - Specify proper license * Thu May 04 2006 Alexander Kurtakov - 0:0.9.9-1jpp - Upgrade to 0.9.9 * Thu May 04 2006 Ralph Apel - 0:0.9.5-1jpp - Upgrade to 0.9.5 - First JPP-1.7 release * Mon Apr 25 2005 Fernando Nasser - 0:0.9.1-1jpp - Upgrade to 0.9.1 - Disable attempt to include external jars * Mon Apr 25 2005 Fernando Nasser - 0:0.8.1-3jpp - Changes to use locally installed DTDs - Do not try and access sun site for linking javadoc * Sun Aug 23 2004 Randy Watler - 0:0.8.1-2jpp - Rebuild with ant-1.6.2 * Mon Jan 26 2004 David Walluck 0:0.8.1-1jpp - release