19 |
Patch4: readline-6.0-fix-shared-libs-perms.patch |
Patch4: readline-6.0-fix-shared-libs-perms.patch |
20 |
# upstream patches: |
# upstream patches: |
21 |
Patch101: ftp://ftp.gnu.org/gnu/readline/readline-6.2-patches/readline62-001 |
Patch101: ftp://ftp.gnu.org/gnu/readline/readline-6.2-patches/readline62-001 |
22 |
BuildRequires: libncursesw-devel |
BuildRequires: ncursesw-devel |
23 |
|
|
24 |
%description |
%description |
25 |
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, |
50 |
%package -n %{develname} |
%package -n %{develname} |
51 |
Summary: Files for developing programs that use the readline library |
Summary: Files for developing programs that use the readline library |
52 |
Group: Development/C |
Group: Development/C |
53 |
Requires: libncurses-devel |
Requires: ncursesw-devel |
54 |
Requires: %{libname} = %{version}-%{release} |
Requires: %{libname} = %{version}-%{release} |
55 |
Provides: %{lib_name_orig}-devel = %{version}-%{release} |
Provides: %{lib_name_orig}-devel = %{version}-%{release} |
56 |
Provides: %{name}-devel = %{version}-%{release} |
Provides: %{name}-devel = %{version}-%{release} |
78 |
libtoolize --copy --force |
libtoolize --copy --force |
79 |
|
|
80 |
%build |
%build |
81 |
|
|
82 |
export LDFLAGS="-I%{_includedir}/ncursesw -lncursesw" |
export LDFLAGS="-I%{_includedir}/ncursesw -lncursesw" |
|
export CFLAGS="%{optflags} -I%{_includedir}/ncursesw -lncursesw" |
|
|
export CXXFLAGS="%{optflags} -I%{_includedir}/ncursesw -lncursesw" |
|
83 |
|
|
84 |
%configure2_5x \ |
%configure2_5x \ |
85 |
--with-curses \ |
--with-curses \ |
90 |
%make |
%make |
91 |
|
|
92 |
%install |
%install |
|
rm -rf %{buildroot} |
|
93 |
%makeinstall_std |
%makeinstall_std |
94 |
|
|
95 |
# put all libs in /lib because some package needs it |
# put all libs in /lib because some package needs it |
98 |
mv %{buildroot}%{_libdir}/*.so* %{buildroot}/%{_lib} |
mv %{buildroot}%{_libdir}/*.so* %{buildroot}/%{_lib} |
99 |
ln -s ../../%{_lib}/lib{history,readline}.so %{buildroot}%{_libdir} |
ln -s ../../%{_lib}/lib{history,readline}.so %{buildroot}%{_libdir} |
100 |
|
|
|
# The make install moves the existing libs with a suffix of old. Urgh. |
|
|
rm -f %{buildroot}/%{_lib}/*.old |
|
|
|
|
101 |
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 |
102 |
|
|
103 |
%post doc |
%post doc |