forked from pool/ncurses
This commit is contained in:
parent
766bec63d9
commit
beaf19d742
@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Sep 4 11:55:11 CEST 2008 - werner@suse.de
|
||||||
|
|
||||||
|
- Correct order of include paths in ncurses6 case
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Sep 1 14:44:38 CEST 2008 - werner@suse.de
|
||||||
|
|
||||||
|
- Provide also termcap.h in /usr/include
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Aug 28 16:00:36 CEST 2008 - ro@suse.de
|
Thu Aug 28 16:00:36 CEST 2008 - ro@suse.de
|
||||||
|
|
||||||
|
16
ncurses.spec
16
ncurses.spec
@ -27,7 +27,7 @@ License: X11/MIT
|
|||||||
Group: System/Base
|
Group: System/Base
|
||||||
AutoReqProv: on
|
AutoReqProv: on
|
||||||
Version: 5.6
|
Version: 5.6
|
||||||
Release: 87
|
Release: 88
|
||||||
Summary: New curses Libraries
|
Summary: New curses Libraries
|
||||||
Url: http://invisible-island.net/ncurses/ncurses.html
|
Url: http://invisible-island.net/ncurses/ncurses.html
|
||||||
Source0: ncurses-5.6.tar.bz2
|
Source0: ncurses-5.6.tar.bz2
|
||||||
@ -199,7 +199,11 @@ License: X11/MIT
|
|||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Provides: ncurses:%{_incdir}/ncurses.h
|
Provides: ncurses:%{_incdir}/ncurses.h
|
||||||
Requires: ncurses = %{version}-%{release}, %{_bindir}/tack
|
Requires: ncurses = %{version}-%{release}, %{_bindir}/tack
|
||||||
|
%if %abi >= 6
|
||||||
|
Requires: libncurses6
|
||||||
|
%else
|
||||||
Requires: libncurses5 libncurses6
|
Requires: libncurses5 libncurses6
|
||||||
|
%endif
|
||||||
AutoReqProv: on
|
AutoReqProv: on
|
||||||
|
|
||||||
%description -n ncurses-devel
|
%description -n ncurses-devel
|
||||||
@ -381,7 +385,7 @@ ln -sf tack-* tack
|
|||||||
lib=%{_libdir}
|
lib=%{_libdir}
|
||||||
inc=%{_incdir}/ncurses
|
inc=%{_incdir}/ncurses
|
||||||
make install DESTDIR=%{root} includedir=${inc} libdir=${lib}
|
make install DESTDIR=%{root} includedir=${inc} libdir=${lib}
|
||||||
ln -sf ${inc##*/}/{curses,ncurses,term}.h %{root}${inc%%/*}/
|
ln -sf ${inc##*/}/{curses,ncurses,term,termcap}.h %{root}${inc%%/*}/
|
||||||
sh %{S:6} --cflags "-I${inc}" --libs "-lncurses" %{root}%{_bindir}/ncurses5-config
|
sh %{S:6} --cflags "-I${inc}" --libs "-lncurses" %{root}%{_bindir}/ncurses5-config
|
||||||
#
|
#
|
||||||
# Check for tack program on base of above ncurses
|
# Check for tack program on base of above ncurses
|
||||||
@ -404,7 +408,7 @@ ln -sf tack-* tack
|
|||||||
inc=%{_incdir}/ncurses6/ncurses
|
inc=%{_incdir}/ncurses6/ncurses
|
||||||
make install.libs install.includes DESTDIR=%{root} includedir=${inc} libdir=${lib}
|
make install.libs install.includes DESTDIR=%{root} includedir=${inc} libdir=${lib}
|
||||||
ln -sf ${inc##*/}/{curses,ncurses,term}.h %{root}${inc%%/*}/
|
ln -sf ${inc##*/}/{curses,ncurses,term}.h %{root}${inc%%/*}/
|
||||||
sh %{S:6} --cflags "-I${inc%%/*} -I${inc}" --libs "-L${lib} -lncurses" %{root}%{_bindir}/ncurses6-config
|
sh %{S:6} --cflags "-I${inc} -I${inc%%/*}" --libs "-L${lib} -lncurses" %{root}%{_bindir}/ncurses6-config
|
||||||
%endif
|
%endif
|
||||||
#
|
#
|
||||||
# Now use --enable-widec for UTF8/wide character support.
|
# Now use --enable-widec for UTF8/wide character support.
|
||||||
@ -430,7 +434,7 @@ ln -sf tack-* tack
|
|||||||
lib=%{_libdir}/ncurses6
|
lib=%{_libdir}/ncurses6
|
||||||
inc=%{_incdir}/ncurses6/ncursesw
|
inc=%{_incdir}/ncurses6/ncursesw
|
||||||
make install.libs install.includes DESTDIR=%{root} includedir=${inc} libdir=${lib}
|
make install.libs install.includes DESTDIR=%{root} includedir=${inc} libdir=${lib}
|
||||||
sh %{S:6} --cflags "-I${inc%%/*} -I${inc}" --libs "-L${lib} -lncursesw" %{root}%{_bindir}/ncursesw6-config
|
sh %{S:6} --cflags "-I${inc} -I${inc%%/*}" --libs "-L${lib} -lncursesw" %{root}%{_bindir}/ncursesw6-config
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -633,6 +637,10 @@ ln -sf tack-* tack
|
|||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Sep 04 2008 werner@suse.de
|
||||||
|
- Correct order of include paths in ncurses6 case
|
||||||
|
* Mon Sep 01 2008 werner@suse.de
|
||||||
|
- Provide also termcap.h in /usr/include
|
||||||
* Thu Aug 28 2008 ro@suse.de
|
* Thu Aug 28 2008 ro@suse.de
|
||||||
- require libncurses5 _and_ libncurses6 from ncurses-devel
|
- require libncurses5 _and_ libncurses6 from ncurses-devel
|
||||||
(avoid having a version with only static libs in the
|
(avoid having a version with only static libs in the
|
||||||
|
Loading…
Reference in New Issue
Block a user