3 Summary: shared libraries for terminal handling
8 Group: Development/Libraries
9 Source: ncurses-%{version}-%{release}.tgz
10 # URL: http://invisible-island.net/ncurses/
12 BuildRequires: mingw32-filesystem >= 95
13 BuildRequires: mingw32-gcc
14 BuildRequires: mingw32-binutils
16 BuildRequires: mingw64-filesystem >= 95
17 BuildRequires: mingw64-gcc
18 BuildRequires: mingw64-binutils
20 %define CC_NORMAL -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wconversion
21 %define CC_STRICT %{CC_NORMAL} -W -Wbad-function-cast -Wcast-align -Wcast-qual -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wwrite-strings -ansi -pedantic
23 %description -n mingw32-ncurses6
24 Cross-compiling support for ncurses to mingw32.
26 The ncurses library routines are a terminal-independent method of
27 updating character screens with reasonable optimization.
29 This package is used for testing ABI 6 with cross-compiles to MinGW.
31 %package -n mingw64-ncurses6
32 Summary: Curses library for MinGW64
34 %description -n mingw64-ncurses6
35 Cross-compiling support for ncurses to mingw64.
37 The ncurses library routines are a terminal-independent method of
38 updating character screens with reasonable optimization.
40 This package is used for testing ABI 6 with cross-compiles to MinGW.
46 --disable-db-install \\\
48 --disable-hard-tabs \\\
51 --disable-overwrite \\\
54 --enable-ext-colors \\\
55 --enable-ext-mouse \\\
58 --enable-term-driver \\\
64 --with-fallbacks=unknown,rxvt \\\
66 --with-tparm-arg=intptr_t \\\
68 --with-xterm-kbs=DEL \\\
71 --with-install-prefix=$RPM_BUILD_ROOT \\\
72 --without-manpages \\\
76 %define debug_package %{nil}
77 %setup -q -n ncurses-%{version}-%{release}
82 CFLAGS="%{CC_NORMAL}" \
84 %mingw32_configure %{CFG_OPTS}
90 CFLAGS="%{CC_NORMAL}" \
92 %mingw64_configure %{CFG_OPTS}
97 rm -rf $RPM_BUILD_ROOT
100 %{mingw32_make} install
104 %{mingw64_make} install
108 rm -rf $RPM_BUILD_ROOT
111 %defattr(-,root,root,-)
113 %files -n mingw32-ncurses6
115 %{mingw32_includedir}/*
118 %files -n mingw64-ncurses6
120 %{mingw64_includedir}/*
125 * Sat Aug 03 2013 Thomas E. Dickey
126 - initial version, using mingw-pdcurses package as a guide.