###############################################################################
name = ncurses
-version = 5.9
-revision = 20150117
-release = 10.%{revision}
-thisapp = %{name}-%{version}-%{revision}
+version = 6.1
+release = 1
+thisapp = %{name}-%{version}
groups = System/Base
url = http://invisible-island.net/ncurses/ncurses.html
discontinued 4.4 BSD classic curses library.
end
-source_dl = ftp://invisible-island.net/ncurses/current/
-sources = %{thisapp}.tgz
+source_dl = https://github.com/mirror/%{name}/archive/v%{version}.tar.gz#/
build
requires
mkdir -pv %{BUILDROOT}/etc/terminfo
+ mkdir %{BUILDROOT}%{includedir}/ncurses{,w}
+ for l in %{BUILDROOT}%{includedir}/*.h; do
+ ln -s ../$(basename $l) %{BUILDROOT}%{includedir}/ncurses
+ ln -s ../$(basename $l) %{BUILDROOT}%{includedir}/ncursesw
+ done
+
# don't require -ltinfo when linking with --no-add-needed
for l in %{BUILDROOT}%{libdir}/libncurses{,w}.so; do
soname=$(basename $(readlink $l))
packages
package %{name}
+ groups += Base
+ end
package %{name}-libs
template LIBS