From 765d0fb1cfdf11fb044e634864cb4629777b540f5cce36bb6a9f14d1c1273d43 Mon Sep 17 00:00:00 2001 From: OBS User mrdocs Date: Tue, 26 Nov 2013 03:35:21 +0000 Subject: [PATCH] Accepting request 208356 from home:dnh:branches:Base:System - What a ghastly %description ... Where'd that come from? ;) Fixed with text from the README and a little added mention of Norton Cmdr - What's with those "trailing spaces" for filenames with length <13? - fix the urar patch (add trailing whitespace) (thanks to D. Werner again) OBS-URL: https://build.opensuse.org/request/show/208356 OBS-URL: https://build.opensuse.org/package/show/Base:System/mc?expand=0&rev=76 --- mc-extfs-helpers-urar.patch | 16 ++++++++++------ mc.changes | 16 ++++++++++++++++ mc.spec | 24 +++++++----------------- 3 files changed, 33 insertions(+), 23 deletions(-) diff --git a/mc-extfs-helpers-urar.patch b/mc-extfs-helpers-urar.patch index aaef3a1..d037542 100644 --- a/mc-extfs-helpers-urar.patch +++ b/mc-extfs-helpers-urar.patch @@ -1,7 +1,7 @@ diff -urN -x '*~' mc-4.8.10.orig/src/vfs/extfs/helpers/urar.in mc-4.8.10/src/vfs/extfs/helpers/urar.in --- mc-4.8.10.orig/src/vfs/extfs/helpers/urar.in 2013-08-02 17:02:39.000000000 +0200 -+++ mc-4.8.10/src/vfs/extfs/helpers/urar.in 2013-11-23 19:09:46.000000000 +0100 -@@ -42,14 +42,39 @@ ++++ mc-4.8.10/src/vfs/extfs/helpers/urar.in 2013-11-25 23:10:36.000000000 +0100 +@@ -42,14 +42,43 @@ $UNRAR v -c- -cfg- "$1" | @AWK@ -v uid=`id -u` -v gid=`id -g` ' BEGIN { flag=0 } /^-----------/ { flag++; if (flag > 1) exit 0; next } @@ -38,10 +38,14 @@ diff -urN -x '*~' mc-4.8.10.orig/src/vfs/extfs/helpers/urar.in mc-4.8.10/src/vfs + for(i = 8; i <= nameparts; i++) { + name=name seps[i] fields[i]; + } -+ ### remove padding blanks from short names -+ if (length(name)<13) { -+ sub(" *$", "", name); -+ } ++ name=name seps[i]; ++ ++# ### where did this come from? I say: if in doubt: pass on the ++# ### unrar bug to our users ... I leave this in for reference. ++# ### remove padding blanks from short names ++# if (length(name)<13) { ++# sub(" *$", "", name); ++# } + + printf("%s 1 %s %s %d %02d/%02d/%02d %s ./%s\n", + fields[1], uid, gid, fields[2], date[2], diff --git a/mc.changes b/mc.changes index e269897..444a334 100644 --- a/mc.changes +++ b/mc.changes @@ -1,3 +1,19 @@ +------------------------------------------------------------------- +Mon Nov 25 22:45:29 UTC 2013 - dnh@opensuse.org + +- What a ghastly %description ... Where'd that come from? ;) Fixed + with text from the README and a little added mention of Norton Cmdr + +------------------------------------------------------------------- +Mon Nov 25 22:12:19 UTC 2013 - dnh@opensuse.org + +- What's with those "trailing spaces" for filenames with length <13? + +------------------------------------------------------------------- +Mon Nov 25 03:47:18 UTC 2013 - dnh@opensuse.org + +- fix the urar patch (add trailing whitespace) (thanks to D. Werner again) + ------------------------------------------------------------------- Sat Nov 23 18:11:35 UTC 2013 - dnh@opensuse.org diff --git a/mc.spec b/mc.spec index 9b53930..c616b8b 100644 --- a/mc.spec +++ b/mc.spec @@ -87,24 +87,14 @@ Requires(pre): permissions Recommends: %{name}-lang = %{version} %description -Midnight Commander is a Norton Commander clone, a program that -manipulates and manages files and directories. It is useful, fast, and -has color display on the Linux console. It also has mouse support if -you run the gpm mouse server. This program requires the terminal -description files in /usr/lib/terminfo, which are found in ncurses.rpm -(the essential ones) or terminfo.rpm (the rest). +GNU Midnight Commander (also referred to as MC) is a user shell much +like the (in)famous Norton Commander with text-mode full-screen +interface. It can be run on the OS console, in xterm and other +terminal emulators. -You can also use Midnight Commander under the X Window System with your -mouse. If you enter 'mc -c', colors are used. - -In Midnight Commander, the screen is divided into four sections: The -majority of the screen is covered by two directory panels. The second -to last line on the screen is the shell command line. The last line -displays the function key assignments. At the very top, the menu list -is shown. One of the directories displayed is the current working -directory. This is where most of the commands are found. For certain -commands, like copy and move, the second directory is used as the -target directory. +GNU Midnight Commander allows you to manage files while making most of +your screen and giving you a clear representation of the filesystem, yet +it's simple enough to be run over a telnet or ssh session. %lang_package