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.
45 --with-config-suffix=dev \\\
47 --disable-db-install \\\
49 --disable-hard-tabs \\\
52 --disable-overwrite \\\
55 --enable-ext-colors \\\
56 --enable-ext-mouse \\\
57 --enable-ext-putwin \\\
60 --enable-term-driver \\\
66 --with-fallbacks=unknown,rxvt \\\
68 --with-tparm-arg=intptr_t \\\
70 --with-xterm-kbs=DEL \\\
73 --with-install-prefix=$RPM_BUILD_ROOT \\\
74 --without-manpages \\\
78 %define debug_package %{nil}
79 %setup -q -n ncurses-%{version}-%{release}
84 CFLAGS="%{CC_NORMAL}" \
86 %mingw32_configure %{CFG_OPTS}
92 CFLAGS="%{CC_NORMAL}" \
94 %mingw64_configure %{CFG_OPTS}
99 rm -rf $RPM_BUILD_ROOT
101 mkdir -p $RPM_BUILD_ROOT%{_bindir}
104 %{mingw32_make} install.libs
105 for name in $RPM_BUILD_ROOT%{mingw32_bindir}/*-config; \
107 base=`basename $name`; \
108 ln -v $name $RPM_BUILD_ROOT%{_bindir}/%{mingw32_target}-$base; \
113 %{mingw64_make} install.libs
114 for name in $RPM_BUILD_ROOT%{mingw64_bindir}/*-config; \
116 base=`basename $name`; \
117 ln -v $name $RPM_BUILD_ROOT%{_bindir}/%{mingw64_target}-$base; \
122 rm -rf $RPM_BUILD_ROOT
124 %files -n mingw32-ncurses6
125 %defattr(-,root,root,-)
126 %{_bindir}/%{mingw32_target}-*
128 %{mingw32_includedir}/*
131 %files -n mingw64-ncurses6
132 %defattr(-,root,root,-)
133 %{_bindir}/%{mingw64_target}-*
135 %{mingw64_includedir}/*
140 * Tue Dec 26 2017 Thomas E. Dickey
141 - add --with-config-suffix option
143 * Sat Sep 20 2014 Thomas E. Dickey
144 - adjust install-rules for ncurses*-config
146 * Sat Aug 03 2013 Thomas E. Dickey
147 - initial version, using mingw-pdcurses package as a guide.