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 = https://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 \
42 --with-termlib=tinfo \
45 export PKG_CONFIG_LIBDIR=%{libdir}/pkgconfig
48 mkdir -pv narrowc widec
50 # Build narrowc version.
52 ln -svf ../configure .
53 ./configure %{configure_options} --with-ticlib
54 make %{PARALLELISMFLAGS} libs
55 make %{PARALLELISMFLAGS} -C progs
57 # Build widec version.
59 ln -svf ../configure .
60 ./configure %{configure_options} --enable-widec --without-progs
61 make %{PARALLELISMFLAGS} libs
66 make -C narrowc DESTDIR=%{BUILDROOT} install.{libs,progs,data}
67 rm -rvf %{BUILDROOT}%{libdir}/libtinfo.*
68 make -C widec DESTDIR=%{BUILDROOT} install.{libs,includes,man}
70 chmod -v 755 %{BUILDROOT}%{libdir}/lib*.so.*.*
72 mkdir -pv %{BUILDROOT}/etc/terminfo
74 mkdir %{BUILDROOT}%{includedir}/ncurses{,w}
75 for l in %{BUILDROOT}%{includedir}/*.h; do
76 ln -s ../$(basename $l) %{BUILDROOT}%{includedir}/ncurses
77 ln -s ../$(basename $l) %{BUILDROOT}%{includedir}/ncursesw
80 # don't require -ltinfo when linking with --no-add-needed
81 for l in %{BUILDROOT}%{libdir}/libncurses{,w}.so; do
82 soname=$(basename $(readlink $l))
84 echo "INPUT($soname -ltinfo)" > $l
87 rm -f %{BUILDROOT}%{libdir}/libcurses{,w}.so
88 echo "INPUT(-lncurses)" > %{BUILDROOT}%{libdir}/libcurses.so
89 echo "INPUT(-lncursesw)" > %{BUILDROOT}%{libdir}/libcursesw.so
90 echo "INPUT(-ltinfo)" > %{BUILDROOT}%{libdir}/libtermcap.so
92 rm -vf %{BUILDROOT}%{libdir}/terminfo
93 rm -vf %{BUILDROOT}%{libdir}/pkgconfig/{*_g,ncurses++*}.pc
95 # Manually remove all static libraries
96 rm -vf %{BUILDROOT}%{libdir}/*.a
107 %{name}-base=%{thisver}
111 package %{name}-devel
116 summary = Terminal descriptions for ncurses.
118 This package contains additional terminal descriptions not found in
119 the ncurses-base package.
122 provides += /usr/share/terminfo
130 summary = Terminal descriptions.
132 This package contains descriptions of common terminals. Other terminal
133 descriptions are included in the ncurses-term package.
136 conflicts = ncurses<=5.9-1
139 /usr/share/terminfo/*/Eterm*
140 /usr/share/terminfo/*/ansi
141 /usr/share/terminfo/*/aterm
142 /usr/share/terminfo/*/bterm
143 /usr/share/terminfo/*/cons25
144 /usr/share/terminfo/*/cygwin
145 /usr/share/terminfo/*/dumb
146 /usr/share/terminfo/*/eterm*
147 /usr/share/terminfo/*/gnome
148 /usr/share/terminfo/*/gnome-256color
149 /usr/share/terminfo/*/hurd
150 /usr/share/terminfo/*/jfbterm
151 /usr/share/terminfo/*/konsole
152 /usr/share/terminfo/*/konsole-256color
153 /usr/share/terminfo/*/linux
154 /usr/share/terminfo/*/mach*
155 /usr/share/terminfo/*/mlterm
156 /usr/share/terminfo/*/mrxvt
157 /usr/share/terminfo/*/nsterm
158 /usr/share/terminfo/*/putty*
159 /usr/share/terminfo/*/pcansi
160 /usr/share/terminfo/*/rxvt
161 /usr/share/terminfo/*/rxvt-*
162 /usr/share/terminfo/*/screen
163 /usr/share/terminfo/*/screen-*color
164 /usr/share/terminfo/*/screen.*
165 /usr/share/terminfo/*/sun
166 /usr/share/terminfo/*/teraterm
167 /usr/share/terminfo/*/teraterm2.3
168 /usr/share/terminfo/*/vt100
169 /usr/share/terminfo/*/vt100-nav
170 /usr/share/terminfo/*/vt102
171 /usr/share/terminfo/*/vt220
172 /usr/share/terminfo/*/vt52
173 /usr/share/terminfo/*/vte
174 /usr/share/terminfo/*/vte-256color
175 /usr/share/terminfo/*/vwmterm
176 /usr/share/terminfo/*/wsvt25*
177 /usr/share/terminfo/*/xfce
178 /usr/share/terminfo/*/xterm
179 /usr/share/terminfo/*/xterm-*
183 package %{name}-debuginfo