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