Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:GA
less
less.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File less.spec of Package less
# # spec file for package less # # Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: less BuildRequires: automake BuildRequires: ncurses-devel Obsoletes: jless Provides: jless Provides: normal-less Requires: file # lessopen.sh uses which Requires: which Version: 458 Release: 0 Summary: Text File Browser and Pager Similar to more License: BSD-2-Clause OR GPL-3.0-or-later Group: Productivity/Text/Utilities URL: http://www.greenwoodsoftware.com/less/ Source: http://www.greenwoodsoftware.com/less/less-%{version}.tar.gz Source1: README.SUSE Source2: lessopen.sh Source3: lessclose.sh Source4: lesskey.src Patch22: %{name}-429-strict_aliasing.patch Patch24: %{name}-429-terminate.patch Patch25: %{name}-429-widechars.patch Patch26: %{name}-429-shell.patch Patch27: %{name}-429-save_line_position.patch Patch28: %{name}-429-more.patch Patch29: CVE-2014-9488.patch # PATCH-FIX-UPSTREAM danilo.spinella@suse.com bsc#1200738 # Fix Startup terminal initialization Patch30: bsc1200738.patch Patch31: CVE-2022-48624.patch # PATCH-FIX-UPSTREAM danilo.spinella@suse.com bsc#1222849 # mishandling of \n character in paths when LESSOPEN is set leads to OS command execution Patch32: CVE-2024-32487.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description less is a text file browser and pager similar to more. It allows backward as well as forward movement within a file. Also, less does not have to read the entire input file before starting. It is possible to start an editor at any time from within less. %prep %setup -q %patch22 %patch24 %patch25 %patch26 %patch27 %patch28 %patch29 -p1 %patch30 -p1 %patch31 -p1 %patch32 -p1 # # the ./configure script is not writable for the normal user # rather fix permissions for all files chmod u+w * # cp %{S:1} %{S:2} %{S:3} %{S:4} . %build autoreconf -fiv %configure --with-pic # # regenerate help.c because less.hlp was patched make mkhelp ./mkhelp <less.hlp >help.c # # build less make %{?_smp_mflags} %install make DESTDIR=$RPM_BUILD_ROOT/ install # # lesskey install -m 755 -d $RPM_BUILD_ROOT/%{_sysconfdir} install -m 644 lesskey.src $RPM_BUILD_ROOT/%{_sysconfdir}/lesskey $RPM_BUILD_ROOT%{_bindir}/lesskey -o $RPM_BUILD_ROOT%{_sysconfdir}/lesskey.bin $RPM_BUILD_ROOT%{_sysconfdir}/lesskey # # preprocessor install -m 755 lessopen.sh lessclose.sh $RPM_BUILD_ROOT/%{_bindir} %__chmod -x LICENSE COPYING NEWS README.SUSE %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-, root, root) %doc LICENSE COPYING NEWS README.SUSE %doc %{_mandir}/*/* %config %{_sysconfdir}/* %{_bindir}/* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor