ncurses 5.9 - patch 20121006
[ncurses.git] / package / ncurses.spec
1 Summary: shared libraries for terminal handling
2 Name: ncurses6
3 Release: 5.9
4 Version: 20121006
5 License: X11
6 Group: Development/Libraries
7 Source: ncurses-%{release}-%{version}.tgz
8 # URL: http://invisible-island.net/ncurses/
9
10 %define CC_NORMAL -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wconversion
11 %define CC_STRICT %{CC_NORMAL} -W -Wbad-function-cast -Wcast-align -Wcast-qual -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wwrite-strings -ansi -pedantic
12
13 %define _prefix /usr/local/ncurses6
14 %define MYDATA /usr/local/ncurses/share/terminfo
15
16 %description
17 The ncurses library routines are a terminal-independent method of
18 updating character screens with reasonable optimization.
19
20 This package is used for testing ABI 6.
21
22 %prep
23
24 %setup -q -n ncurses-%{release}-%{version}
25
26 %build
27 CFLAGS="%{CC_NORMAL}" \
28 RPATH_LIST=../lib:%{_prefix}/lib \
29 %configure \
30         --target %{_target_platform} \
31         --prefix=%{_prefix} \
32         --includedir='${prefix}/include' \
33         --with-default-terminfo-dir=%{MYDATA} \
34         --with-install-prefix=$RPM_BUILD_ROOT \
35         --with-terminfo-dirs=%{MYDATA}:/usr/share/terminfo \
36         --disable-echo \
37         --disable-getcap \
38         --disable-leaks \
39         --disable-macros  \
40         --disable-overwrite  \
41         --disable-termcap \
42         --enable-const \
43         --enable-ext-colors \
44         --enable-ext-mouse \
45         --enable-hard-tabs \
46         --enable-interop \
47         --enable-rpath \
48         --enable-sp-funcs \
49         --enable-warnings \
50         --enable-widec \
51         --verbose \
52         --with-develop \
53         --with-shared \
54         --with-termlib \
55         --with-ticlib \
56         --with-trace \
57         --with-xterm-kbs=DEL \
58         --without-ada \
59         --without-debug \
60         --without-normal
61
62 make
63
64 %install
65 rm -rf $RPM_BUILD_ROOT
66
67 make install.libs install.progs
68
69 %clean
70 rm -rf $RPM_BUILD_ROOT
71
72 %files
73 %defattr(-,root,root,-)
74 %{_bindir}/*
75 %{_includedir}/*
76 %{_libdir}/*
77 #%{_datadir}/*
78
79 %changelog
80
81 * Fri Jun 08 2012 Thomas E. Dickey
82 - initial version.