]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blob - readline/readline.nm
readline: Remove configuration files that are already provided by setup.
[people/amarx/ipfire-3.x.git] / readline / readline.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = readline
7 version = 6.2
8 release = 4
9
10 groups = System/Libraries
11 url = ftp://ftp.gnu.org/gnu/readline/
12 license = GPLv3+
13 summary = A library for editing typed command lines.
14
15 description
16 The Readline library provides a set of functions that allow users to
17 edit command lines. Both Emacs and vi editing modes are available.
18 The Readline library includes additional functions for maintaining a
19 list of previously-entered command lines for recalling or editing
20 those lines, and for performing csh-like history expansion on
21 previous commands.
22 end
23
24 source_dl = ftp://ftp.gnu.org/gnu/readline/
25
26 build
27 requires
28 audit-devel
29 ncurses-devel
30 end
31
32 configure_options += \
33 --libdir=/lib \
34
35 make_build_targets += \
36 SHLIB_LIBS=-lncurses
37
38 install_cmds
39 # Remove a bunch of *.c files
40 rm -rfv %{BUILDROOT}/usr/share/readline
41
42 mkdir -pv %{BUILDROOT}/usr/lib
43 rm -fv %{BUILDROOT}/lib/lib{readline,history}.so
44 ln -sfv ../../lib/libreadline.so.6 %{BUILDROOT}/usr/lib/libreadline.so
45 ln -sfv ../../lib/libhistory.so.6 %{BUILDROOT}/usr/lib/libhistory.so
46
47 mkdir -pv %{BUILDROOT}/etc/profile.d
48 cp -vf %{DIR_SOURCE}/readline.sh %{BUILDROOT}/etc/profile.d/
49 end
50 end
51
52 packages
53 package %{name}
54
55 package %{name}-devel
56 template DEVEL
57 end
58 end