summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowitz@users.sourceforge.net>2012-03-23 00:03:42 -0500
committerYaakov Selkowitz <yselkowitz@users.sourceforge.net>2012-03-23 00:03:42 -0500
commit91bcccc2fd4189c3e8054eba27c10ec3488614bf (patch)
treeb401858a36eed888cb2943da960bb5c5b1d7c0e5
downloadcygwin-ncurses-91bcccc2fd4189c3e8054eba27c10ec3488614bf.tar.gz
cygwin-ncurses-91bcccc2fd4189c3e8054eba27c10ec3488614bf.tar.xz
cygwin-ncurses-91bcccc2fd4189c3e8054eba27c10ec3488614bf.zip
cygwin-ncurses 5.7-1
-rw-r--r--cygwin-ncurses.spec176
-rw-r--r--ncurses-5.7-17.extra.patch21
-rw-r--r--ncurses-5.7-18.src.patch49
-rw-r--r--sources10
4 files changed, 256 insertions, 0 deletions
diff --git a/cygwin-ncurses.spec b/cygwin-ncurses.spec
new file mode 100644
index 0000000..3d476ca
--- /dev/null
+++ b/cygwin-ncurses.spec
@@ -0,0 +1,176 @@
+%global __strip %{_cygwin_strip}
+%global __objdump %{_cygwin_objdump}
+%global _use_internal_dependency_generator 0
+%global __find_requires %{_cygwin_findrequires}
+%global __find_provides %{_cygwin_findprovides}
+
+Name: cygwin-ncurses
+Version: 5.7
+Release: 1
+Summary: Ncurses library for Cygwin toolchain
+
+Group: Development/Libraries
+License: MIT
+URL: http://invisible-island.net/ncurses/
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch: noarch
+
+Source0: ftp://invisible-island.net/ncurses/ncurses-%{version}.tar.gz
+Patch0: ftp://invisible-island.net/ncurses/%{version}/ncurses-%{version}-20091107-patch.sh.bz2
+Patch1: ftp://invisible-island.net/ncurses/%{version}/ncurses-%{version}-20091114.patch.gz
+Patch2: ftp://invisible-island.net/ncurses/%{version}/ncurses-%{version}-20091121.patch.gz
+Patch3: ftp://invisible-island.net/ncurses/%{version}/ncurses-%{version}-20091128.patch.gz
+Patch4: ftp://invisible-island.net/ncurses/%{version}/ncurses-%{version}-20091205.patch.gz
+Patch5: ftp://invisible-island.net/ncurses/%{version}/ncurses-%{version}-20091212.patch.gz
+Patch6: ftp://invisible-island.net/ncurses/%{version}/ncurses-%{version}-20091219.patch.gz
+Patch7: ftp://invisible-island.net/ncurses/%{version}/ncurses-%{version}-20091226.patch.gz
+Patch8: ftp://invisible-island.net/ncurses/%{version}/ncurses-%{version}-20091227.patch.gz
+Patch9: ncurses-5.7-17.extra.patch
+Patch10: ncurses-5.7-18.src.patch
+
+
+BuildRequires: autoconf automake cygwin-libtool
+BuildRequires: cygwin-filesystem
+BuildRequires: cygwin-binutils
+BuildRequires: cygwin-gcc
+BuildRequires: cygwin-gcc-c++
+BuildRequires: cygwin
+BuildRequires: gcc
+
+
+%description
+Ncurses library for Cygwin toolchain
+
+
+%prep
+%setup -q -n ncurses-%{version}
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
+%patch5 -p1
+%patch6 -p1
+%patch7 -p1
+%patch8 -p1
+%patch9 -p2
+%patch10 -p2
+
+
+%build
+mkdir -p build-narrowc
+pushd build-narrowc
+%{_cygwin_configure} --with-libtool=%{_bindir}/%{_cygwin_target}-libtool \
+ --includedir=%{_cygwin_includedir}/ncurses \
+ --with-install-prefix=$RPM_BUILD_ROOT \
+ --without-debug --disable-relink --disable-rpath \
+ --with-ticlib --without-termlib \
+ --enable-ext-mouse --enable-sp-funcs --enable-reentrant \
+ --with-abi-version=10 --with-wrap-prefix=ncwrap_ \
+ --enable-sigwinch --enable-colorfgbg --enable-tcap-names \
+ --disable-termcap --disable-mixed-case --enable-symlinks \
+ --with-pkg-config --enable-pc-files \
+ --with-manpage-format=normal --with-manpage-aliases \
+ --with-default-terminfo-dir=/usr/share/terminfo \
+ --enable-echo
+
+sed -i -e 's%^\(LIBRARIES[ \t]*=\).*$%\1 ../lib/libncurses.la ../lib/libtic.la%' ncurses/Makefile
+make
+popd
+
+mkdir -p build-widec
+pushd build-widec
+%{_cygwin_configure} --with-libtool=%{_bindir}/%{_cygwin_target}-libtool \
+ --with-build-cflags=-D_XOPEN_SOURCE_EXTENDED \
+ --includedir=%{_cygwin_includedir}/ncursesw \
+ --with-install-prefix=$RPM_BUILD_ROOT \
+ --without-debug --disable-relink --disable-rpath \
+ --with-ticlib --without-termlib --enable-widec --enable-ext-colors \
+ --enable-ext-mouse --enable-sp-funcs --enable-reentrant \
+ --with-abi-version=10 --with-wrap-prefix=ncwrap_ \
+ --enable-sigwinch --enable-colorfgbg --enable-tcap-names \
+ --disable-termcap --disable-mixed-case --enable-symlinks \
+ --with-pkg-config --enable-pc-files \
+ --with-manpage-format=normal --with-manpage-aliases \
+ --with-default-terminfo-dir=/usr/share/terminfo \
+ --enable-echo
+
+sed -i -e 's%^\(LIBRARIES[ \t]*=\).*$%\1 ../lib/libncursesw.la ../lib/libticw.la%' ncurses/Makefile
+make
+popd
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+pushd build-narrowc
+make install.libs install.includes DESTDIR=$RPM_BUILD_ROOT
+popd
+pushd build-widec
+make install.libs install.includes DESTDIR=$RPM_BUILD_ROOT
+popd
+
+ln -s ncurses/curses.h $RPM_BUILD_ROOT%{_cygwin_includedir}/ncurses.h
+
+pushd $RPM_BUILD_ROOT/%{_cygwin_bindir}
+mv ncurses10-config ncurses5-config
+mv ncursesw10-config ncursesw5-config
+sed -i -e 's|echo "10"|echo "6"|' ncurses*5-config
+popd
+
+# We intentionally don't ship *.la files
+rm -f $RPM_BUILD_ROOT%{_cygwin_libdir}/*.la
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%files
+%defattr(-,root,root,-)
+%doc ANNOUNCE AUTHORS NEWS README
+%{_cygwin_bindir}/cygform-10.dll
+%{_cygwin_bindir}/cygformw-10.dll
+%{_cygwin_bindir}/cygmenu-10.dll
+%{_cygwin_bindir}/cygmenuw-10.dll
+%{_cygwin_bindir}/cygncurses-10.dll
+%{_cygwin_bindir}/cygncursesw-10.dll
+%{_cygwin_bindir}/cygncurses++-10.dll
+%{_cygwin_bindir}/cygncurses++w-10.dll
+%{_cygwin_bindir}/cygpanel-10.dll
+%{_cygwin_bindir}/cygpanelw-10.dll
+%{_cygwin_bindir}/cygtic-10.dll
+%{_cygwin_bindir}/cygticw-10.dll
+%{_cygwin_bindir}/ncurses5-config
+%{_cygwin_bindir}/ncursesw5-config
+%{_cygwin_includedir}/ncurses.h
+%{_cygwin_includedir}/ncurses/
+%{_cygwin_includedir}/ncursesw/
+%{_cygwin_libdir}/libform.dll.a
+%{_cygwin_libdir}/libformw.dll.a
+%{_cygwin_libdir}/libmenu.dll.a
+%{_cygwin_libdir}/libmenuw.dll.a
+%{_cygwin_libdir}/libncurses.dll.a
+%{_cygwin_libdir}/libncursesw.dll.a
+%{_cygwin_libdir}/libncurses++.dll.a
+%{_cygwin_libdir}/libncurses++w.dll.a
+%{_cygwin_libdir}/libpanel.dll.a
+%{_cygwin_libdir}/libpanelw.dll.a
+%{_cygwin_libdir}/libtic.dll.a
+%{_cygwin_libdir}/libticw.dll.a
+%{_cygwin_libdir}/pkgconfig/form.pc
+%{_cygwin_libdir}/pkgconfig/formw.pc
+%{_cygwin_libdir}/pkgconfig/menu.pc
+%{_cygwin_libdir}/pkgconfig/menuw.pc
+%{_cygwin_libdir}/pkgconfig/ncurses.pc
+%{_cygwin_libdir}/pkgconfig/ncursesw.pc
+%{_cygwin_libdir}/pkgconfig/ncurses++.pc
+%{_cygwin_libdir}/pkgconfig/ncurses++w.pc
+%{_cygwin_libdir}/pkgconfig/panel.pc
+%{_cygwin_libdir}/pkgconfig/panelw.pc
+%{_cygwin_libdir}/pkgconfig/tic.pc
+%{_cygwin_libdir}/pkgconfig/ticw.pc
+
+%changelog
+* Thu Mar 22 2012 Yaakov Selkowitz <cygwin-ports-general@lists.sourceforge.net> - 5.7-1
+- Initial RPM release.
diff --git a/ncurses-5.7-17.extra.patch b/ncurses-5.7-17.extra.patch
new file mode 100644
index 0000000..782dc74
--- /dev/null
+++ b/ncurses-5.7-17.extra.patch
@@ -0,0 +1,21 @@
+--- origsrc/ncurses-5.7/configure 2009-12-31 11:11:27.771000000 -0500
++++ src/ncurses-5.7/configure 2009-12-31 11:58:53.766000000 -0500
+@@ -10322,7 +10322,17 @@
+ LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
+
+ else
+- LIB_SUFFIX="t${LIB_SUFFIX}"
++ # when not using weak symbols but with_reentrant,
++ # add 't' to the library suffix on all platforms
++ # except cygwin, where we only do that if ALSO
++ # compiling with full thread support.
++ case "$host" in
++ *cygwin* )
++ if test "$with_pthread" = "yes" ; then
++ LIB_SUFFIX="t${LIB_SUFFIX}"
++ fi ;;
++ * ) LIB_SUFFIX="t${LIB_SUFFIX}" ;;
++ esac
+ fi
+ cat >>confdefs.h <<\EOF
+ #define USE_REENTRANT 1
diff --git a/ncurses-5.7-18.src.patch b/ncurses-5.7-18.src.patch
new file mode 100644
index 0000000..bfeb3d3
--- /dev/null
+++ b/ncurses-5.7-18.src.patch
@@ -0,0 +1,49 @@
+--- origsrc/ncurses-5.7/c++/Makefile.in 2010-01-02 09:09:29.061000000 -0500
++++ src/ncurses-5.7/c++/Makefile.in 2010-01-02 09:10:21.752000000 -0500
+@@ -161,7 +161,7 @@ LIB_OBJS = \
+ cd ../lib && $(LIBTOOL_LINK) $(CXX) $(CXXFLAGS) \
+ -o $(LIBNAME) $(LIB_OBJS:$o=.lo) \
+ -rpath $(INSTALL_PREFIX)$(libdir) \
+- -version-info $(NCURSES_MAJOR):$(NCURSES_MINOR) $(LT_UNDEF) $(SHLIB_LIST)
++ -version-info $(ABI_VERSION):0:0 $(LT_UNDEF) $(SHLIB_LIST)
+
+ OBJS_DEMO = $(MODEL)/demo$o
+
+--- origsrc/ncurses-5.7/configure.in 2010-01-02 09:09:41.557000000 -0500
++++ src/ncurses-5.7/configure.in 2010-01-02 09:10:21.763000000 -0500
+@@ -1113,7 +1113,17 @@ if test "$with_reentrant" = yes ; then
+ if test $cf_cv_weak_symbols = yes ; then
+ CF_REMOVE_LIB(LIBS,$LIBS,pthread)
+ else
+- LIB_SUFFIX="t${LIB_SUFFIX}"
++ # when not using weak symbols but with_reentrant,
++ # add 't' to the library suffix on all platforms
++ # except cygwin, where we only do that if ALSO
++ # compiling with full thread support.
++ case "$host" in
++ *cygwin* )
++ if test "$with_pthread" = "yes" ; then
++ LIB_SUFFIX="t${LIB_SUFFIX}"
++ fi ;;
++ * ) LIB_SUFFIX="t${LIB_SUFFIX}" ;;
++ esac
+ fi
+ AC_DEFINE(USE_REENTRANT)
+ CF_NCURSES_ABI_6
+--- origsrc/ncurses-5.7/mk-1st.awk 2010-01-02 09:09:41.572000000 -0500
++++ src/ncurses-5.7/mk-1st.awk 2010-01-02 09:10:21.774000000 -0500
+@@ -387,11 +387,11 @@ END {
+ end_name = lib_name;
+ printf "../lib/%s : $(%s_OBJS)\n", lib_name, OBJS
+ if ( is_ticlib() ) {
+- printf "\tcd ../lib && $(LIBTOOL_LINK) $(%s) -o %s $(%s_OBJS:$o=.lo) -rpath $(DESTDIR)$(libdir) -version-info $(NCURSES_MAJOR):$(NCURSES_MINOR) $(LT_UNDEF) $(TICS_LIST)\n", compile, lib_name, OBJS
++ printf "\tcd ../lib && $(LIBTOOL_LINK) $(%s) -o %s $(%s_OBJS:$o=.lo) -rpath $(DESTDIR)$(libdir) -version-info $(ABI_VERSION):0:0 $(LT_UNDEF) $(TICS_LIST)\n", compile, lib_name, OBJS
+ } else if ( is_termlib() ) {
+- printf "\tcd ../lib && $(LIBTOOL_LINK) $(%s) -o %s $(%s_OBJS:$o=.lo) -rpath $(DESTDIR)$(libdir) -version-info $(NCURSES_MAJOR):$(NCURSES_MINOR) $(LT_UNDEF) $(TINFO_LIST)\n", compile, lib_name, OBJS
++ printf "\tcd ../lib && $(LIBTOOL_LINK) $(%s) -o %s $(%s_OBJS:$o=.lo) -rpath $(DESTDIR)$(libdir) -version-info $(ABI_VERSION):0:0 $(LT_UNDEF) $(TINFO_LIST)\n", compile, lib_name, OBJS
+ } else {
+- printf "\tcd ../lib && $(LIBTOOL_LINK) $(%s) -o %s $(%s_OBJS:$o=.lo) -rpath $(DESTDIR)$(libdir) -version-info $(NCURSES_MAJOR):$(NCURSES_MINOR) $(LT_UNDEF) $(SHLIB_LIST)\n", compile, lib_name, OBJS
++ printf "\tcd ../lib && $(LIBTOOL_LINK) $(%s) -o %s $(%s_OBJS:$o=.lo) -rpath $(DESTDIR)$(libdir) -version-info $(ABI_VERSION):0:0 $(LT_UNDEF) $(SHLIB_LIST)\n", compile, lib_name, OBJS
+ }
+ print ""
+ print "install \\"
diff --git a/sources b/sources
new file mode 100644
index 0000000..1ed0dde
--- /dev/null
+++ b/sources
@@ -0,0 +1,10 @@
+7c840a1fa324d4e971414ae647600fc9 ncurses-5.7-20091107-patch.sh.bz2
+b9834c803a545af13bd7df2491251119 ncurses-5.7-20091114.patch.gz
+90d57d5daec733a7256000f029134689 ncurses-5.7-20091121.patch.gz
+5d4912a28ecf4dcbf7a5288e4c4701c0 ncurses-5.7-20091128.patch.gz
+7e53ee7b989e1b3b34e4ab113aad2cc2 ncurses-5.7-20091205.patch.gz
+ad6066d8efbe165265ad8523b11d5bef ncurses-5.7-20091212.patch.gz
+ca3955776c148a37915685696e77fd83 ncurses-5.7-20091219.patch.gz
+7a40fca9ae6500cb705087a2c95cf1cf ncurses-5.7-20091226.patch.gz
+5271edaf81549e31206ac63c7d9840e0 ncurses-5.7-20091227.patch.gz
+cce05daf61a64501ef6cd8da1f727ec6 ncurses-5.7.tar.gz