2013-08-05 17:18:54 +08:00
|
|
|
%?mingw_package_header
|
|
|
|
|
|
|
|
Summary: shared libraries for terminal handling
|
|
|
|
Name: mingw32-ncurses6
|
2018-01-28 09:02:35 +08:00
|
|
|
Version: 6.1
|
2018-11-18 08:22:59 +08:00
|
|
|
Release: 20181117
|
2013-08-05 17:18:54 +08:00
|
|
|
License: X11
|
|
|
|
Group: Development/Libraries
|
2013-10-28 16:09:20 +08:00
|
|
|
Source: ncurses-%{version}-%{release}.tgz
|
ncurses 6.0 - patch 20180106
+ fixes for writing extended color pairs in putwin.
+ modify test/savescreen.c to add test patterns that exercise 88-,
256-, etc., colors.
+ modify configure option --with-build-cc, adding clang, c89 and c99
as possible default values.
+ modify ncurses-examples configure script to use pkg-config for the
extra form/menu/panel libraries, to be more consistent with the
handling of the curses/ncurses library.
+ modify test-packages for mingw to supply "pc" files.
+ modify gen-pkgconfig.in to list -lpthread as a private library when
configured to access it via weak symbols.
+ simplify gen-pkgconfig.in, adding -ltinfo without the special linker
checks because some versions of the linker simply hard-code the
behavior.
+ update URLs for ncurses website to use https.
+ modify CF_CURSES_LIBS to fill in $cf_nculib_root in case the
ncurses-examples are built with a system ncurses that lacks the
standard "curses" symbolic link, as done by SuSE. The symbol is
needed to make a followup check for the pthread library work, and
would be set properly using the options "--with-screen", etc.
+ generate misc/*.pc with "all" rule, as done for "sources" rule
(report by Jeffrey Walton).
2018-01-07 10:47:04 +08:00
|
|
|
# URL: https://invisible-island.net/ncurses/
|
2013-08-05 17:18:54 +08:00
|
|
|
|
|
|
|
BuildRequires: mingw32-filesystem >= 95
|
|
|
|
BuildRequires: mingw32-gcc
|
|
|
|
BuildRequires: mingw32-binutils
|
|
|
|
|
|
|
|
BuildRequires: mingw64-filesystem >= 95
|
|
|
|
BuildRequires: mingw64-gcc
|
|
|
|
BuildRequires: mingw64-binutils
|
|
|
|
|
ncurses 6.0 - patch 20180106
+ fixes for writing extended color pairs in putwin.
+ modify test/savescreen.c to add test patterns that exercise 88-,
256-, etc., colors.
+ modify configure option --with-build-cc, adding clang, c89 and c99
as possible default values.
+ modify ncurses-examples configure script to use pkg-config for the
extra form/menu/panel libraries, to be more consistent with the
handling of the curses/ncurses library.
+ modify test-packages for mingw to supply "pc" files.
+ modify gen-pkgconfig.in to list -lpthread as a private library when
configured to access it via weak symbols.
+ simplify gen-pkgconfig.in, adding -ltinfo without the special linker
checks because some versions of the linker simply hard-code the
behavior.
+ update URLs for ncurses website to use https.
+ modify CF_CURSES_LIBS to fill in $cf_nculib_root in case the
ncurses-examples are built with a system ncurses that lacks the
standard "curses" symbolic link, as done by SuSE. The symbol is
needed to make a followup check for the pthread library work, and
would be set properly using the options "--with-screen", etc.
+ generate misc/*.pc with "all" rule, as done for "sources" rule
(report by Jeffrey Walton).
2018-01-07 10:47:04 +08:00
|
|
|
%global MY_ABI 6
|
|
|
|
|
2013-08-05 17:18:54 +08:00
|
|
|
%define CC_NORMAL -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wconversion
|
|
|
|
%define CC_STRICT %{CC_NORMAL} -W -Wbad-function-cast -Wcast-align -Wcast-qual -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wwrite-strings -ansi -pedantic
|
|
|
|
|
|
|
|
%description -n mingw32-ncurses6
|
|
|
|
Cross-compiling support for ncurses to mingw32.
|
|
|
|
|
|
|
|
The ncurses library routines are a terminal-independent method of
|
|
|
|
updating character screens with reasonable optimization.
|
|
|
|
|
|
|
|
This package is used for testing ABI 6 with cross-compiles to MinGW.
|
|
|
|
|
|
|
|
%package -n mingw64-ncurses6
|
|
|
|
Summary: Curses library for MinGW64
|
|
|
|
|
|
|
|
%description -n mingw64-ncurses6
|
|
|
|
Cross-compiling support for ncurses to mingw64.
|
|
|
|
|
|
|
|
The ncurses library routines are a terminal-independent method of
|
|
|
|
updating character screens with reasonable optimization.
|
|
|
|
|
ncurses 6.0 - patch 20180106
+ fixes for writing extended color pairs in putwin.
+ modify test/savescreen.c to add test patterns that exercise 88-,
256-, etc., colors.
+ modify configure option --with-build-cc, adding clang, c89 and c99
as possible default values.
+ modify ncurses-examples configure script to use pkg-config for the
extra form/menu/panel libraries, to be more consistent with the
handling of the curses/ncurses library.
+ modify test-packages for mingw to supply "pc" files.
+ modify gen-pkgconfig.in to list -lpthread as a private library when
configured to access it via weak symbols.
+ simplify gen-pkgconfig.in, adding -ltinfo without the special linker
checks because some versions of the linker simply hard-code the
behavior.
+ update URLs for ncurses website to use https.
+ modify CF_CURSES_LIBS to fill in $cf_nculib_root in case the
ncurses-examples are built with a system ncurses that lacks the
standard "curses" symbolic link, as done by SuSE. The symbol is
needed to make a followup check for the pthread library work, and
would be set properly using the options "--with-screen", etc.
+ generate misc/*.pc with "all" rule, as done for "sources" rule
(report by Jeffrey Walton).
2018-01-07 10:47:04 +08:00
|
|
|
This package is used for testing ABI %{MY_ABI} with cross-compiles to MinGW.
|
2013-08-05 17:18:54 +08:00
|
|
|
|
|
|
|
%prep
|
|
|
|
|
|
|
|
%define CFG_OPTS \\\
|
|
|
|
--disable-db-install \\\
|
ncurses 6.0 - patch 20180106
+ fixes for writing extended color pairs in putwin.
+ modify test/savescreen.c to add test patterns that exercise 88-,
256-, etc., colors.
+ modify configure option --with-build-cc, adding clang, c89 and c99
as possible default values.
+ modify ncurses-examples configure script to use pkg-config for the
extra form/menu/panel libraries, to be more consistent with the
handling of the curses/ncurses library.
+ modify test-packages for mingw to supply "pc" files.
+ modify gen-pkgconfig.in to list -lpthread as a private library when
configured to access it via weak symbols.
+ simplify gen-pkgconfig.in, adding -ltinfo without the special linker
checks because some versions of the linker simply hard-code the
behavior.
+ update URLs for ncurses website to use https.
+ modify CF_CURSES_LIBS to fill in $cf_nculib_root in case the
ncurses-examples are built with a system ncurses that lacks the
standard "curses" symbolic link, as done by SuSE. The symbol is
needed to make a followup check for the pthread library work, and
would be set properly using the options "--with-screen", etc.
+ generate misc/*.pc with "all" rule, as done for "sources" rule
(report by Jeffrey Walton).
2018-01-07 10:47:04 +08:00
|
|
|
--disable-echo \\\
|
2013-08-05 17:18:54 +08:00
|
|
|
--disable-getcap \\\
|
|
|
|
--disable-hard-tabs \\\
|
|
|
|
--disable-leaks \\\
|
|
|
|
--disable-macros \\\
|
|
|
|
--disable-overwrite \\\
|
|
|
|
--disable-termcap \\\
|
|
|
|
--enable-interop \\\
|
2018-02-11 08:39:07 +08:00
|
|
|
--enable-opaque-curses \\\
|
|
|
|
--enable-opaque-form \\\
|
|
|
|
--enable-opaque-menu \\\
|
|
|
|
--enable-opaque-panel \\\
|
ncurses 6.0 - patch 20180106
+ fixes for writing extended color pairs in putwin.
+ modify test/savescreen.c to add test patterns that exercise 88-,
256-, etc., colors.
+ modify configure option --with-build-cc, adding clang, c89 and c99
as possible default values.
+ modify ncurses-examples configure script to use pkg-config for the
extra form/menu/panel libraries, to be more consistent with the
handling of the curses/ncurses library.
+ modify test-packages for mingw to supply "pc" files.
+ modify gen-pkgconfig.in to list -lpthread as a private library when
configured to access it via weak symbols.
+ simplify gen-pkgconfig.in, adding -ltinfo without the special linker
checks because some versions of the linker simply hard-code the
behavior.
+ update URLs for ncurses website to use https.
+ modify CF_CURSES_LIBS to fill in $cf_nculib_root in case the
ncurses-examples are built with a system ncurses that lacks the
standard "curses" symbolic link, as done by SuSE. The symbol is
needed to make a followup check for the pthread library work, and
would be set properly using the options "--with-screen", etc.
+ generate misc/*.pc with "all" rule, as done for "sources" rule
(report by Jeffrey Walton).
2018-01-07 10:47:04 +08:00
|
|
|
--enable-pc-files \\\
|
2013-08-05 17:18:54 +08:00
|
|
|
--enable-sp-funcs \\\
|
|
|
|
--enable-term-driver \\\
|
|
|
|
--enable-warnings \\\
|
2018-02-11 08:39:07 +08:00
|
|
|
--enable-wgetch-events \\\
|
2013-08-05 17:18:54 +08:00
|
|
|
--enable-widec \\\
|
ncurses 6.0 - patch 20180106
+ fixes for writing extended color pairs in putwin.
+ modify test/savescreen.c to add test patterns that exercise 88-,
256-, etc., colors.
+ modify configure option --with-build-cc, adding clang, c89 and c99
as possible default values.
+ modify ncurses-examples configure script to use pkg-config for the
extra form/menu/panel libraries, to be more consistent with the
handling of the curses/ncurses library.
+ modify test-packages for mingw to supply "pc" files.
+ modify gen-pkgconfig.in to list -lpthread as a private library when
configured to access it via weak symbols.
+ simplify gen-pkgconfig.in, adding -ltinfo without the special linker
checks because some versions of the linker simply hard-code the
behavior.
+ update URLs for ncurses website to use https.
+ modify CF_CURSES_LIBS to fill in $cf_nculib_root in case the
ncurses-examples are built with a system ncurses that lacks the
standard "curses" symbolic link, as done by SuSE. The symbol is
needed to make a followup check for the pthread library work, and
would be set properly using the options "--with-screen", etc.
+ generate misc/*.pc with "all" rule, as done for "sources" rule
(report by Jeffrey Walton).
2018-01-07 10:47:04 +08:00
|
|
|
--with-config-suffix=dev \\\
|
2013-08-05 17:18:54 +08:00
|
|
|
--verbose \\\
|
|
|
|
--with-cxx-shared \\\
|
|
|
|
--with-develop \\\
|
2018-02-11 08:39:07 +08:00
|
|
|
--with-fallbacks=unknown,xterm \\\
|
ncurses 6.0 - patch 20180106
+ fixes for writing extended color pairs in putwin.
+ modify test/savescreen.c to add test patterns that exercise 88-,
256-, etc., colors.
+ modify configure option --with-build-cc, adding clang, c89 and c99
as possible default values.
+ modify ncurses-examples configure script to use pkg-config for the
extra form/menu/panel libraries, to be more consistent with the
handling of the curses/ncurses library.
+ modify test-packages for mingw to supply "pc" files.
+ modify gen-pkgconfig.in to list -lpthread as a private library when
configured to access it via weak symbols.
+ simplify gen-pkgconfig.in, adding -ltinfo without the special linker
checks because some versions of the linker simply hard-code the
behavior.
+ update URLs for ncurses website to use https.
+ modify CF_CURSES_LIBS to fill in $cf_nculib_root in case the
ncurses-examples are built with a system ncurses that lacks the
standard "curses" symbolic link, as done by SuSE. The symbol is
needed to make a followup check for the pthread library work, and
would be set properly using the options "--with-screen", etc.
+ generate misc/*.pc with "all" rule, as done for "sources" rule
(report by Jeffrey Walton).
2018-01-07 10:47:04 +08:00
|
|
|
--with-install-prefix=$RPM_BUILD_ROOT \\\
|
|
|
|
--with-pc-suffix=%{MY_ABI} \\\
|
2018-07-15 08:59:40 +08:00
|
|
|
--with-pcre2 \\\
|
2013-08-05 17:18:54 +08:00
|
|
|
--with-shared \\\
|
|
|
|
--with-tparm-arg=intptr_t \\\
|
|
|
|
--with-trace \\\
|
|
|
|
--with-xterm-kbs=DEL \\\
|
|
|
|
--without-ada \\\
|
|
|
|
--without-debug \\\
|
|
|
|
--without-manpages \\\
|
2013-08-18 08:20:29 +08:00
|
|
|
--without-progs \\\
|
2013-08-05 17:18:54 +08:00
|
|
|
--without-tests
|
|
|
|
|
|
|
|
%define debug_package %{nil}
|
2013-10-28 16:09:20 +08:00
|
|
|
%setup -q -n ncurses-%{version}-%{release}
|
2013-08-05 17:18:54 +08:00
|
|
|
|
|
|
|
%build
|
|
|
|
mkdir BUILD-W32
|
|
|
|
pushd BUILD-W32
|
|
|
|
CFLAGS="%{CC_NORMAL}" \
|
|
|
|
CC=%{mingw32_cc} \
|
ncurses 6.0 - patch 20180106
+ fixes for writing extended color pairs in putwin.
+ modify test/savescreen.c to add test patterns that exercise 88-,
256-, etc., colors.
+ modify configure option --with-build-cc, adding clang, c89 and c99
as possible default values.
+ modify ncurses-examples configure script to use pkg-config for the
extra form/menu/panel libraries, to be more consistent with the
handling of the curses/ncurses library.
+ modify test-packages for mingw to supply "pc" files.
+ modify gen-pkgconfig.in to list -lpthread as a private library when
configured to access it via weak symbols.
+ simplify gen-pkgconfig.in, adding -ltinfo without the special linker
checks because some versions of the linker simply hard-code the
behavior.
+ update URLs for ncurses website to use https.
+ modify CF_CURSES_LIBS to fill in $cf_nculib_root in case the
ncurses-examples are built with a system ncurses that lacks the
standard "curses" symbolic link, as done by SuSE. The symbol is
needed to make a followup check for the pthread library work, and
would be set properly using the options "--with-screen", etc.
+ generate misc/*.pc with "all" rule, as done for "sources" rule
(report by Jeffrey Walton).
2018-01-07 10:47:04 +08:00
|
|
|
%mingw32_configure %{CFG_OPTS} \
|
|
|
|
--with-pkg-config-libdir=%{mingw32_libdir}/pkgconfig
|
2013-08-05 17:18:54 +08:00
|
|
|
make
|
|
|
|
popd
|
|
|
|
|
|
|
|
mkdir BUILD-W64
|
|
|
|
pushd BUILD-W64
|
|
|
|
CFLAGS="%{CC_NORMAL}" \
|
|
|
|
CC=%{mingw64_cc} \
|
ncurses 6.0 - patch 20180106
+ fixes for writing extended color pairs in putwin.
+ modify test/savescreen.c to add test patterns that exercise 88-,
256-, etc., colors.
+ modify configure option --with-build-cc, adding clang, c89 and c99
as possible default values.
+ modify ncurses-examples configure script to use pkg-config for the
extra form/menu/panel libraries, to be more consistent with the
handling of the curses/ncurses library.
+ modify test-packages for mingw to supply "pc" files.
+ modify gen-pkgconfig.in to list -lpthread as a private library when
configured to access it via weak symbols.
+ simplify gen-pkgconfig.in, adding -ltinfo without the special linker
checks because some versions of the linker simply hard-code the
behavior.
+ update URLs for ncurses website to use https.
+ modify CF_CURSES_LIBS to fill in $cf_nculib_root in case the
ncurses-examples are built with a system ncurses that lacks the
standard "curses" symbolic link, as done by SuSE. The symbol is
needed to make a followup check for the pthread library work, and
would be set properly using the options "--with-screen", etc.
+ generate misc/*.pc with "all" rule, as done for "sources" rule
(report by Jeffrey Walton).
2018-01-07 10:47:04 +08:00
|
|
|
%mingw64_configure %{CFG_OPTS} \
|
|
|
|
--with-pkg-config-libdir=%{mingw64_libdir}/pkgconfig
|
2013-08-05 17:18:54 +08:00
|
|
|
make
|
|
|
|
popd
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2014-09-21 09:02:18 +08:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_bindir}
|
|
|
|
|
2013-08-05 17:18:54 +08:00
|
|
|
pushd BUILD-W32
|
2014-09-21 09:02:18 +08:00
|
|
|
%{mingw32_make} install.libs
|
|
|
|
for name in $RPM_BUILD_ROOT%{mingw32_bindir}/*-config; \
|
|
|
|
do \
|
|
|
|
base=`basename $name`; \
|
|
|
|
ln -v $name $RPM_BUILD_ROOT%{_bindir}/%{mingw32_target}-$base; \
|
|
|
|
done
|
2013-08-05 17:18:54 +08:00
|
|
|
popd
|
|
|
|
|
|
|
|
pushd BUILD-W64
|
2014-09-21 09:02:18 +08:00
|
|
|
%{mingw64_make} install.libs
|
|
|
|
for name in $RPM_BUILD_ROOT%{mingw64_bindir}/*-config; \
|
|
|
|
do \
|
|
|
|
base=`basename $name`; \
|
|
|
|
ln -v $name $RPM_BUILD_ROOT%{_bindir}/%{mingw64_target}-$base; \
|
|
|
|
done
|
2013-08-05 17:18:54 +08:00
|
|
|
popd
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files -n mingw32-ncurses6
|
2015-02-22 10:09:20 +08:00
|
|
|
%defattr(-,root,root,-)
|
2014-09-21 09:02:18 +08:00
|
|
|
%{_bindir}/%{mingw32_target}-*
|
2013-08-05 17:18:54 +08:00
|
|
|
%{mingw32_bindir}/*
|
|
|
|
%{mingw32_includedir}/*
|
|
|
|
%{mingw32_libdir}/*
|
|
|
|
|
|
|
|
%files -n mingw64-ncurses6
|
2015-02-22 10:09:20 +08:00
|
|
|
%defattr(-,root,root,-)
|
2014-09-21 09:02:18 +08:00
|
|
|
%{_bindir}/%{mingw64_target}-*
|
2013-08-05 17:18:54 +08:00
|
|
|
%{mingw64_bindir}/*
|
|
|
|
%{mingw64_includedir}/*
|
|
|
|
%{mingw64_libdir}/*
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
2018-02-11 08:39:07 +08:00
|
|
|
* Sat Feb 10 2018 Thomas E. Dickey
|
|
|
|
- add several development features
|
|
|
|
|
2017-12-31 09:08:31 +08:00
|
|
|
* Tue Dec 26 2017 Thomas E. Dickey
|
|
|
|
- add --with-config-suffix option
|
|
|
|
|
2014-09-21 09:02:18 +08:00
|
|
|
* Sat Sep 20 2014 Thomas E. Dickey
|
|
|
|
- adjust install-rules for ncurses*-config
|
|
|
|
|
2013-08-05 17:18:54 +08:00
|
|
|
* Sat Aug 03 2013 Thomas E. Dickey
|
|
|
|
- initial version, using mingw-pdcurses package as a guide.
|