diff --git a/readline-6.1-version.patch b/readline-6.1-version.patch new file mode 100644 index 0000000..d6945a6 --- /dev/null +++ b/readline-6.1-version.patch @@ -0,0 +1,28 @@ +From 0415e19a3f41596800e6144a5c5acca05929a90a Mon Sep 17 00:00:00 2001 +From: Lubomir Rintel +Date: Wed, 17 Feb 2010 21:15:01 +0100 +Subject: [PATCH] Fix the version number + +--- + readline.h | 4 ++-- + 1 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/readline.h b/readline.h +index 7a4ffaa..9a9e18a 100644 +--- a/readline.h ++++ b/readline.h +@@ -39,9 +39,9 @@ extern "C" { + #endif + + /* Hex-encoded Readline version number. */ +-#define RL_READLINE_VERSION 0x0600 /* Readline 6.0 */ ++#define RL_READLINE_VERSION 0x0601 /* Readline 6.0 */ + #define RL_VERSION_MAJOR 6 +-#define RL_VERSION_MINOR 0 ++#define RL_VERSION_MINOR 1 + + /* Readline data structures. */ + +-- +1.7.0 + diff --git a/readline.spec b/readline.spec index c63ca90..c936191 100644 --- a/readline.spec +++ b/readline.spec @@ -1,11 +1,13 @@ Summary: A library for editing typed command lines Name: readline Version: 6.1 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv3+ Group: System Environment/Libraries URL: http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html Source: ftp://ftp.gnu.org/gnu/readline/readline-%{version}.tar.gz +# sent upstream +Patch0: readline-6.1-version.patch # fix file permissions, remove RPATH, use CFLAGS Patch20: readline-6.1-shlib.patch Requires(post): /sbin/install-info @@ -46,6 +48,7 @@ library. %prep %setup -q +%patch0 -p1 -b .version %patch20 -p1 -b .shlib pushd examples @@ -124,6 +127,9 @@ fi %{_libdir}/lib*.a %changelog +* Wed Feb 17 2010 Lubomir Rintel 6.1-2 +- fix the version number in header + * Tue Jan 12 2010 Miroslav Lichvar 6.1-1 - update to 6.1