File mingw64-ncurses.spec of Package mingw64-ncurses
#
# spec file for package mingw64-ncurses
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define _name ncurses
%define enable_wide 1
%define _release 20150509
Name: mingw64-ncurses
Version: 5.9
Release: 0
Summary: New curses Libraries
License: MIT
Group: System/Base
Url: http://www.gnu.org/software/ncurses/
Source0: ftp://invisible-island.net/%{_name}/current/%{_name}-%{version}-%{_release}.tgz
Source1000: %{name}-rpmlintrc
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: intltool
BuildRequires: libtool
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-cross-pkg-config
# need non cross-compiled tic
BuildRequires: ncurses-devel
%_mingw64_package_header_debug
BuildArch: noarch
#!BuildIgnore: post-build-checks
%description
As soon as a text application needs to directly control its output to
the screen (if it wants to place the cursor at location (x,y) then
write text), ncurses is used. The panel and the forms libraries are
included in this package. These new libraries support color, special
characters, and panels.
%package -n mingw64-libncurses6
Summary: MinGW Windows port of the New Curses library
Group: System/Libraries
Obsoletes: mingw64-ncurses
%description -n mingw64-libncurses6
As soon as a text application needs to directly control its output to
the screen (if it wants to place the cursor at location (x,y) then
write text), ncurses is used. The panel and the forms libraries are
included in this package. These new libraries support color, special
characters, and panels.
%package devel
Summary: New curses Libraries
Group: Development/Libraries/C and C++
Requires: mingw64-libncurses6 = %{version}
%description devel
As soon as a text application needs to directly control its output to
the screen (if it wants to place the cursor at location (x,y) then
write text), ncurses is used. The panel and the forms libraries are
included in this package. These new libraries support color, special
characters, and panels.
This package contains all necessary include files and libraries needed
to develop applications that require these.
%_mingw64_debug_package
%prep
%setup -q -n %{_name}-%{version}-%{_release}
%build
echo "lt_cv_deplibs_check_method='pass_all'" >> %{_mingw64_cache}
PATH="%{_mingw64_bindir}:$PATH"; export PATH; \
CPPFLAGS="-std=gnu89" ; export CPPFLAGS; \
MINGW64_CXXFLAGS="$_mingw64_cxxflags -std=c++11" \
%{_mingw64_configure} \
--disable-echo \
--disable-db-install \
--disable-getcap \
--disable-hard-tabs \
--disable-overwrite \
--disable-termcap \
--enable-const \
--enable-ext-mouse \
--enable-interop \
--enable-sp-funcs \
--enable-term-driver \
--enable-warnings \
--with-cxx-shared \
--with-develop \
--with-shared \
--with-tparm-arg=intptr_t \
--with-trace \
--with-xterm-kbs=DEL \
--without-ada \
--without-debug \
--without-progs \
%if %{enable_wide}
--enable-ext-colors \
--enable-widec \
%endif
--without-tests \
--enable-pc-files \
--with-pkg-config-libdir=%{_mingw64_libdir}/pkgconfig
# other win32 recommended switches:
# --disable-leaks --disable-macros
# --verbose --without-manpages
%{_mingw64_make} %{?_smp_mflags} || %{_mingw64_make}
%if %{enable_wide}
%define wide_suffix w
%else
%define wide_suffix %{nil}
%endif
%install
%{_mingw64_make} DESTDIR=%{buildroot} install
rm -f %{buildroot}%{_mingw64_libdir}/libform%{wide_suffix}.a
rm -f %{buildroot}%{_mingw64_libdir}/libmenu%{wide_suffix}.a
rm -f %{buildroot}%{_mingw64_libdir}/libncurses++%{wide_suffix}.a
rm -f %{buildroot}%{_mingw64_libdir}/libncurses%{wide_suffix}.a
rm -f %{buildroot}%{_mingw64_libdir}/libpanel%{wide_suffix}.a
%files -n mingw64-libncurses6
%defattr(-,root,root)
%{_mingw64_bindir}/libform%{wide_suffix}6.dll
%{_mingw64_bindir}/libmenu%{wide_suffix}6.dll
%{_mingw64_bindir}/libncurses++%{wide_suffix}6.dll
%{_mingw64_bindir}/libncurses%{wide_suffix}6.dll
%{_mingw64_bindir}/libpanel%{wide_suffix}6.dll
%files devel
%defattr(-,root,root)
%{_mingw64_bindir}/ncurses%{wide_suffix}6-config
%{_mingw64_includedir}/ncurses%{wide_suffix}/
%{_mingw64_libdir}/libform%{wide_suffix}.dll.a
%{_mingw64_libdir}/libmenu%{wide_suffix}.dll.a
%{_mingw64_libdir}/libncurses++%{wide_suffix}.dll.a
%{_mingw64_libdir}/libncurses%{wide_suffix}.dll.a
%{_mingw64_libdir}/libpanel%{wide_suffix}.dll.a
%{_mingw64_libdir}/pkgconfig
%{_mingw64_mandir}/man1/*
%{_mingw64_mandir}/man3/*
%{_mingw64_mandir}/man5/*
%{_mingw64_mandir}/man7/*
%changelog