1 |
%define major 7 |
%define major 7 |
|
%define lib_name_orig lib%{name} |
|
2 |
%define libname %mklibname %{name} %{major} |
%define libname %mklibname %{name} %{major} |
3 |
%define develname %mklibname %{name} -d |
%define develname %mklibname %{name} -d |
4 |
|
|
16 |
Patch2: rl-header.patch |
Patch2: rl-header.patch |
17 |
Patch3: rl-attribute.patch |
Patch3: rl-attribute.patch |
18 |
Patch4: readline-6.3-fix-shared-libs-perms.patch |
Patch4: readline-6.3-fix-shared-libs-perms.patch |
|
#Patched in upstream,Patch5: readline-6.3-CVE-2014-2524.patch |
|
19 |
# add workaround for problem in gdb |
# add workaround for problem in gdb |
20 |
# in new version of readline needs to be deleted |
# in new version of readline needs to be deleted |
21 |
Patch23: readline-7.0-gdb.patch |
Patch23: readline-7.0-gdb.patch |
|
# Fix crash in python interpreter when pressing DEL twice mga#13150 |
|
|
# http://lists.gnu.org/archive/html/bug-readline/2014-03/msg00031.html |
|
|
# upstream patch readline63-002 |
|
22 |
|
|
23 |
Patch33: ftp://ftp.gnu.org/gnu/readline/readline-7.0-patches/readline70-001 |
Patch33: ftp://ftp.gnu.org/gnu/readline/readline-7.0-patches/readline70-001 |
24 |
Patch34: ftp://ftp.gnu.org/gnu/readline/readline-7.0-patches/readline70-002 |
Patch34: ftp://ftp.gnu.org/gnu/readline/readline-7.0-patches/readline70-002 |
25 |
Patch35: ftp://ftp.gnu.org/gnu/readline/readline-7.0-patches/readline70-003 |
Patch35: ftp://ftp.gnu.org/gnu/readline/readline-7.0-patches/readline70-003 |
26 |
|
Patch36: ftp://ftp.gnu.org/gnu/readline/readline-7.0-patches/readline70-004 |
27 |
|
Patch37: ftp://ftp.gnu.org/gnu/readline/readline-7.0-patches/readline70-005 |
28 |
|
|
29 |
BuildRequires: pkgconfig(ncursesw) |
BuildRequires: pkgconfig(ncursesw) |
30 |
|
|
39 |
Group: System/Libraries |
Group: System/Libraries |
40 |
Requires(pre): filesystem >= 2.1.9-18 |
Requires(pre): filesystem >= 2.1.9-18 |
41 |
Provides: %{name} = %{version}-%{release} |
Provides: %{name} = %{version}-%{release} |
|
Obsoletes: %{name} |
|
42 |
|
|
43 |
%description -n %{libname} |
%description -n %{libname} |
44 |
This package contains the library needed to run programs dynamically |
This package contains the library needed to run programs dynamically |
48 |
Summary: Readline documentation in GNU info format |
Summary: Readline documentation in GNU info format |
49 |
Group: Documentation |
Group: Documentation |
50 |
Requires: %{libname} = %{version}-%{release} |
Requires: %{libname} = %{version}-%{release} |
|
Provides: %{name}-doc = %{version}-%{release} |
|
|
Obsoletes: %{libname}-doc |
|
51 |
|
|
52 |
%description doc |
%description doc |
53 |
This package contains readline documentation in the GNU info format. |
This package contains readline documentation in the GNU info format. |
58 |
Requires(pre): filesystem >= 2.1.9-18 |
Requires(pre): filesystem >= 2.1.9-18 |
59 |
Requires: ncursesw-devel |
Requires: ncursesw-devel |
60 |
Requires: %{libname} = %{version}-%{release} |
Requires: %{libname} = %{version}-%{release} |
|
Provides: %{lib_name_orig}-devel = %{version}-%{release} |
|
61 |
Provides: %{name}-devel = %{version}-%{release} |
Provides: %{name}-devel = %{version}-%{release} |
|
Obsoletes: %{mklibname readline 5 -d} |
|
|
Obsoletes: %{name}-devel < %{version} |
|
62 |
|
|
63 |
%description -n %{develname} |
%description -n %{develname} |
64 |
The "readline" library will read a line from the terminal and return it, |
The "readline" library will read a line from the terminal and return it, |
78 |
%patch33 -p0 |
%patch33 -p0 |
79 |
%patch34 -p0 |
%patch34 -p0 |
80 |
%patch35 -p0 |
%patch35 -p0 |
81 |
|
%patch36 -p0 |
82 |
|
%patch37 -p0 |
83 |
|
|
84 |
# Fix upstream perm Bug #3053 |
# Fix upstream perm Bug #3053 |
85 |
chmod 644 examples/rlfe/ChangeLog |
chmod 644 examples/rlfe/ChangeLog |
86 |
|
|
|
libtoolize --copy --force |
|
|
|
|
87 |
%build |
%build |
|
|
|
|
export LDFLAGS="-I%{_includedir}/ncursesw -lncursesw" |
|
|
|
|
88 |
%configure2_5x \ |
%configure2_5x \ |
89 |
--with-curses \ |
--disable-static \ |
90 |
--enable-multibyte |
--with-curses \ |
91 |
|
--enable-multibyte |
92 |
perl -p -i -e 's|-Wl,-rpath.*||' shlib/Makefile |
%make_build SHLIB_LIBS="-lncursesw" |
|
|
|
|
%make |
|
93 |
|
|
94 |
%install |
%install |
95 |
%makeinstall_std |
%make_install |
96 |
|
|
97 |
perl -p -i -e 's|/usr/local/bin/perl|/usr/bin/perl|' doc/texi2html |
perl -p -i -e 's|/usr/local/bin/perl|/usr/bin/perl|' doc/texi2html |
98 |
|
|
99 |
rm -f %{buildroot}%{_defaultdocdir}/%{name}/* |
rm -rf %{buildroot}%{_docdir}/%{name}/ |
100 |
|
|
101 |
%post doc |
%post doc |
102 |
%{_install_info history.info} |
%_install_info history.info |
103 |
%{_install_info readline.info} |
%_install_info readline.info |
104 |
|
|
105 |
%preun doc |
%preun doc |
106 |
%{_remove_install_info history.info} |
%_remove_install_info history.info |
107 |
%{_remove_install_info readline.info} |
%_remove_install_info readline.info |
108 |
|
|
109 |
%files -n %{libname} |
%files -n %{libname} |
110 |
%{_libdir}/lib*.so.%{major}{,.*} |
%{_libdir}/lib*.so.%{major}{,.*} |
116 |
%doc CHANGELOG CHANGES MANIFEST README USAGE |
%doc CHANGELOG CHANGES MANIFEST README USAGE |
117 |
%doc doc examples support |
%doc doc examples support |
118 |
%{_mandir}/man3/* |
%{_mandir}/man3/* |
|
%{_datadir}/readline |
|
119 |
%{_includedir}/readline |
%{_includedir}/readline |
|
%{_libdir}/lib*.a |
|
120 |
%{_libdir}/lib*.so |
%{_libdir}/lib*.so |