Projects
home:pandora:RobinOS23
ncurses
_service:download_src_package:ncurses.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:download_src_package:ncurses.spec of Package ncurses
%define anolis_release 3 Name: ncurses Version: 6.3 Release: %{anolis_release}%{?dist} Summary: Ncurses support utilities License: MIT URL: https://invisible-island.net/ncurses/ncurses.html Source0: https://invisible-mirror.net/archives/ncurses/ncurses-%{version}.tar.gz Patch0: 0001-revert-GCC_PRINTF-and-GCC_SCANF-to-workaround-some-p.patch BuildRequires: gcc gcc-c++ gpm-devel gnupg2 make pkgconfig Requires: %{name}-libs = %{version}-%{release} %description The curses library routines are a terminal-independent method of updating character screens with reasonable optimization. The ncurses (new curses) library is a freely distributable replacement for the discontinued 4.4 BSD classic curses library. This package contains support utilities, including a terminfo compiler tic, a decompiler infocmp, clear, tput, tset, and a termcap conversion tool captoinfo. %package doc Summary: Documentation files for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc The %{name}-doc package contains documentation files for %{name}. %package libs Summary: Ncurses libraries Requires: %{name}-base = %{version}-%{release} %description libs The curses library routines are a terminal-independent method of updating character screens with reasonable optimization. The ncurses (new curses) library is a freely distributable replacement for the discontinued 4.4 BSD classic curses library. This package contains the ncurses libraries. %package compat-libs Summary: Ncurses compatibility libraries Requires: %{name}-base = %{version}-%{release} %description compat-libs The curses library routines are a terminal-independent method of updating character screens with reasonable optimization. The ncurses (new curses) library is a freely distributable replacement for the discontinued 4.4 BSD classic curses library. This package contains the ABI version 5 of the ncurses libraries for compatibility. %package c++-libs Summary: Ncurses C++ bindings Requires: %{name}-libs = %{version}-%{release} %description c++-libs The curses library routines are a terminal-independent method of updating character screens with reasonable optimization. The ncurses (new curses) library is a freely distributable replacement for the discontinued 4.4 BSD classic curses library. This package contains C++ bindings of the ncurses ABI version 6 libraries. %package base Summary: Descriptions of common terminals BuildArch: noarch %description base This package contains descriptions of common terminals. Other terminal descriptions are included in the ncurses-term package. %package term Summary: Terminal descriptions Requires: %{name}-base = %{version}-%{release} BuildArch: noarch %description term This package contains additional terminal descriptions not found in the ncurses-base package. %package devel Summary: Development files for the ncurses library Requires: %{name}-libs = %{version}-%{release} Requires: %{name}-c++-libs = %{version}-%{release} Requires: pkgconfig %description devel The header files and libraries for developing applications that use the ncurses terminal handling library. Install the ncurses-devel package if you want to develop applications which will use ncurses. %package static Summary: Static libraries for the ncurses library Requires: %{name}-devel = %{version}-%{release} %description static The ncurses-static package includes static libraries of the ncurses library. %prep %autosetup -p1 %build common_options="\ --enable-colorfgbg \ --enable-hard-tabs \ --enable-overwrite \ --enable-pc-files \ --enable-xmc-glitch \ --disable-stripping \ --disable-wattr-macros \ --with-cxx-shared \ --with-ospeed=unsigned \ --with-pkg-config-libdir=%{_libdir}/pkgconfig \ --with-shared \ --with-terminfo-dirs=%{_sysconfdir}/terminfo:%{_datadir}/terminfo \ --with-termlib=tinfo \ --with-ticlib=tic \ --with-xterm-kbs=DEL \ --without-ada" abi5_options="--with-chtype=long" for abi in 5 6; do for char in narrowc widec; do mkdir $char$abi pushd $char$abi ln -s ../configure . [ $abi = 6 -a $char = widec ] && progs=yes || progs=no %configure $( echo $common_options --with-abi-version=$abi [ $abi = 5 ] && echo $abi5_options [ $char = widec ] && echo --enable-widec [ $progs = yes ] || echo --without-progs ) %make_build libs [ $progs = yes ] && %make_build -C progs popd done done %install make -C narrowc5 DESTDIR=$RPM_BUILD_ROOT install.libs rm ${RPM_BUILD_ROOT}%{_libdir}/lib{tic,tinfo}.so.5* make -C widec5 DESTDIR=$RPM_BUILD_ROOT install.libs make -C narrowc6 DESTDIR=$RPM_BUILD_ROOT install.libs rm ${RPM_BUILD_ROOT}%{_libdir}/lib{tic,tinfo}.so.6* make -C widec6 DESTDIR=$RPM_BUILD_ROOT install.{libs,progs,data,includes,man} chmod 755 ${RPM_BUILD_ROOT}%{_libdir}/lib*.so.*.* chmod 644 ${RPM_BUILD_ROOT}%{_libdir}/lib*.a mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/terminfo baseterms= for termname in \ alacritty ansi dumb linux vt100 vt100-nav vt102 vt220 vt52 \ Eterm\* aterm bterm cons25 cygwin eterm\* gnome gnome-256color hurd jfbterm \ kitty konsole konsole-256color mach\* mlterm mrxvt nsterm putty{,-256color} pcansi \ rxvt{,-\*} screen{,-\*color,.[^mlp]\*,.linux,.mlterm\*,.putty{,-256color},.mrxvt} \ st{,-\*color} sun teraterm teraterm2.3 tmux{,-\*} vte vte-256color vwmterm \ wsvt25\* xfce xterm xterm-\* do for i in $RPM_BUILD_ROOT%{_datadir}/terminfo/?/$termname; do for t in $(find $RPM_BUILD_ROOT%{_datadir}/terminfo -samefile $i); do baseterms="$baseterms $(basename $t)" done done done 2> /dev/null for t in $baseterms; do echo "%dir %{_datadir}/terminfo/${t::1}" echo %{_datadir}/terminfo/${t::1}/$t done 2> /dev/null | sort -u > terms.base find $RPM_BUILD_ROOT%{_datadir}/terminfo \! -type d | \ sed "s|^$RPM_BUILD_ROOT||" | while read t do echo "%dir $(dirname $t)" echo $t done 2> /dev/null | sort -u | comm -2 -3 - terms.base > terms.term mkdir $RPM_BUILD_ROOT%{_includedir}/ncurses{,w} for l in $RPM_BUILD_ROOT%{_includedir}/*.h; do ln -s ../$(basename $l) $RPM_BUILD_ROOT%{_includedir}/ncurses ln -s ../$(basename $l) $RPM_BUILD_ROOT%{_includedir}/ncursesw done # don't require -ltinfo when linking with --no-add-needed for l in $RPM_BUILD_ROOT%{_libdir}/libncurses{,w}.so; do soname=$(basename $(readlink $l)) rm -f $l echo "INPUT($soname -ltinfo)" > $l done rm -f $RPM_BUILD_ROOT%{_libdir}/libcurses{,w}.so echo "INPUT(-lncurses)" > $RPM_BUILD_ROOT%{_libdir}/libcurses.so echo "INPUT(-lncursesw)" > $RPM_BUILD_ROOT%{_libdir}/libcursesw.so echo "INPUT(-ltinfo)" > $RPM_BUILD_ROOT%{_libdir}/libtermcap.so rm -f $RPM_BUILD_ROOT%{_bindir}/ncurses*5-config rm -f $RPM_BUILD_ROOT%{_libdir}/terminfo rm -f $RPM_BUILD_ROOT%{_libdir}/pkgconfig/*_g.pc xz NEWS %ldconfig_scriptlets libs %ldconfig_scriptlets c++-libs %ldconfig_scriptlets compat-libs %generate_compatibility_deps %files %{_bindir}/[cirt]* %{abidir}/[cirt]*-option.list %{_mandir}/man1/[cirt]* %{_mandir}/man5/* %{_mandir}/man7/* %files doc %doc ANNOUNCE AUTHORS NEWS.xz README TO-DO %files libs %dir %{abidir} %exclude %{_libdir}/libncurses++*.so.6* %{_libdir}/lib*.so.6* %{abidir}/lib*.dump %files compat-libs %{_libdir}/lib*.so.5* %files c++-libs %{_libdir}/libncurses++*.so.6* %files base -f terms.base %license COPYING %doc README %dir %{_sysconfdir}/terminfo %{_datadir}/tabset %dir %{_datadir}/terminfo %files term -f terms.term %files devel %doc doc/html/hackguide.html %doc doc/html/ncurses-intro.html %doc c++/README* %doc misc/ncurses.supp %{_bindir}/ncurses*-config %{abidir}/ncurses*-config-option.list %{_libdir}/lib*.so %{_libdir}/pkgconfig/*.pc %dir %{_includedir}/ncurses %dir %{_includedir}/ncursesw %{_includedir}/ncurses/*.h %{_includedir}/ncursesw/*.h %{_includedir}/*.h %{_mandir}/man1/ncurses*-config* %{_mandir}/man3/* %files static %{_libdir}/lib*.a %changelog * Tue Oct 18 2022 mgb01105731 <mgb01105731@alibaba-inc.com> - 6.3-3 - optimise spec file & add doc package * Wed Mar 16 2022 forrest_ly <flin@linux.alibaba.com> - 6.3-2 - revert GCC_PRINTF and GCC_SCANF to workaround some pkg build * Fri Mar 11 2022 forrest_ly <flin@linux.alibaba.com> - 6.3-1 - Init for Anolis OS 23
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2