|
|
@ -1,26 +1,21 @@
|
|
|
|
%if 0%{?rhel} >= 10
|
|
|
|
%global revision 20210508
|
|
|
|
%bcond_with compat_libs
|
|
|
|
|
|
|
|
%bcond_with gpm
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
%bcond_without compat_libs
|
|
|
|
|
|
|
|
%bcond_without gpm
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%global revision 20240127
|
|
|
|
|
|
|
|
Summary: Ncurses support utilities
|
|
|
|
Summary: Ncurses support utilities
|
|
|
|
Name: ncurses
|
|
|
|
Name: ncurses
|
|
|
|
Version: 6.4
|
|
|
|
Version: 6.2
|
|
|
|
Release: 14.%{revision}%{?dist}
|
|
|
|
Release: 10.%{revision}%{?dist}
|
|
|
|
License: MIT-open-group
|
|
|
|
License: MIT
|
|
|
|
URL: https://invisible-island.net/ncurses/ncurses.html
|
|
|
|
URL: https://invisible-island.net/ncurses/ncurses.html
|
|
|
|
Source0: https://invisible-mirror.net/archives/ncurses/current/ncurses-%{version}-%{revision}.tgz
|
|
|
|
Source0: https://invisible-mirror.net/archives/ncurses/current/ncurses-%{version}-%{revision}.tgz
|
|
|
|
Source1: https://invisible-mirror.net/archives/ncurses/current/ncurses-%{version}-%{revision}.tgz.asc
|
|
|
|
Source1: https://invisible-mirror.net/archives/ncurses/current/ncurses-%{version}-%{revision}.tgz.asc
|
|
|
|
Source2: https://invisible-island.net/public/dickey@invisible-island.net-rsa3072.asc
|
|
|
|
Source2: https://invisible-island.net/public/dickey-invisible-island.txt
|
|
|
|
|
|
|
|
|
|
|
|
Patch8: ncurses-config.patch
|
|
|
|
Patch8: ncurses-config.patch
|
|
|
|
Patch9: ncurses-libs.patch
|
|
|
|
Patch9: ncurses-libs.patch
|
|
|
|
Patch11: ncurses-urxvt.patch
|
|
|
|
Patch11: ncurses-urxvt.patch
|
|
|
|
BuildRequires: gcc gcc-c++ gnupg2 make pkgconfig
|
|
|
|
Patch12: ncurses-kbs.patch
|
|
|
|
%{?with_gpm:BuildRequires: gpm-devel}
|
|
|
|
Patch13: ncurses-cve-2023-29491.patch
|
|
|
|
|
|
|
|
Patch14: ncurses-setuid.patch
|
|
|
|
|
|
|
|
BuildRequires: gcc gcc-c++ gpm-devel gnupg2 make pkgconfig
|
|
|
|
|
|
|
|
|
|
|
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
@ -46,7 +41,6 @@ discontinued 4.4 BSD classic curses library.
|
|
|
|
|
|
|
|
|
|
|
|
This package contains the ncurses libraries.
|
|
|
|
This package contains the ncurses libraries.
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with compat_libs}
|
|
|
|
|
|
|
|
%package compat-libs
|
|
|
|
%package compat-libs
|
|
|
|
Summary: Ncurses compatibility libraries
|
|
|
|
Summary: Ncurses compatibility libraries
|
|
|
|
Requires: %{name}-base = %{version}-%{release}
|
|
|
|
Requires: %{name}-base = %{version}-%{release}
|
|
|
@ -59,7 +53,6 @@ discontinued 4.4 BSD classic curses library.
|
|
|
|
|
|
|
|
|
|
|
|
This package contains the ABI version 5 of the ncurses libraries for
|
|
|
|
This package contains the ABI version 5 of the ncurses libraries for
|
|
|
|
compatibility.
|
|
|
|
compatibility.
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package c++-libs
|
|
|
|
%package c++-libs
|
|
|
|
Summary: Ncurses C++ bindings
|
|
|
|
Summary: Ncurses C++ bindings
|
|
|
@ -119,9 +112,12 @@ The ncurses-static package includes static libraries of the ncurses library.
|
|
|
|
|
|
|
|
|
|
|
|
%setup -q -n %{name}-%{version}-%{revision}
|
|
|
|
%setup -q -n %{name}-%{version}-%{revision}
|
|
|
|
|
|
|
|
|
|
|
|
%patch -P8 -p1 -b .config
|
|
|
|
%patch8 -p1 -b .config
|
|
|
|
%patch -P9 -p1 -b .libs
|
|
|
|
%patch9 -p1 -b .libs
|
|
|
|
%patch -P11 -p1 -b .urxvt
|
|
|
|
%patch11 -p1 -b .urxvt
|
|
|
|
|
|
|
|
%patch12 -p1 -b .kbs
|
|
|
|
|
|
|
|
%patch13 -p1 -b .cve-2023-29491
|
|
|
|
|
|
|
|
%patch14 -p1 -b .setuid
|
|
|
|
|
|
|
|
|
|
|
|
for f in ANNOUNCE; do
|
|
|
|
for f in ANNOUNCE; do
|
|
|
|
iconv -f iso8859-1 -t utf8 -o ${f}{_,} &&
|
|
|
|
iconv -f iso8859-1 -t utf8 -o ${f}{_,} &&
|
|
|
@ -135,7 +131,6 @@ common_options="\
|
|
|
|
--enable-overwrite \
|
|
|
|
--enable-overwrite \
|
|
|
|
--enable-pc-files \
|
|
|
|
--enable-pc-files \
|
|
|
|
--enable-xmc-glitch \
|
|
|
|
--enable-xmc-glitch \
|
|
|
|
--disable-root-access \
|
|
|
|
|
|
|
|
--disable-setuid-environ \
|
|
|
|
--disable-setuid-environ \
|
|
|
|
--disable-stripping \
|
|
|
|
--disable-stripping \
|
|
|
|
--disable-wattr-macros \
|
|
|
|
--disable-wattr-macros \
|
|
|
@ -147,11 +142,10 @@ common_options="\
|
|
|
|
--with-termlib=tinfo \
|
|
|
|
--with-termlib=tinfo \
|
|
|
|
--with-ticlib=tic \
|
|
|
|
--with-ticlib=tic \
|
|
|
|
--with-xterm-kbs=DEL \
|
|
|
|
--with-xterm-kbs=DEL \
|
|
|
|
%{!?with_gpm:--without-gpm} \
|
|
|
|
|
|
|
|
--without-ada"
|
|
|
|
--without-ada"
|
|
|
|
abi5_options="--with-chtype=long"
|
|
|
|
abi5_options="--with-chtype=long"
|
|
|
|
|
|
|
|
|
|
|
|
for abi in %{?with_compat_libs:5} 6; do
|
|
|
|
for abi in 5 6; do
|
|
|
|
for char in narrowc widec; do
|
|
|
|
for char in narrowc widec; do
|
|
|
|
mkdir $char$abi
|
|
|
|
mkdir $char$abi
|
|
|
|
pushd $char$abi
|
|
|
|
pushd $char$abi
|
|
|
@ -162,7 +156,7 @@ for abi in %{?with_compat_libs:5} 6; do
|
|
|
|
%configure $(
|
|
|
|
%configure $(
|
|
|
|
echo $common_options --with-abi-version=$abi
|
|
|
|
echo $common_options --with-abi-version=$abi
|
|
|
|
[ $abi = 5 ] && echo $abi5_options
|
|
|
|
[ $abi = 5 ] && echo $abi5_options
|
|
|
|
[ $char = widec ] && echo --enable-widec || echo --disable-widec
|
|
|
|
[ $char = widec ] && echo --enable-widec
|
|
|
|
[ $progs = yes ] || echo --without-progs
|
|
|
|
[ $progs = yes ] || echo --without-progs
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
@ -174,11 +168,9 @@ for abi in %{?with_compat_libs:5} 6; do
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%if %{with compat_libs}
|
|
|
|
|
|
|
|
make -C narrowc5 DESTDIR=$RPM_BUILD_ROOT install.libs
|
|
|
|
make -C narrowc5 DESTDIR=$RPM_BUILD_ROOT install.libs
|
|
|
|
rm ${RPM_BUILD_ROOT}%{_libdir}/lib{tic,tinfo}.so.5*
|
|
|
|
rm ${RPM_BUILD_ROOT}%{_libdir}/lib{tic,tinfo}.so.5*
|
|
|
|
make -C widec5 DESTDIR=$RPM_BUILD_ROOT install.libs
|
|
|
|
make -C widec5 DESTDIR=$RPM_BUILD_ROOT install.libs
|
|
|
|
%endif
|
|
|
|
|
|
|
|
make -C narrowc6 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*
|
|
|
|
rm ${RPM_BUILD_ROOT}%{_libdir}/lib{tic,tinfo}.so.6*
|
|
|
|
make -C widec6 DESTDIR=$RPM_BUILD_ROOT install.{libs,progs,data,includes,man}
|
|
|
|
make -C widec6 DESTDIR=$RPM_BUILD_ROOT install.{libs,progs,data,includes,man}
|
|
|
@ -192,7 +184,7 @@ baseterms=
|
|
|
|
|
|
|
|
|
|
|
|
# prepare -base and -term file lists
|
|
|
|
# prepare -base and -term file lists
|
|
|
|
for termname in \
|
|
|
|
for termname in \
|
|
|
|
alacritty ansi dumb foot\* linux vt100 vt100-nav vt102 vt220 vt52 \
|
|
|
|
alacritty ansi dumb linux vt100 vt100-nav vt102 vt220 vt52 \
|
|
|
|
Eterm\* aterm bterm cons25 cygwin eterm\* gnome gnome-256color hurd jfbterm \
|
|
|
|
Eterm\* aterm bterm cons25 cygwin eterm\* gnome gnome-256color hurd jfbterm \
|
|
|
|
kitty konsole konsole-256color mach\* mlterm mrxvt nsterm putty{,-256color} pcansi \
|
|
|
|
kitty konsole konsole-256color mach\* mlterm mrxvt nsterm putty{,-256color} pcansi \
|
|
|
|
rxvt{,-\*} screen{,-\*color,.[^mlp]\*,.linux,.mlterm\*,.putty{,-256color},.mrxvt} \
|
|
|
|
rxvt{,-\*} screen{,-\*color,.[^mlp]\*,.linux,.mlterm\*,.putty{,-256color},.mrxvt} \
|
|
|
@ -246,9 +238,7 @@ xz NEWS
|
|
|
|
|
|
|
|
|
|
|
|
%ldconfig_scriptlets c++-libs
|
|
|
|
%ldconfig_scriptlets c++-libs
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with compat_libs}
|
|
|
|
|
|
|
|
%ldconfig_scriptlets compat-libs
|
|
|
|
%ldconfig_scriptlets compat-libs
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%doc ANNOUNCE AUTHORS NEWS.xz README TO-DO
|
|
|
|
%doc ANNOUNCE AUTHORS NEWS.xz README TO-DO
|
|
|
@ -261,10 +251,8 @@ xz NEWS
|
|
|
|
%exclude %{_libdir}/libncurses++*.so.6*
|
|
|
|
%exclude %{_libdir}/libncurses++*.so.6*
|
|
|
|
%{_libdir}/lib*.so.6*
|
|
|
|
%{_libdir}/lib*.so.6*
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with compat_libs}
|
|
|
|
|
|
|
|
%files compat-libs
|
|
|
|
%files compat-libs
|
|
|
|
%{_libdir}/lib*.so.5*
|
|
|
|
%{_libdir}/lib*.so.5*
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files c++-libs
|
|
|
|
%files c++-libs
|
|
|
|
%{_libdir}/libncurses++*.so.6*
|
|
|
|
%{_libdir}/libncurses++*.so.6*
|
|
|
@ -298,78 +286,16 @@ xz NEWS
|
|
|
|
%{_libdir}/lib*.a
|
|
|
|
%{_libdir}/lib*.a
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 6.4-14.20240127
|
|
|
|
* Mon Aug 21 2023 Miroslav Lichvar <mlichvar@redhat.com> 6.2-10.20210508
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
- ignore TERMINFO and HOME only if setuid/setgid/capability (#2211666)
|
|
|
|
Resolves: RHEL-64018
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 6.4-13.20240127
|
|
|
|
* Mon Aug 14 2023 Miroslav Lichvar <mlichvar@redhat.com> 6.2-9.20210508
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
- fix buffer overflow on terminfo with too many capabilities (CVE-2023-29491)
|
|
|
|
|
|
|
|
- ignore TERMINFO and HOME environment variables if running as root (#2211666)
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Feb 01 2024 Miroslav Lichvar <mlichvar@redhat.com> 6.4-12.20240127
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 6.2-8.20210508
|
|
|
|
- update to 6.4-20240127
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
- disable gpm on RHEL >= 10 (RHEL-23679)
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 6.4-11.20240113
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 6.4-10.20240113
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 17 2024 Miroslav Lichvar <mlichvar@redhat.com> 6.4-9.20240113
|
|
|
|
|
|
|
|
- update to 6.4-20240113
|
|
|
|
|
|
|
|
- disable compat libs on RHEL >= 10
|
|
|
|
|
|
|
|
- drop kbs patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Oct 04 2023 Miroslav Lichvar <mlichvar@redhat.com> 6.4-8.20231001
|
|
|
|
|
|
|
|
- update to 6.4-20231001
|
|
|
|
|
|
|
|
- convert license tag to SPDX
|
|
|
|
|
|
|
|
- switch from patchX to patch -PX
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Aug 22 2023 Miroslav Lichvar <mlichvar@redhat.com> 6.4-7.20230520
|
|
|
|
|
|
|
|
- ignore TERMINFO and HOME only if setuid/setgid/capability
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 6.4-6.20230520
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jun 27 2023 Debarshi Ray <rishi@fedoraproject.org> 6.4-5.20230520
|
|
|
|
|
|
|
|
- move foot entries to -base (#2217982)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon May 22 2023 Miroslav Lichvar <mlichvar@redhat.com> 6.4-4.20230520
|
|
|
|
|
|
|
|
- update to 6.4-20230520
|
|
|
|
|
|
|
|
- build with options disabling root file access and environment
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 6.4-3.20230114
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jan 17 2023 Miroslav Lichvar <mlichvar@redhat.com> 6.4-2.20230114
|
|
|
|
|
|
|
|
- update to 6.4-20230114 (#2160276)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jan 09 2023 Miroslav Lichvar <mlichvar@redhat.com> 6.4-1.20230107
|
|
|
|
|
|
|
|
- update to 6.4-20230107
|
|
|
|
|
|
|
|
- restore compat-libs (ABI 5) subpackage (#2129865)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Dec 16 2022 Miroslav Lichvar <mlichvar@redhat.com> 6.3-5.20221126
|
|
|
|
|
|
|
|
- revert "enable symbol versioning for dynamic linker (#1875587)"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Dec 01 2022 Miroslav Lichvar <mlichvar@redhat.com> 6.3-4.20221126
|
|
|
|
|
|
|
|
- update to 6.3-20221126
|
|
|
|
|
|
|
|
- enable symbol versioning for dynamic linker (#1875587)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 6.3-3.20220501
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed May 04 2022 Miroslav Lichvar <mlichvar@redhat.com> 6.3-2.20220501
|
|
|
|
|
|
|
|
- update to 6.3-20220501
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Apr 19 2022 Miroslav Lichvar <mlichvar@redhat.com> 6.3-1.20220416
|
|
|
|
|
|
|
|
- update to 6.3-20220416 (CVE-2022-29458)
|
|
|
|
|
|
|
|
- drop compat-libs (ABI 5) subpackage
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 6.2-9.20210508
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 6.2-8.20210508
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon May 10 2021 Miroslav Lichvar <mlichvar@redhat.com> 6.2-7.20210508
|
|
|
|
* Mon May 10 2021 Miroslav Lichvar <mlichvar@redhat.com> 6.2-7.20210508
|
|
|
|
- update to 6.2-20210508
|
|
|
|
- update to 6.2-20210508
|
|
|
@ -377,8 +303,8 @@ xz NEWS
|
|
|
|
* Tue May 04 2021 Miroslav Lichvar <mlichvar@redhat.com> 6.2-6.20210501
|
|
|
|
* Tue May 04 2021 Miroslav Lichvar <mlichvar@redhat.com> 6.2-6.20210501
|
|
|
|
- update to 6.2-20210501
|
|
|
|
- update to 6.2-20210501
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Mar 11 2021 Miroslav Lichvar <mlichvar@redhat.com> 6.2-5.20210306
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 6.2-5.20200222
|
|
|
|
- update to 6.2-20210306
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 6.2-4.20200222
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 6.2-4.20200222
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|