代码拉取完成,页面将自动刷新
Name: less
Version: 590
Release: 6
Summary: Less is a pager that displays text files.
License: GPLv3+ or BSD
URL: http://www.greenwoodsoftware.com/less
Source0: http://www.greenwoodsoftware.com/less/%{name}-%{version}.tar.gz
Patch0: less-394-time.patch
Patch1: less-475-fsync.patch
Patch2: backport-End-OSC8-hyperlink-on-invalid-embedded-escape-sequen.patch
Patch3: backport-Shell-quote-filenames-when-invoking-LESSCLOSE.patch
Patch4: backport-Undelete-usleep-nanosleep-ttyname-poll.patch
Patch5: backport-Some-constifying.patch
Patch6: backport-Implement-osc8_open.patch
Patch7: backport-CVE-2024-32487.patch
Patch8: backport-Do-not-assume-PATH_MAX-is-defined.patch
BuildRequires: git gcc make ncurses-devel autoconf automake libtool
%description
Less is a pager. A pager is a program that displays text files.
Other pagers commonly in use are more and pg. Pagers are often
used in command-line environments like the Unix shell and the MS-DOS
command prompt to display files.
Less is not an editor. You can't change the contents of the file
you're viewing. Less is not a windowing system. It doesn't have
fancy scroll bars or other GUI (graphical user interface) elements.
%package_help
%prep
%autosetup -n %{name}-%{version} -S git -p1
%build
rm -f ./configure
autoreconf -ivf
%configure
%make_build CFLAGS="%{optflags} -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
%install
%make_install
%files
%defattr(-,root,root)
%license LICENSE COPYING
%{_bindir}/less*
%files help
%doc README NEWS INSTALL
%{_mandir}/man1/*
%changelog
* Fri Jun 21 2024 baiguo <baiguo@kylinos.cn> - 590-6
- Do not assume PATH_MAX is defined
* Mon Apr 22 2024 wangjiang <wangjiang37@h-partners.com> - 590-5
- fix CVE-2024-32487
* Tue Apr 02 2024 yinyongkang <yinyongkang@kylinos.cn> - 590-4
- Undelete usleep,nanosleep,ttyname,poll
* Mon Feb 19 2024 liweigang <izmirvii@gmail.com> - 590-3
- fix CVE-2022-48624
* Thu Feb 16 2023 hongjinghao <hongjinghao@huawei.com> - 590-2
- fix CVE-2022-46663
* Fri Sep 24 2021 fuanan <fuanan3@huawei.com> - 590-1
- update version to 590
* Fri May 28 2021 fuanan <fuanan3@huawei.com> - 551-6
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:[add] backport patches from upstream
Minor memory leak.
Remove unnecessary and incorrectly used variable same_pos_bell.
Fix erroneous EOF calculation when F command is interrupted.
Create only one ifile when a file is opened under different names.
Remove extraneous frees, associated with removed call to lrealpath.
Fix crash when call set_ifilename with a pointer to the name that is
Remove unnecessary call to pshift in pappend.
Reset horizontal shift when opening a new file.
Protect from buffer overrun.
Make histpattern return negative value to indicate error.
Lesskey: don't translate ctrl-K in an EXTRA string.
Ignore SIGTSTP in secure mode.
Fix "Tag not found" error while looking for a tag's location
Fix minor memory leak with input preprocessor.
* Wed Mar 17 2021 wangchen<wangchen137@huawei.com> - 551-5
- Prevent double free of namelogfile
* Tue Aug 18 2020 smileknife<jackshan2010@aliyun.com> - 551-4
- update release for rebuilding
* Thu Jan 09 2020 openEuler Buildteam <buildteam@openeuler.org> - 551-3
- Delete unneeded files
* Fri Sep 27 2019 yefei <yefei25@huawei.com> - 551-2
- Type:enhancement
- ID:NA
- SUG:NA
- DESC: delete irrelevant comment
* Tue Sep 10 2019 openEuler Buildteam <buildteam@openeuler.org> - 551-1
- Package Init
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。