69 lines
1.8 KiB
RPMSpec
69 lines
1.8 KiB
RPMSpec
Name: less
|
|
Version: 551
|
|
Release: 2
|
|
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
|
|
Source1: lesspipe.sh
|
|
Source2: less.sh
|
|
Source3: less.csh
|
|
Patch0: less-394-time.patch
|
|
Patch1: less-418-fsync.patch
|
|
Patch2: less-436-manpage-add-old-bot-option.patch
|
|
Patch3: less-436-help.patch
|
|
Patch4: less-458-lessecho-usage.patch
|
|
Patch5: less-458-less-filters-man.patch
|
|
Patch6: less-458-lesskey-usage.patch
|
|
Patch7: less-458-old-bot-in-help.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
|
|
mkdir -p ${RPM_BUILD_ROOT}/etc/profile.d
|
|
install -p %{SOURCE1} ${RPM_BUILD_ROOT}/%{_bindir}
|
|
install -p -m 644 {%{SOURCE2},%{SOURCE3}} ${RPM_BUILD_ROOT}/etc/profile.d
|
|
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%license LICENSE COPYING
|
|
/etc/profile.d/*
|
|
%{_bindir}/less*
|
|
|
|
%files help
|
|
%doc README NEWS INSTALL
|
|
%{_mandir}/man1/*
|
|
|
|
%changelog
|
|
* 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
|