- correctly recognize xz compressed data (bnc#728033)

OBS-URL: https://build.opensuse.org/package/show/Base:System/less?expand=0&rev=19
This commit is contained in:
2011-11-04 09:57:10 +00:00
committed by Git OBS Bridge
parent 2d167513d4
commit efa80a8687
3 changed files with 7 additions and 8 deletions
+5
View File
@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Nov 4 09:56:02 UTC 2011 - puzel@suse.com
- correctly recognize xz compressed data (bnc#728033)
-------------------------------------------------------------------
Thu Jun 16 08:26:41 UTC 2011 - idonmez@novell.com
-7
View File
@@ -45,7 +45,6 @@ Patch27: %{name}-429-save_line_position.patch
Patch28: %{name}-429-more.patch
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
@@ -75,7 +74,6 @@ chmod u+w *
#
cp %{S:1} %{S:2} %{S:3} %{S:4} .
%build
autoreconf -fiv
%configure --with-pic
@@ -87,7 +85,6 @@ make mkhelp
# build less
make %{?_smp_mflags}
%install
make DESTDIR=$RPM_BUILD_ROOT/ install
#
@@ -100,11 +97,9 @@ $RPM_BUILD_ROOT%{_bindir}/lesskey -o $RPM_BUILD_ROOT%{_sysconfdir}/lesskey.bin $
install -m 755 lessopen.sh lessclose.sh $RPM_BUILD_ROOT/%{_bindir}
%__chmod -x LICENSE COPYING NEWS README.SuSE
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc LICENSE COPYING NEWS README.SuSE
@@ -112,6 +107,4 @@ rm -rf $RPM_BUILD_ROOT
%config %{_sysconfdir}/*
%{_bindir}/*
%changelog
+2 -1
View File
@@ -46,7 +46,8 @@ case ${type#"$SRC": } in
CMD="unzip -v" ;;
*"bzip"*" compressed data"*)
CMD="bzip2 -dc" ;;
*"xz compressed data"*)
*"xz compressed data"*|\
*"XZ compressed data"*)
CMD="xz -dc" ;;
*)
rm -f "$TMPF_pre"