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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1740282 - (hide 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 luigiwalser 1475892 %define major 8
2 blino 653 %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 luigiwalser 1665490 Version: 8.1
8 luigiwalser 1740282 Release: %mkrel 2
9 fwang 188691 License: GPLv3
10 blino 653 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 ahmad 85627 Patch1: readline-4.1-outdated.patch
16     Patch2: rl-header.patch
17     Patch3: rl-attribute.patch
18 mjack 1172757
19 luigiwalser 1740282 Patch31: ftp://ftp.gnu.org/gnu/readline/readline-8.1-patches/readline81-001
20    
21 ovitters 1146472 BuildRequires: pkgconfig(ncursesw)
22 blino 653
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 colin 273158 Requires(pre): filesystem >= 2.1.9-18
33 barjac 179770 Provides: %{name} = %{version}-%{release}
34 blino 653
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 ennael 305465 Group: Documentation
42 barjac 179770 Requires: %{libname} = %{version}-%{release}
43 blino 653
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 colin 273158 Requires(pre): filesystem >= 2.1.9-18
51 barjac 182275 Requires: ncursesw-devel
52 blino 653 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 ahmad 85627 %patch1 -p1 -b .outdated
66     %patch2 -p1 -b .header
67     %patch3 -p1 -b .attribute
68 luigiwalser 1740282 %patch31 -p0
69 shlomif 871587
70 barjac 177891 # Fix upstream perm Bug #3053
71     chmod 644 examples/rlfe/ChangeLog
72 ahmad 85627
73 blino 653 %build
74 wally 1480379 %configure \
75 wally 1252537 --disable-static \
76 luigiwalser 1475843 --disable-install-examples \
77 wally 1252537 --with-curses \
78     --enable-multibyte
79     %make_build SHLIB_LIBS="-lncursesw"
80 blino 653
81     %install
82 wally 1252537 %make_install
83 blino 653
84     perl -p -i -e 's|/usr/local/bin/perl|/usr/bin/perl|' doc/texi2html
85    
86 wally 1252537 rm -rf %{buildroot}%{_docdir}/%{name}/
87 luigiwalser 598430
88 blino 653 %files -n %{libname}
89 ovitters 878299 %{_libdir}/lib*.so.%{major}{,.*}
90 blino 653
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 luigiwalser 1475843 %{_libdir}/pkgconfig/%{name}.pc

  ViewVC Help
Powered by ViewVC 1.1.28