--- ncurses.spec.orig 2006-05-23 23:26:12 +0400 +++ ncurses.spec.orig 2006-05-24 00:25:17 +0400 @@ -106,11 +106,18 @@ Requires: lib%name++-devel = 0:%version-%release, lib%name-devel-static = 0:%version-%release # UTF-8 extentions +%if_with utf8 %package -n lib%{name}w Summary: A CRT screen handling and optimization libraries with wide character support Group: System/Libraries PreReq: libtinfo = 0:%version-%release +%package -n lib%{name}w-devel +Summary: Development files for applications which use %name (widechar version) +Group: Development/C +Requires: lib%{name}w = 0:%version-%release, lib%name-devel = 0:%version-%release +%endif + %description The curses library routines are a terminal-independent method of updating character screens with reasonable optimization. The %name (new curses) @@ -230,6 +237,7 @@ applications that use c++ interface to ncurses routines. #UTF8 extentions +%if_with utf8 %description -n lib%{name}w The curses library routines are a terminal-independent method of updating character screens with reasonable optimization. The %name (new curses) @@ -237,6 +245,16 @@ classic curses library. This package contains a %name library with wide character support. +%description -n lib%{name}w-devel +The curses library routines are a terminal-independent method of updating +character screens with reasonable optimization. The %name (new curses) +library is a freely distributable replacement for the discontinued 4.4BSD +classic curses library. + +This package contains include files for developing applications that use +the %name CRT screen handling and optimization package (widechar version). +%endif + %prep %setup -q -a100 @@ -396,6 +414,7 @@ DESTDIR=$RPM_BUILD_ROOT \ includedir=%_includedir/%name +%__ln_s %name $RPM_BUILD_ROOT%_includedir/%{name}w %if_with cxx # Install c++ shared library. %__install -p -m644 lib/libncursesw++.so.%version $RPM_BUILD_ROOT%_libdir/ @@ -551,6 +570,9 @@ %files -n lib%name-devel %_libdir/lib*.so +%if_with utf8 +%exclude %_libdir/lib*[musl]w.so +%endif # with_utf8 %exclude %_libdir/libtinfo*.so %if_with cxx %exclude %_libdir/libncurses++*.so @@ -565,6 +587,9 @@ %exclude %_includedir/%name/cursslk.h %exclude %_includedir/%name/etip.h %endif # with_cxx +%if_with utf8 +%exclude %_includedir/%{name}w +%endif # with_utf8 %_man3dir/* %dir %_docdir/%name-%version %_docdir/%name-%version/[a-z]* @@ -597,6 +622,10 @@ %if_with utf8 %files -n lib%{name}w %_libdir/lib*[musl]w.so.* + +%files -n lib%{name}w-devel +%_libdir/lib*[musl]w.so +%_includedir/%{name}w %endif # with_utf8 %changelog