From: kloczek Date: Thu, 7 Mar 2002 18:11:01 +0000 (+0000) Subject: - added ac_hack path (dirty hack directly in configure script with remove X-Git-Tag: ncurses-5_2-23~1 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fcompat-ncurses5.git;a=commitdiff_plain;h=a52a33b5e8bcada085ffcb1050116f0dad369fc6 - added ac_hack path (dirty hack directly in configure script with remove -L$(libdir) from linking parameters and this is hack because for allow regenerate ac files must be first rewrited ac suit :>), - added --witout cxx bcond handling for not produce C++ bindings subpackages. NOTE: now ncurses builded --without cxx can produce correct result on system with uCibc instead glibc. Changed files: ncurses.spec -> 1.87 --- diff --git a/ncurses.spec b/ncurses.spec index d88b554..89465df 100644 --- a/ncurses.spec +++ b/ncurses.spec @@ -1,3 +1,7 @@ +# --without cxx - do not build C++ ncurses bindings and demo programs +# (use this is neccessary for build ncurses linked with +# uClibc). + Summary: curses terminal control library Summary(de): curses-Terminal-Control-Library Summary(es): Biblioteca de control de terminal curses @@ -21,9 +25,10 @@ Patch4: %{name}-xterm-color.patch Patch5: %{name}-xterm_hpa_fix.patch Patch6: %{name}-rxvt.patch Patch7: %{name}-meta.patch +Patch8: %{name}-ac_hack.patch BuildRequires: sharutils BuildRequires: sed -BuildRequires: libstdc++-devel +%{!?_without_cxx:BuildRequires: libstdc++-devel} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) Obsoletes: libncurses5 @@ -206,6 +211,7 @@ sh %{SOURCE2} %patch5 -p1 %patch6 -p1 %patch7 -p1 +%patch8 -p1 %build CFLAGS="%{rpmcflags} -DPURE_TERMINFO" @@ -214,6 +220,8 @@ CFLAGS="%{rpmcflags} -DPURE_TERMINFO" --with-normal \ --with-shared \ --without-ada \ + --with%{?_without_cxx:out}-cxx \ + --with%{?_without_cxx:out}-cxx-binding \ --without-profile \ --without-debug \ --with-termlib \ @@ -393,6 +401,7 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/libpanel.a %{_libdir}/libmenu.a +%if %{!?_without_cxx:1} %files c++-devel %defattr(644,root,root,755) %doc c++/{demo.cc,README-first,NEWS,PROBLEMS}.gz @@ -407,3 +416,4 @@ rm -rf $RPM_BUILD_ROOT %files c++-static %defattr(644,root,root,755) %{_libdir}/libncurses++.a +%endif