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
|
|
|
#
|
2014-07-29 14:19:56 +00:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
2006-12-18 23:16:54 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: less
|
2012-09-25 07:52:19 +00:00
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: ncurses-devel
|
2006-12-18 23:16:54 +00:00
|
|
|
Obsoletes: jless
|
2012-09-25 07:52:19 +00:00
|
|
|
Provides: jless
|
|
|
|
Provides: normal-less
|
2006-12-18 23:16:54 +00:00
|
|
|
Requires: file
|
2013-07-31 09:41:40 +00:00
|
|
|
Version: 458
|
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
|
2012-09-25 07:52:19 +00:00
|
|
|
License: GPL-3.0+ or BSD-2-Clause
|
|
|
|
Group: Productivity/Text/Utilities
|
2007-10-31 16:07:16 +00:00
|
|
|
Url: http://www.greenwoodsoftware.com/less/
|
2013-03-25 11:56:16 +00:00
|
|
|
Source: http://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
|
2009-07-11 01:27:35 +00:00
|
|
|
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
|
2006-12-18 23:16:54 +00:00
|
|
|
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
|
2009-07-27 21:05:14 +00:00
|
|
|
%setup -q
|
2006-12-18 23:16:54 +00:00
|
|
|
%patch22
|
|
|
|
%patch24
|
|
|
|
%patch25
|
|
|
|
%patch26
|
2007-08-17 16:56:07 +00:00
|
|
|
%patch27
|
2007-09-12 14:53:12 +00:00
|
|
|
%patch28
|
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 *
|
|
|
|
#
|
|
|
|
cp %{S:1} %{S:2} %{S:3} %{S:4} .
|
|
|
|
|
|
|
|
%build
|
2008-07-20 22:40:38 +00:00
|
|
|
autoreconf -fiv
|
|
|
|
%configure --with-pic
|
2006-12-18 23:16:54 +00:00
|
|
|
#
|
|
|
|
# regenerate help.c because less.hlp was patched
|
|
|
|
make mkhelp
|
|
|
|
./mkhelp <less.hlp >help.c
|
|
|
|
#
|
|
|
|
# build less
|
2010-07-20 19:00:50 +00:00
|
|
|
make %{?_smp_mflags}
|
2006-12-18 23:16:54 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT/ install
|
|
|
|
#
|
|
|
|
# lesskey
|
2008-07-20 22:40:38 +00:00
|
|
|
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
|
2006-12-18 23:16:54 +00:00
|
|
|
#
|
|
|
|
# preprocessor
|
2008-07-20 22:40:38 +00:00
|
|
|
install -m 755 lessopen.sh lessclose.sh $RPM_BUILD_ROOT/%{_bindir}
|
2014-07-29 14:19:56 +00:00
|
|
|
%__chmod -x LICENSE COPYING NEWS README.SUSE
|
2006-12-18 23:16:54 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
2014-07-29 14:19:56 +00:00
|
|
|
%doc LICENSE COPYING NEWS README.SUSE
|
2006-12-18 23:16:54 +00:00
|
|
|
%doc %{_mandir}/*/*
|
2008-07-20 22:40:38 +00:00
|
|
|
%config %{_sysconfdir}/*
|
|
|
|
%{_bindir}/*
|
2007-12-20 15:43:31 +00:00
|
|
|
|
2007-03-26 23:41:15 +00:00
|
|
|
%changelog
|