readline 8.2.13
This commit is contained in:
commit
c345447dbd
2 changed files with 73 additions and 0 deletions
43
readline.spec
Normal file
43
readline.spec
Normal file
|
|
@ -0,0 +1,43 @@
|
||||||
|
Name: readline
|
||||||
|
Version: 8.2.13
|
||||||
|
Release: 1%{?dist}
|
||||||
|
Summary: GNU Readline Library
|
||||||
|
|
||||||
|
License: GPL
|
||||||
|
URL: http://www.gnu.org/software/readline/
|
||||||
|
Source0: https://ftpmirror.gnu.org/gnu/readline/readline-%{version}.tar.gz
|
||||||
|
|
||||||
|
BuildRequires: gcc
|
||||||
|
Requires: glibc
|
||||||
|
|
||||||
|
Patch0: shlib-patch.patch
|
||||||
|
|
||||||
|
%description
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
%configure \
|
||||||
|
--with-curses
|
||||||
|
%make_build
|
||||||
|
|
||||||
|
|
||||||
|
%install
|
||||||
|
%make_install
|
||||||
|
|
||||||
|
|
||||||
|
%files
|
||||||
|
/usr/include/*
|
||||||
|
%{_libdir}/*
|
||||||
|
/usr/share/*
|
||||||
|
#%license add-license-file-here
|
||||||
|
#%doc add-docs-here
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Wed Aug 13 2025 Dmitrii Tochanskii <tochansky@tochlab.ru>
|
||||||
|
-
|
||||||
30
shlib-patch.patch
Normal file
30
shlib-patch.patch
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
diff --git a/shlib/Makefile.in b/shlib/Makefile.in
|
||||||
|
--- a/shlib/Makefile.in
|
||||||
|
+++ b/shlib/Makefile.in
|
||||||
|
@@ -178,7 +178,7 @@ $(SHARED_READLINE): $(SHARED_OBJ)
|
||||||
|
|
||||||
|
$(SHARED_HISTORY): $(SHARED_HISTOBJ) xmalloc.so xfree.so
|
||||||
|
$(RM) $@
|
||||||
|
- $(SHOBJ_LD) ${SHOBJ_LDFLAGS} ${SHLIB_XLDFLAGS} -o $@ $(SHARED_HISTOBJ) xmalloc.so xfree.so $(SHLIB_LIBS)
|
||||||
|
+ $(SHOBJ_LD) ${SHOBJ_LDFLAGS} ${SHLIB_XLDFLAGS} -o $@ $(SHARED_HISTOBJ) xmalloc.so xfree.so
|
||||||
|
|
||||||
|
# Since tilde.c is shared between readline and bash, make sure we compile
|
||||||
|
# it with the right flags when it's built as part of readline
|
||||||
|
diff --git a/support/shobj-conf b/support/shobj-conf
|
||||||
|
--- a/support/shobj-conf
|
||||||
|
+++ b/support/shobj-conf
|
||||||
|
@@ -126,10 +126,11 @@ sunos5*|solaris2*)
|
||||||
|
linux*-*|gnu*-*|k*bsd*-gnu-*|midnightbsd*|freebsd*|dragonfly*)
|
||||||
|
SHOBJ_CFLAGS=-fPIC
|
||||||
|
SHOBJ_LD='${CC}'
|
||||||
|
- SHOBJ_LDFLAGS='-shared -Wl,-soname,$@'
|
||||||
|
+ SHOBJ_LDFLAGS='$(CFLAGS) -shared -Wl,-soname,$@'
|
||||||
|
|
||||||
|
- SHLIB_XLDFLAGS='-Wl,-rpath,$(libdir) -Wl,-soname,`basename $@ $(SHLIB_MINOR)`'
|
||||||
|
+ SHLIB_XLDFLAGS='-Wl,-soname,`basename $@ $(SHLIB_MINOR)`'
|
||||||
|
SHLIB_LIBVERSION='$(SHLIB_LIBSUFF).$(SHLIB_MAJOR)$(SHLIB_MINOR)'
|
||||||
|
+ SHLIB_LIBS='-ltinfo'
|
||||||
|
;;
|
||||||
|
|
||||||
|
# Darwin/MacOS X
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue