1 Summary: ncurses-examples - example/test programs from ncurses
4 %global AppProgram ncurses-examples
5 %global AppVersion MAJOR.MINOR
6 %global AppRelease YYYYMMDD
7 # $Id: mingw-ncurses-examples.spec,v 1.10 2021/06/17 21:11:12 tom Exp $
8 Name: mingw32-ncurses6-examples
10 Release: %{AppRelease}
12 Group: Development/Libraries
13 Source: ncurses-examples-%{release}.tgz
14 # URL: https://invisible-island.net/ncurses/
16 BuildRequires: mingw32-ncurses6
18 BuildRequires: mingw32-filesystem >= 95
19 BuildRequires: mingw32-gcc
20 BuildRequires: mingw32-binutils
22 BuildRequires: mingw64-ncurses6
24 BuildRequires: mingw64-filesystem >= 95
25 BuildRequires: mingw64-gcc
26 BuildRequires: mingw64-binutils
28 %define CC_NORMAL -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wconversion
29 %define CC_STRICT %{CC_NORMAL} -W -Wbad-function-cast -Wcast-align -Wcast-qual -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wwrite-strings -ansi -pedantic
31 %description -n mingw32-ncurses6-examples
32 Cross-compiling support for ncurses to mingw32.
34 The ncurses library routines are a terminal-independent method of
35 updating character screens with reasonable optimization.
37 This package is used for testing ABI 6 with cross-compiles to MinGW.
39 %package -n mingw64-ncurses6-examples
40 Summary: Curses library for MinGW64
42 %description -n mingw64-ncurses6-examples
43 Cross-compiling support for ncurses to mingw64.
45 The ncurses library routines are a terminal-independent method of
46 updating character screens with reasonable optimization.
48 This package is used for testing ABI 6 with cross-compiles to MinGW.
52 # override location of bindir, e.g., to avoid conflict with pdcurses
53 %global mingw32_bindir %{mingw32_exec_prefix}/bin/%{AppProgram}
54 %global mingw64_bindir %{mingw64_exec_prefix}/bin/%{AppProgram}
56 %global mingw32_datadir %{mingw32_datadir}/%{AppProgram}
57 %global mingw64_datadir %{mingw64_datadir}/%{AppProgram}
63 --with-screen=ncursesw6
65 %define debug_package %{nil}
66 %setup -q -n ncurses-examples-%{release}
71 CFLAGS="%{CC_NORMAL}" \
73 NCURSES_CONFIG_SUFFIX=dev \
74 %mingw32_configure %{CFG_OPTS} \
75 --datadir=%{mingw32_datadir}
81 CFLAGS="%{CC_NORMAL}" \
83 %mingw64_configure %{CFG_OPTS} \
84 --datadir=%{mingw32_datadir}
89 rm -rf $RPM_BUILD_ROOT
92 %{mingw32_make} install DESTDIR=$RPM_BUILD_ROOT
96 %{mingw64_make} install DESTDIR=$RPM_BUILD_ROOT
100 if rm -rf $RPM_BUILD_ROOT; then
103 find $RPM_BUILD_ROOT -type f | grep -F -v /.nfs && exit 1
107 %defattr(-,root,root,-)
109 %files -n mingw32-ncurses6-examples
113 %files -n mingw64-ncurses6-examples
119 * Sat Nov 16 2019 Thomas Dickey
120 - modify clean-rule to work around Fedora NFS bugs.
122 * Sat Oct 19 2013 Thomas E. Dickey