Summary: A text file browser similar to more, but better Name: less Version: 550 Release: 1 License: GPLv3+ Group: Applications/Text Source0: http://www.greenwoodsoftware.com/%{name}/%{name}-%{version}.tar.gz Source1: http://www.greenwoodsoftware.com/%{name}/%{name}-%{version}.tar.gz.sig Source2: lesspipe.sh Source3: less.sh Source4: less.csh Patch0: %{name}-%{version}-aix.patch Patch4: less-394-time.patch Patch5: less-550-fsync.patch Patch6: less-436-manpage-add-old-bot-option.patch Patch7: less-436-help.patch Patch8: less-458-lessecho-usage.patch Patch9: less-458-less-filters-man.patch Patch10: less-458-lesskey-usage.patch Patch11: less-458-old-bot-in-help.patch URL: http://www.greenwoodsoftware.com/less/ Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: patch autoconf automake libtool %description The less utility is a text file browser that resembles more, but has more capabilities. Less allows you to move backwards in the file as well as forwards. Since less doesn't have to read the entire input file before it starts, less starts up more quickly than text editors (for example, vi). You should install less because it is a basic utility for viewing text files, and you'll use it frequently. %prep %setup -q chmod -R u+w * export PATH=/opt/freeware/bin:$PATH %patch0 %patch4 -p1 -b .time %patch5 -p1 -b .fsync %patch6 -p1 -b .manpage-add-old-bot-option %patch7 -p1 -b .help %patch8 -p1 -b .lessecho-usage %patch9 -p1 -b .less-filters-man %patch10 -p1 -b .lesskey-usage %patch11 -p1 -b .old-bot autoreconf -fiv chmod -R a+w * chmod 644 lessecho.c lesskey.c version.c LICENSE %build export CC="xlc_r -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" ./configure \ --prefix=%{_prefix} \ --mandir=%{_mandir} \ --with-secure make %{?_smp_mflags} %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} make DESTDIR=${RPM_BUILD_ROOT} install /usr/bin/strip ${RPM_BUILD_ROOT}%{_bindir}/* || : mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/profile.d cp %{SOURCE2} ${RPM_BUILD_ROOT}%{_bindir} chmod 0755 ${RPM_BUILD_ROOT}%{_bindir}/* cp %{SOURCE3} %{SOURCE4} ${RPM_BUILD_ROOT}%{_sysconfdir}/profile.d chmod 0644 ${RPM_BUILD_ROOT}%{_sysconfdir}/profile.d/* mkdir -p ${RPM_BUILD_ROOT}/usr/bin cd ${RPM_BUILD_ROOT}/usr/bin ln -sf ../..%{_bindir}/* . %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system,-) %doc LICENSE %{_bindir}/* %{_sysconfdir}/profile.d/* %{_mandir}/man1/* /usr/bin/* %changelog * Tue Jun 18 2019 Michael Perzl - 550-1 - updated to version 550 * Mon Feb 19 2018 Michael Perzl - 530-1 - updated to version 530 * Mon Mar 20 2017 Michael Perzl - 487-1 - updated to version 487 * Sun Oct 18 2015 Michael Perzl - 481-1 - updated to version 481 * Wed Jan 21 2015 Michael Perzl - 471-1 - updated to version 471 * Thu Sep 18 2014 Michael Perzl - 466-1 - updated to version 466 * Fri May 03 2013 Michael Perzl - 458-1 - updated to version 458 * Wed Sep 05 2012 Michael Perzl - 451-1 - updated to version 451 * Tue Aug 02 2011 Michael Perzl - 444-1 - updated to version 444 * Mon Apr 18 2011 Michael Perzl - 443-1 - updated to version 443 * Tue Jan 11 2011 Michael Perzl - 436-2 - updated to latest security patches * Mon Aug 31 2009 Michael Perzl - 436-1 - updated to version 436 * Wed Mar 26 2008 Michael Perzl - 418-1 - first version for AIX V5.1 and higher