1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
9 thisapp = %{name}-%{version}
12 url = http://invisible-island.net/ncurses/ncurses.html
14 summary = Ncurses support utilities.
17 The curses library routines are a terminal-independent method of
18 updating character screens with reasonable optimization. The ncurses
19 (new curses) library is a freely distributable replacement for the
20 discontinued 4.4 BSD classic curses library.
23 source_dl = https://github.com/mirror/%{name}/archive/v%{version}.tar.gz#/
30 configure_options += \
34 --with-ospeed=unsigned \
39 --with-terminfo-dirs=%{sysconfdir}/terminfo:%{datadir}/terminfo \
44 export PKG_CONFIG_LIBDIR=%{libdir}/pkgconfig
47 mkdir -pv narrowc widec
49 # Build narrowc version.
51 ln -svf ../configure .
52 ./configure %{configure_options} --with-ticlib
53 make %{PARALLELISMFLAGS} libs
54 make %{PARALLELISMFLAGS} -C progs
56 # Build widec version.
58 ln -svf ../configure .
59 ./configure %{configure_options} --enable-widec --without-progs
60 make %{PARALLELISMFLAGS} libs
65 make -C narrowc DESTDIR=%{BUILDROOT} install.{libs,progs,data}
66 rm -rvf %{BUILDROOT}%{libdir}/libtinfo.*
67 make -C widec DESTDIR=%{BUILDROOT} install.{libs,includes,man}
69 chmod -v 755 %{BUILDROOT}%{libdir}/lib*.so.*.*
71 mkdir -pv %{BUILDROOT}/etc/terminfo
73 mkdir %{BUILDROOT}%{includedir}/ncurses{,w}
74 for l in %{BUILDROOT}%{includedir}/*.h; do
75 ln -s ../$(basename $l) %{BUILDROOT}%{includedir}/ncurses
76 ln -s ../$(basename $l) %{BUILDROOT}%{includedir}/ncursesw
79 # don't require -ltinfo when linking with --no-add-needed
80 for l in %{BUILDROOT}%{libdir}/libncurses{,w}.so; do
81 soname=$(basename $(readlink $l))
83 echo "INPUT($soname -ltinfo)" > $l
86 rm -f %{BUILDROOT}%{libdir}/libcurses{,w}.so
87 echo "INPUT(-lncurses)" > %{BUILDROOT}%{libdir}/libcurses.so
88 echo "INPUT(-lncursesw)" > %{BUILDROOT}%{libdir}/libcursesw.so
89 echo "INPUT(-ltinfo)" > %{BUILDROOT}%{libdir}/libtermcap.so
91 rm -vf %{BUILDROOT}%{libdir}/terminfo
92 rm -vf %{BUILDROOT}%{libdir}/pkgconfig/{*_g,ncurses++*}.pc
105 %{name}-base=%{thisver}
109 package %{name}-devel
114 summary = Terminal descriptions for ncurses.
116 This package contains additional terminal descriptions not found in
117 the ncurses-base package.
120 provides += /usr/share/terminfo
128 summary = Terminal descriptions.
130 This package contains descriptions of common terminals. Other terminal
131 descriptions are included in the ncurses-term package.
134 conflicts = ncurses<=5.9-1
137 /usr/share/terminfo/*/Eterm*
138 /usr/share/terminfo/*/ansi
139 /usr/share/terminfo/*/aterm
140 /usr/share/terminfo/*/bterm
141 /usr/share/terminfo/*/cons25
142 /usr/share/terminfo/*/cygwin
143 /usr/share/terminfo/*/dumb
144 /usr/share/terminfo/*/eterm*
145 /usr/share/terminfo/*/gnome
146 /usr/share/terminfo/*/gnome-256color
147 /usr/share/terminfo/*/hurd
148 /usr/share/terminfo/*/jfbterm
149 /usr/share/terminfo/*/konsole
150 /usr/share/terminfo/*/konsole-256color
151 /usr/share/terminfo/*/linux
152 /usr/share/terminfo/*/mach*
153 /usr/share/terminfo/*/mlterm
154 /usr/share/terminfo/*/mrxvt
155 /usr/share/terminfo/*/nsterm
156 /usr/share/terminfo/*/putty*
157 /usr/share/terminfo/*/pcansi
158 /usr/share/terminfo/*/rxvt
159 /usr/share/terminfo/*/rxvt-*
160 /usr/share/terminfo/*/screen
161 /usr/share/terminfo/*/screen-*color
162 /usr/share/terminfo/*/screen.*
163 /usr/share/terminfo/*/sun
164 /usr/share/terminfo/*/teraterm
165 /usr/share/terminfo/*/teraterm2.3
166 /usr/share/terminfo/*/vt100
167 /usr/share/terminfo/*/vt100-nav
168 /usr/share/terminfo/*/vt102
169 /usr/share/terminfo/*/vt220
170 /usr/share/terminfo/*/vt52
171 /usr/share/terminfo/*/vte
172 /usr/share/terminfo/*/vte-256color
173 /usr/share/terminfo/*/vwmterm
174 /usr/share/terminfo/*/wsvt25*
175 /usr/share/terminfo/*/xfce
176 /usr/share/terminfo/*/xterm
177 /usr/share/terminfo/*/xterm-*
181 package %{name}-debuginfo