/[packages]/cauldron/readline/current/SPECS/readline.spec
ViewVC logotype

Contents of /cauldron/readline/current/SPECS/readline.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1740282 - (show annotations) (download)
Sun Aug 8 04:27:07 2021 UTC (5 months, 2 weeks ago) by luigiwalser
File size: 2791 byte(s)
add upstream patch 001 for readline 8.1
1 %define major 8
2 %define libname %mklibname %{name} %{major}
3 %define develname %mklibname %{name} -d
4
5 Summary: Library for reading lines from a terminal
6 Name: readline
7 Version: 8.1
8 Release: %mkrel 2
9 License: GPLv3
10 Group: System/Libraries
11 Url: http://tiswww.case.edu/php/chet/readline/rltop.html
12 Source0: ftp://ftp.gnu.org/gnu/readline/%{name}-%{version}.tar.gz
13 Source1: ftp://ftp.gnu.org/gnu/readline/%{name}-%{version}.tar.gz.sig
14 Patch0: readline-4.3-no_rpath.patch
15 Patch1: readline-4.1-outdated.patch
16 Patch2: rl-header.patch
17 Patch3: rl-attribute.patch
18
19 Patch31: ftp://ftp.gnu.org/gnu/readline/readline-8.1-patches/readline81-001
20
21 BuildRequires: pkgconfig(ncursesw)
22
23 %description
24 The "readline" library will read a line from the terminal and return it,
25 allowing the user to edit the line with the standard emacs editing keys.
26 It allows the programmer to give the user an easier-to-use and more
27 intuitive interface.
28
29 %package -n %{libname}
30 Summary: Shared libraries for readline
31 Group: System/Libraries
32 Requires(pre): filesystem >= 2.1.9-18
33 Provides: %{name} = %{version}-%{release}
34
35 %description -n %{libname}
36 This package contains the library needed to run programs dynamically
37 linked to readline.
38
39 %package doc
40 Summary: Readline documentation in GNU info format
41 Group: Documentation
42 Requires: %{libname} = %{version}-%{release}
43
44 %description doc
45 This package contains readline documentation in the GNU info format.
46
47 %package -n %{develname}
48 Summary: Files for developing programs that use the readline library
49 Group: Development/C
50 Requires(pre): filesystem >= 2.1.9-18
51 Requires: ncursesw-devel
52 Requires: %{libname} = %{version}-%{release}
53 Provides: %{name}-devel = %{version}-%{release}
54
55 %description -n %{develname}
56 The "readline" library will read a line from the terminal and return it,
57 using prompt as a prompt. If prompt is null, no prompt is issued. The
58 line returned is allocated with malloc(3), so the caller must free it when
59 finished. The line returned has the final newline removed, so only the
60 text of the line remains.
61
62 %prep
63 %setup -q
64 %patch0 -p1 -b .no_rpath
65 %patch1 -p1 -b .outdated
66 %patch2 -p1 -b .header
67 %patch3 -p1 -b .attribute
68 %patch31 -p0
69
70 # Fix upstream perm Bug #3053
71 chmod 644 examples/rlfe/ChangeLog
72
73 %build
74 %configure \
75 --disable-static \
76 --disable-install-examples \
77 --with-curses \
78 --enable-multibyte
79 %make_build SHLIB_LIBS="-lncursesw"
80
81 %install
82 %make_install
83
84 perl -p -i -e 's|/usr/local/bin/perl|/usr/bin/perl|' doc/texi2html
85
86 rm -rf %{buildroot}%{_docdir}/%{name}/
87
88 %files -n %{libname}
89 %{_libdir}/lib*.so.%{major}{,.*}
90
91 %files doc
92 %{_infodir}/*info*
93
94 %files -n %{develname}
95 %doc CHANGELOG CHANGES MANIFEST README USAGE
96 %doc doc examples support
97 %{_mandir}/man3/*
98 %{_includedir}/readline
99 %{_libdir}/lib*.so
100 %{_libdir}/pkgconfig/%{name}.pc

  ViewVC Help
Powered by ViewVC 1.1.28