2006-12-18 23:16:54 +00:00
|
|
|
#
|
2011-05-27 09:30:38 +00:00
|
|
|
# spec file for package less
|
2006-12-18 23:16:54 +00:00
|
|
|
#
|
2021-04-26 09:46:23 +00:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2006-12-18 23:16:54 +00:00
|
|
|
#
|
2008-08-28 21:35:03 +00:00
|
|
|
# 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.
|
|
|
|
|
2019-09-23 11:22:32 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2006-12-18 23:16:54 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: less
|
2021-06-18 08:12:34 +00:00
|
|
|
Version: 590
|
2011-11-30 13:12:14 +00:00
|
|
|
Release: 0
|
2006-12-18 23:16:54 +00:00
|
|
|
Summary: Text File Browser and Pager Similar to more
|
2021-04-26 09:46:23 +00:00
|
|
|
License: BSD-2-Clause OR GPL-3.0-or-later
|
2012-09-25 07:52:19 +00:00
|
|
|
Group: Productivity/Text/Utilities
|
2021-04-26 09:46:23 +00:00
|
|
|
URL: https://www.greenwoodsoftware.com/less/
|
2021-04-29 07:40:43 +00:00
|
|
|
Source: https://www.greenwoodsoftware.com/less/less-%{version}.tar.gz
|
2014-07-29 14:19:56 +00:00
|
|
|
Source1: README.SUSE
|
2006-12-18 23:16:54 +00:00
|
|
|
Source2: lessopen.sh
|
|
|
|
Source3: lessclose.sh
|
|
|
|
Source4: lesskey.src
|
2021-04-29 07:40:43 +00:00
|
|
|
Source5: https://www.greenwoodsoftware.com/less/less-%{version}.sig
|
|
|
|
Source6: https://www.greenwoodsoftware.com/less/pubkey.asc#/%{name}.keyring
|
2018-04-29 11:37:53 +00:00
|
|
|
Patch0: less-429-shell.patch
|
|
|
|
Patch2: less-429-more.patch
|
2014-11-24 16:45:54 +00:00
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: ncurses-devel
|
2019-09-23 11:22:32 +00:00
|
|
|
BuildRequires: pkgconfig
|
2014-11-24 16:45:54 +00:00
|
|
|
Requires: file
|
2006-12-18 23:16:54 +00:00
|
|
|
|
|
|
|
%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
|
2009-07-27 21:05:14 +00:00
|
|
|
%setup -q
|
2020-05-21 07:30:43 +00:00
|
|
|
%patch0 -p1
|
2018-04-29 11:37:53 +00:00
|
|
|
%patch2
|
2006-12-18 23:16:54 +00:00
|
|
|
#
|
|
|
|
# the ./configure script is not writable for the normal user
|
|
|
|
# rather fix permissions for all files
|
|
|
|
chmod u+w *
|
|
|
|
#
|
2014-11-24 16:45:54 +00:00
|
|
|
cp %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} .
|
2006-12-18 23:16:54 +00:00
|
|
|
|
|
|
|
%build
|
2008-07-20 22:40:38 +00:00
|
|
|
autoreconf -fiv
|
2015-11-02 13:04:26 +00:00
|
|
|
export CFLAGS="%{optflags} -fPIE"
|
2014-12-19 14:58:57 +00:00
|
|
|
export LDFLAGS="-pie"
|
2021-06-18 07:57:40 +00:00
|
|
|
%configure
|
2006-12-18 23:16:54 +00:00
|
|
|
#
|
|
|
|
# regenerate help.c because less.hlp was patched
|
2018-04-29 11:37:53 +00:00
|
|
|
./mkhelp.pl <less.hlp >help.c
|
2006-12-18 23:16:54 +00:00
|
|
|
#
|
|
|
|
# build less
|
2020-04-16 20:05:28 +00:00
|
|
|
%make_build
|
2006-12-18 23:16:54 +00:00
|
|
|
|
|
|
|
%install
|
2014-11-24 16:45:54 +00:00
|
|
|
%make_install
|
2006-12-18 23:16:54 +00:00
|
|
|
#
|
|
|
|
# lesskey
|
2019-12-18 12:59:46 +00:00
|
|
|
install -m 755 -d %{buildroot}/%{_distconfdir}
|
|
|
|
install -m 644 lesskey.src %{buildroot}/%{_distconfdir}/lesskey
|
|
|
|
%{buildroot}%{_bindir}/lesskey -o %{buildroot}%{_distconfdir}/lesskey.bin %{buildroot}%{_distconfdir}/lesskey
|
2006-12-18 23:16:54 +00:00
|
|
|
#
|
|
|
|
# preprocessor
|
2014-11-24 16:45:54 +00:00
|
|
|
install -m 755 lessopen.sh lessclose.sh %{buildroot}/%{_bindir}
|
|
|
|
chmod -x LICENSE COPYING NEWS README.SUSE
|
2006-12-18 23:16:54 +00:00
|
|
|
|
|
|
|
%files
|
2018-04-03 12:30:25 +00:00
|
|
|
%license LICENSE COPYING
|
|
|
|
%doc NEWS README.SUSE
|
2015-11-02 13:04:26 +00:00
|
|
|
%{_mandir}/*/*
|
2019-12-18 12:59:46 +00:00
|
|
|
%{_distconfdir}/*
|
2008-07-20 22:40:38 +00:00
|
|
|
%{_bindir}/*
|
2007-12-20 15:43:31 +00:00
|
|
|
|
2007-03-26 23:41:15 +00:00
|
|
|
%changelog
|