diff --git a/jline-0.9.94-keybindings.patch b/jline-0.9.94-keybindings.patch new file mode 100644 index 0000000..6480d5b --- /dev/null +++ b/jline-0.9.94-keybindings.patch @@ -0,0 +1,12 @@ +diff -up jline-0.9.94/src/src/main/resources/jline/keybindings.properties~ jline-0.9.94/src/src/main/resources/jline/keybindings.properties +--- jline-0.9.94/src/src/main/resources/jline/keybindings.properties~ 2007-11-12 19:35:12.000000000 +0200 ++++ jline-0.9.94/src/src/main/resources/jline/keybindings.properties 2011-07-10 17:06:47.377240063 +0300 +@@ -57,6 +57,6 @@ + # CTRL-W: delete the word directly before the cursor + 23: DELETE_PREV_WORD + +-# DELETE, CTRL-?: delete the previous character ++# DELETE, CTRL-?: delete the next character + # 127 is the ASCII code for delete +-127: DELETE_PREV_CHAR ++127: DELETE_NEXT_CHAR diff --git a/jline.spec b/jline.spec index b2b3eb6..0a0f307 100644 --- a/jline.spec +++ b/jline.spec @@ -30,13 +30,14 @@ Name: jline Version: 0.9.94 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Java library for reading and editing user input in console applications License: BSD URL: http://jline.sourceforge.net/ Group: Development/Libraries Source0: http://download.sourceforge.net/sourceforge/jline/jline-%{version}.zip Source1: CatalogManager.properties +Patch0: %{name}-0.9.94-keybindings.patch Requires: bash # for /bin/stty @@ -83,6 +84,7 @@ Javadoc for %{name}. %prep %setup -q +%patch0 -p1 # Make sure upstream hasn't sneaked in any jars we don't know about find -name '*.class' -exec rm -f '{}' \; @@ -145,7 +147,7 @@ rm -rf $(readlink -f %{_javadocdir}/%{name}) %{_javadocdir}/%{name} || : %{_javadir}/%{name}.jar %{_mavendepmapfragdir}/* %{_mavenpomdir}/* -%doc LICENSE.txt +%doc LICENSE.txt src/src/main/resources/jline/keybindings.properties %files demo %defattr(-,root,root,-) @@ -156,6 +158,10 @@ rm -rf $(readlink -f %{_javadocdir}/%{name}) %{_javadocdir}/%{name} || : %{_javadocdir}/* %changelog +* Sun Jul 10 2011 Ville Skyttä - 0.9.94-4 +- Patch delete to actually behave as delete instead of backspace. +- Include keybindings.properties in docs. + * Wed Feb 09 2011 Fedora Release Engineering - 0.9.94-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild