Added GraphicsMagick support (#492695)

This commit is contained in:
Zdenek Prikryl 2009-03-31 08:25:57 +00:00
parent 51bf205882
commit 10bea8199c
2 changed files with 7 additions and 2 deletions

View File

@ -1,7 +1,7 @@
Summary: A text file browser similar to more, but better Summary: A text file browser similar to more, but better
Name: less Name: less
Version: 424 Version: 424
Release: 3%{?dist} Release: 4%{?dist}
License: GPLv3+ License: GPLv3+
Group: Applications/Text Group: Applications/Text
Source: http://www.greenwoodsoftware.com/less/%{name}-%{version}.tar.gz Source: http://www.greenwoodsoftware.com/less/%{name}-%{version}.tar.gz
@ -63,6 +63,9 @@ ls -la $RPM_BUILD_ROOT/etc/profile.d
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%changelog %changelog
* Tue Mar 31 2009 Zdenek Prikryl <zprikryl@redhat.com> - 424-4
- Added GraphicsMagick support (#492695)
* Tue Mar 17 2009 Zdenek Prikryl <zprikryl@redhat.com> - 424-3 * Tue Mar 17 2009 Zdenek Prikryl <zprikryl@redhat.com> - 424-3
- Added lzma support - Added lzma support
- Added test if fsync produces EIVAL on tty - Added test if fsync produces EIVAL on tty

View File

@ -32,9 +32,11 @@ lesspipe() {
*.gif|*.jpeg|*.jpg|*.pcd|*.png|*.tga|*.tiff|*.tif) *.gif|*.jpeg|*.jpg|*.pcd|*.png|*.tga|*.tiff|*.tif)
if [ -x /usr/bin/identify ]; then if [ -x /usr/bin/identify ]; then
identify "$1" identify "$1"
elif [ -x /usr/bin/gm ]; then
gm identify "$1"
else else
echo "No identify available" echo "No identify available"
echo "Install ImageMagick to browse images" echo "Install ImageMagick or GraphicsMagick to browse images"
fi ;; fi ;;
*) *)
case "$1" in case "$1" in