ed0ba7
# Copyright (c) 2000-2005, JPackage Project
ed0ba7
# All rights reserved.
ed0ba7
#
ed0ba7
# Redistribution and use in source and binary forms, with or without
ed0ba7
# modification, are permitted provided that the following conditions
ed0ba7
# are met:
ed0ba7
#
ed0ba7
# 1. Redistributions of source code must retain the above copyright
ed0ba7
#    notice, this list of conditions and the following disclaimer.
ed0ba7
# 2. Redistributions in binary form must reproduce the above copyright
ed0ba7
#    notice, this list of conditions and the following disclaimer in the
ed0ba7
#    documentation and/or other materials provided with the
ed0ba7
#    distribution.
ed0ba7
# 3. Neither the name of the JPackage Project nor the names of its
ed0ba7
#    contributors may be used to endorse or promote products derived
ed0ba7
#    from this software without specific prior written permission.
ed0ba7
#
ed0ba7
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
ed0ba7
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
ed0ba7
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
ed0ba7
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
ed0ba7
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
ed0ba7
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
ed0ba7
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
ed0ba7
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
ed0ba7
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
ed0ba7
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
ed0ba7
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
ed0ba7
#
ed0ba7
ed0ba7
Name:           jline
ed0ba7
Version:        1.0
a2dba0
Release:        8%{?dist}
ed0ba7
Summary:        Java library for reading and editing user input in console applications
ed0ba7
License:        BSD
ed0ba7
URL:            http://jline.sourceforge.net/
ed0ba7
Group:          Development/Libraries
ed0ba7
Source0:        http://download.sourceforge.net/sourceforge/jline/jline-%{version}.zip
ed0ba7
Source1:        CatalogManager.properties
ed0ba7
Patch1:         %{name}-0.9.94-crosslink.patch
ed0ba7
ed0ba7
Requires:      bash
ed0ba7
# for /bin/stty
ed0ba7
Requires:      coreutils
ed0ba7
ed0ba7
BuildRequires: jpackage-utils
ed0ba7
BuildRequires: maven-local
ed0ba7
BuildRequires: maven-assembly-plugin
ed0ba7
BuildRequires: maven-compiler-plugin
ed0ba7
BuildRequires: maven-install-plugin
ed0ba7
BuildRequires: maven-jar-plugin
ed0ba7
BuildRequires: maven-javadoc-plugin
ed0ba7
BuildRequires: maven-resources-plugin
ed0ba7
BuildRequires: maven-site-plugin
ed0ba7
BuildRequires: maven-surefire-plugin
ed0ba7
BuildRequires: maven-surefire-provider-junit
ed0ba7
BuildRequires: java-javadoc
ed0ba7
ed0ba7
BuildArch:     noarch
ed0ba7
ed0ba7
%description
ed0ba7
JLine is a java library for reading and editing user input in console
ed0ba7
applications. It features tab-completion, command history, password
ed0ba7
masking, configurable key-bindings, and pass-through handlers to use to
ed0ba7
chain to other console applications.
ed0ba7
ed0ba7
%package        demo
ed0ba7
Summary:        Demos for %{name}
ed0ba7
Group:          Documentation
ed0ba7
Requires:       %{name} = %{version}-%{release}
ed0ba7
ed0ba7
%description    demo
ed0ba7
Demonstrations and samples for %{name}.
ed0ba7
ed0ba7
%package        javadoc
ed0ba7
Summary:        Javadoc for %{name}
ed0ba7
Group:          Documentation
ed0ba7
ed0ba7
%description    javadoc
ed0ba7
Javadoc for %{name}.
ed0ba7
ed0ba7
%prep
ed0ba7
%setup -q
ed0ba7
%patch1 -p1
ed0ba7
ed0ba7
# Make sure upstream hasn't sneaked in any jars we don't know about
ed0ba7
find -name '*.class' -exec rm -f '{}' \;
ed0ba7
find -name '*.jar' -exec rm -f '{}' \;
ed0ba7
ed0ba7
# Remove pre-built Windows-only binary artifacts
ed0ba7
rm src/src/main/resources/jline/jline*.dll
ed0ba7
ed0ba7
# Use locally installed DTDs
ed0ba7
mkdir build
ed0ba7
cp -p %{SOURCE1} build/
ed0ba7
ed0ba7
%build
ed0ba7
# Use locally installed DTDs
ed0ba7
export CLASSPATH=%{_builddir}/%{name}-%{version}/build
ed0ba7
ed0ba7
cd src/
ed0ba7
ed0ba7
%mvn_file : %{name}
ed0ba7
%mvn_build
ed0ba7
ed0ba7
%install
ed0ba7
pushd src/
ed0ba7
%mvn_install
ed0ba7
popd
ed0ba7
ed0ba7
# demo
ed0ba7
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/%{name}
ed0ba7
cp -pr examples %{buildroot}%{_datadir}/%{name}
ed0ba7
ed0ba7
ed0ba7
%files -f src/.mfiles
ed0ba7
%doc LICENSE.txt src/src/main/resources/jline/keybindings.properties
ed0ba7
ed0ba7
%files demo
ed0ba7
%{_datadir}/%{name}
ed0ba7
ed0ba7
%files javadoc -f src/.mfiles-javadoc
ed0ba7
%doc LICENSE.txt
ed0ba7
ed0ba7
%changelog
a2dba0
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.0-8
a2dba0
- Mass rebuild 2013-12-27
a2dba0
ed0ba7
* Mon Aug 26 2013 Michal Srb <msrb@redhat.com> - 1.0-7
ed0ba7
- Migrate away from mvn-rpmbuild (Resolves: #997501)
ed0ba7
ed0ba7
* Fri Jul 12 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.0-6
ed0ba7
- Remove workaround for rpm bug #646523
ed0ba7
ed0ba7
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.0-5
ed0ba7
- Rebuild to regenerate API documentation
ed0ba7
- Resolves: CVE-2013-1571
ed0ba7
ed0ba7
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-4
ed0ba7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
ed0ba7
ed0ba7
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 1.0-3
ed0ba7
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
ed0ba7
- Replace maven BuildRequires with maven-local
ed0ba7
ed0ba7
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-2
ed0ba7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
ed0ba7
ed0ba7
* Wed Feb 1 2012 Alexander Kurtakov <akurtako@redhat.com> 1.0-1
ed0ba7
- Update to 1.0.
ed0ba7
ed0ba7
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.94-7
ed0ba7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
ed0ba7
ed0ba7
* Tue Dec 13 2011 Alexander Kurtakov <akurtako@redhat.com> 0.9.94-6
ed0ba7
- Build with maven 3.x.
ed0ba7
ed0ba7
* Sat Oct 15 2011 Ville Skyttä <ville.skytta@iki.fi> - 0.9.94-5
ed0ba7
- BuildRequire maven2.
ed0ba7
ed0ba7
* Sat Oct 15 2011 Ville Skyttä <ville.skytta@iki.fi> - 0.9.94-4
ed0ba7
- Patch delete to actually behave as delete instead of backspace, include
ed0ba7
  keybindings.properties in docs (#720170).
ed0ba7
- Drop executable bit from jar.
ed0ba7
- Crosslink with local javadocs.
ed0ba7
- Include LICENSE.txt in -javadoc.
ed0ba7
ed0ba7
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.94-3
ed0ba7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
ed0ba7
ed0ba7
* Sat Dec 18 2010 Mat Booth <fedora@matbooth.co.uk> - 0.9.94-2
ed0ba7
- Remove pre-built Windows-only binary artifacts.
ed0ba7
- Demo package was defined but never built for some reason.
ed0ba7
- Don't also package jar in the javadoc package!
ed0ba7
- Drop versioned java and javadocs.
ed0ba7
ed0ba7
* Sat Dec 18 2010 Mat Booth <fedora@matbooth.co.uk> - 0.9.94-1
ed0ba7
- Remove bundled jars in %%prep phase.
ed0ba7
- Tidy up spec file, fix some rpmlint warnings.
ed0ba7
- Add pom and depmaps.
ed0ba7
ed0ba7
* Mon Mar  8 2010 Peter Lemenkov <lemenkov@gmail.com> - 0:0.9.94-0.6
ed0ba7
- Added missing Requires: jpackage-utils (%%{_javadir} and %%{_javadocdir})
ed0ba7
ed0ba7
* Tue Jan 12 2010 Alexander Kurtakov <akurtako@redhat.com> 0:0.9.94-0.5
ed0ba7
- Fix BRs.
ed0ba7
- Drop gcj_support.
ed0ba7
ed0ba7
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:0.9.94-0.4
ed0ba7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
ed0ba7
ed0ba7
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:0.9.94-0.3
ed0ba7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
ed0ba7
ed0ba7
* Wed Jul  9 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:9.94-0.2
ed0ba7
- drop repotag
ed0ba7
ed0ba7
* Mon Mar 24 2008 Matt Wringe <mwringe@redhat.com> - 0:9.94-0jpp.1
ed0ba7
- Update to 0.9.94 (BZ #436204)
ed0ba7
ed0ba7
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0:0.9.9-2jpp.1
ed0ba7
- Autorebuild for GCC 4.3
ed0ba7
ed0ba7
* Tue Mar 06 2007 Matt Wringe <mwringe@redhat.com> - 0:0.9.9-1jpp.1
ed0ba7
- Add option to build with ant.
ed0ba7
- Fix various rpmlint issues
ed0ba7
- Specify proper license
ed0ba7
ed0ba7
* Thu May 04 2006 Alexander Kurtakov <akurtkov at gmail.com> - 0:0.9.9-1jpp
ed0ba7
- Upgrade to 0.9.9
ed0ba7
ed0ba7
* Thu May 04 2006 Ralph Apel <r.apel at r-apel.de> - 0:0.9.5-1jpp
ed0ba7
- Upgrade to 0.9.5
ed0ba7
- First JPP-1.7 release
ed0ba7
ed0ba7
* Mon Apr 25 2005 Fernando Nasser <fnasser@redhat.com> - 0:0.9.1-1jpp
ed0ba7
- Upgrade to 0.9.1
ed0ba7
- Disable attempt to include external jars
ed0ba7
ed0ba7
* Mon Apr 25 2005 Fernando Nasser <fnasser@redhat.com> - 0:0.8.1-3jpp
ed0ba7
- Changes to use locally installed DTDs
ed0ba7
- Do not try and access sun site for linking javadoc
ed0ba7
ed0ba7
* Sun Aug 23 2004 Randy Watler <rwatler at finali.com> - 0:0.8.1-2jpp
ed0ba7
- Rebuild with ant-1.6.2
ed0ba7
ed0ba7
* Mon Jan 26 2004 David Walluck <david@anti-microsoft.org> 0:0.8.1-1jpp
ed0ba7
- release