3 Summary: shared libraries for terminal handling
8 Group: Development/Libraries
9 Source: ncurses-%{version}-%{release}.tgz
10 # URL: https://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
22 %define CC_NORMAL -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wconversion
23 %define CC_STRICT %{CC_NORMAL} -W -Wbad-function-cast -Wcast-align -Wcast-qual -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wwrite-strings -ansi -pedantic
25 %description -n mingw32-ncurses6
26 Cross-compiling support for ncurses to mingw32.
28 The ncurses library routines are a terminal-independent method of
29 updating character screens with reasonable optimization.
31 This package is used for testing ABI 6 with cross-compiles to MinGW.
33 %package -n mingw64-ncurses6
34 Summary: Curses library for MinGW64
36 %description -n mingw64-ncurses6
37 Cross-compiling support for ncurses to mingw64.
39 The ncurses library routines are a terminal-independent method of
40 updating character screens with reasonable optimization.
42 This package is used for testing ABI %{MY_ABI} with cross-compiles to MinGW.
47 --disable-db-install \\\
50 --disable-hard-tabs \\\
53 --disable-overwrite \\\
56 --enable-opaque-curses \\\
57 --enable-opaque-form \\\
58 --enable-opaque-menu \\\
59 --enable-opaque-panel \\\
62 --enable-term-driver \\\
64 --enable-wgetch-events \\\
66 --with-config-suffix=dev \\\
70 --with-fallbacks=unknown,xterm \\\
71 --with-install-prefix=$RPM_BUILD_ROOT \\\
72 --with-pc-suffix=%{MY_ABI} \\\
74 --with-tparm-arg=intptr_t \\\
76 --with-xterm-kbs=DEL \\\
79 --without-manpages \\\
83 %define debug_package %{nil}
84 %setup -q -n ncurses-%{version}-%{release}
89 CFLAGS="%{CC_NORMAL}" \
91 %mingw32_configure %{CFG_OPTS} \
92 --with-pkg-config-libdir=%{mingw32_libdir}/pkgconfig
98 CFLAGS="%{CC_NORMAL}" \
100 %mingw64_configure %{CFG_OPTS} \
101 --with-pkg-config-libdir=%{mingw64_libdir}/pkgconfig
106 rm -rf $RPM_BUILD_ROOT
108 mkdir -p $RPM_BUILD_ROOT%{_bindir}
111 %{mingw32_make} install.libs
112 for name in $RPM_BUILD_ROOT%{mingw32_bindir}/*-config; \
114 base=`basename $name`; \
115 ln -v $name $RPM_BUILD_ROOT%{_bindir}/%{mingw32_target}-$base; \
120 %{mingw64_make} install.libs
121 for name in $RPM_BUILD_ROOT%{mingw64_bindir}/*-config; \
123 base=`basename $name`; \
124 ln -v $name $RPM_BUILD_ROOT%{_bindir}/%{mingw64_target}-$base; \
129 rm -rf $RPM_BUILD_ROOT
131 %files -n mingw32-ncurses6
132 %defattr(-,root,root,-)
133 %{_bindir}/%{mingw32_target}-*
135 %{mingw32_includedir}/*
138 %files -n mingw64-ncurses6
139 %defattr(-,root,root,-)
140 %{_bindir}/%{mingw64_target}-*
142 %{mingw64_includedir}/*
147 * Sat Feb 10 2018 Thomas E. Dickey
148 - add several development features
150 * Tue Dec 26 2017 Thomas E. Dickey
151 - add --with-config-suffix option
153 * Sat Sep 20 2014 Thomas E. Dickey
154 - adjust install-rules for ncurses*-config
156 * Sat Aug 03 2013 Thomas E. Dickey
157 - initial version, using mingw-pdcurses package as a guide.