diff --git a/less.csh b/less.csh index d58763d..13e4f3a 100755 --- a/less.csh +++ b/less.csh @@ -1,7 +1,7 @@ #!/bin/csh # less initialization script (csh) if ( -x /usr/bin/lesspipe.sh ) then - if ( $?LESSOPEN && { eval 'test ! -z $LESSOPEN' } ) then + if ( $?LESSOPEN && { eval 'test ! -z "$LESSOPEN"' } ) then : else setenv LESSOPEN "|/usr/bin/lesspipe.sh %s" diff --git a/less.sh b/less.sh index eeade55..9a6d64e 100755 --- a/less.sh +++ b/less.sh @@ -1,4 +1,4 @@ # less initialization script (sh) -if [ -x /usr/bin/lesspipe.sh ] && [ -z $LESSOPEN ]; then +if [ -x /usr/bin/lesspipe.sh ] && [ -z "$LESSOPEN" ]; then export LESSOPEN="|/usr/bin/lesspipe.sh %s" fi diff --git a/less.spec b/less.spec index bcbfb90..8ee454f 100644 --- a/less.spec +++ b/less.spec @@ -1,15 +1,15 @@ Summary: A text file browser similar to more, but better Name: less Version: 479 -Release: 2%{?dist} -License: GPLv3+ +Release: 3%{?dist} +License: GPLv3+ or BSD Group: Applications/Text Source: http://www.greenwoodsoftware.com/less/%{name}-%{version}.tar.gz Source1: lesspipe.sh Source2: less.sh Source3: less.csh Source4: less.zsh -Patch1: less-444-Foption.v2.patch +Patch1: less-444-Foption.v2.patch Patch2: less-394-search.patch Patch4: less-394-time.patch Patch5: less-418-fsync.patch @@ -64,14 +64,18 @@ install -p -m 644 %{SOURCE3} $RPM_BUILD_ROOT/etc/profile.d install -p -m 644 %{SOURCE4} $RPM_BUILD_ROOT/etc/profile.d %files -%doc README NEWS INSTALL COPYING -%license LICENSE +%doc README NEWS INSTALL +%license LICENSE COPYING /etc/profile.d/* %{_bindir}/* %{_mandir}/man1/* %changelog -* Mon Aug 22 2015 Viktor Jancik - 479-2 +* Wed Sep 2 2015 Viktor Jancik - 479-3 +- Added missing double quotes in profile.d scripts +- Corrected license information + +* Mon Aug 24 2015 Viktor Jancik - 479-2 - Updated spec file to comply with current Fedora Packaging Guidelines Added missing documentation files - Fixed less profile.d scripts