OBS User unknown 2007-01-15 23:14:57 +00:00 committed by Git OBS Bridge
commit 05abf55f61
36 changed files with 7442 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

46
00-70-utf8-common.patch Normal file
View File

@ -0,0 +1,46 @@
Some common stuff used by other UTF-8 patches.
================================================================================
--- mc-4.6.1-pre2b/src/util.c
+++ mc-4.6.1-pre2b/src/util.c
@@ -144,6 +144,30 @@
return strlen (str);
}
+int
+columns_to_bytes (const char *str, int col)
+{
+ int bytes = 0;
+ int columns = 0;
+ int i;
+#ifdef UTF8
+ if (SLsmg_Is_Unicode) {
+ static mbstate_t s;
+ while (columns < col) {
+ memset (&s, 0, sizeof (s));
+ i = mbrlen (str + bytes, -1, &s);
+ if (i <= 0) {
+ return col + bytes - columns;
+ }
+ bytes += i;
+ columns ++;
+ }
+ return col + bytes - columns;
+ } else
+#endif
+ return col;
+}
+
#ifdef UTF8
void
--- mc-4.6.1-pre2b/src/util.h
+++ mc-4.6.1-pre2b/src/util.h
@@ -95,6 +95,7 @@
void fix_utf8(char *str);
int mbstrlen (const char *);
+int columns_to_bytes (const char *, int);
wchar_t *mbstr_to_wchar (const char *);
char *wchar_to_mbstr (const wchar_t *);
char *utf8_to_local(char *str);

View File

@ -0,0 +1,14 @@
Center the title of dialog boxes.
================================================================================
--- mc-4.6.1-pre2b/src/dialog.c
+++ mc-4.6.1-pre2b/src/dialog.c
@@ -162,7 +162,7 @@
if (h->title) {
attrset (HOT_NORMALC);
- dlg_move (h, space, (h->cols - strlen (h->title)) / 2);
+ dlg_move (h, space, (h->cols - mbstrlen (h->title)) / 2);
addstr (h->title);
}
}

View File

@ -0,0 +1,21 @@
Use six character width cyan rectangles for bottom row's buttons.
================================================================================
--- mc-4.6.1-pre2b/src/widget.c
+++ mc-4.6.1-pre2b/src/widget.c
@@ -2481,11 +2481,14 @@
attrset (DEFAULT_COLOR);
printw ("%-*s", bb->widget.cols, "");
for (i = 0; i < COLS / 8 && i < 10; i++) {
+ int j;
widget_move (&bb->widget, 0, i * 8);
attrset (DEFAULT_COLOR);
printw ("%d", i + 1);
attrset (SELECTED_COLOR);
- printw ("%-*s", ((i + 1) * 8 == COLS ? 5 : 6),
+ j = columns_to_bytes(bb->labels [i].text ? bb->labels [i].text : "",
+ ((i + 1) * 8 == COLS ? 5 : 6));
+ printw ("%-*s", j,
bb->labels[i].text ? bb->labels[i].text : "");
attrset (DEFAULT_COLOR);
}

View File

@ -0,0 +1,22 @@
Fix detection whether filename needs to be truncated (tilde in the middle)
in dialog boxes, such as copy file.
================================================================================
--- mc-4.6.1-pre2b/src/file.c
+++ mc-4.6.1-pre2b/src/file.c
@@ -1704,13 +1704,13 @@
*dp = '\0';
if (single_source) {
- i = fmd_xlen - strlen (format_string) - 4;
+ i = fmd_xlen - mbstrlen (format_string) - 4;
g_snprintf (cmd_buf, sizeof (cmd_buf), format_string,
name_trunc (single_source, i));
} else {
g_snprintf (cmd_buf, sizeof (cmd_buf), format_string,
panel->marked);
- i = strlen (cmd_buf) + 6 - fmd_xlen;
+ i = mbstrlen (cmd_buf) + 6 - fmd_xlen;
if (i > 0) {
fmd_xlen += i;
fmd_init_i18n (TRUE); /* to recalculate positions of child widgets */

View File

@ -0,0 +1,63 @@
Fix formatting the output of "mc --help".
================================================================================
--- mc-4.6.1-pre2b/src/main.c
+++ mc-4.6.1-pre2b/src/main.c
@@ -1857,7 +1857,7 @@
/* print help for options */
leftColWidth = poptPrintHelp (ctx, stream, 0);
- fprintf (stream, " %-*s %s\n", leftColWidth, _("+number"),
+ fprintf (stream, " %-*s %s\n", leftColWidth + strlen(_("+number")) - mbstrlen(_("+number")), _("+number"),
_("Set initial line number for the internal editor"));
fputs (_
("\n"
--- mc-4.6.1-pre2b/src/popthelp.c
+++ mc-4.6.1-pre2b/src/popthelp.c
@@ -93,7 +93,7 @@
goto out;
}
- helpLength = strlen(help);
+ helpLength = mbstrlen(help);
while (helpLength > lineLength) {
ch = help + lineLength - 1;
while (ch > help && !isspace(*ch)) ch--;
@@ -104,7 +104,7 @@
fprintf(f, "%.*s\n%*s", (int) (ch - help), help, indentLength, " ");
help = ch;
while (isspace(*help) && *help) help++;
- helpLength = strlen(help);
+ helpLength = mbstrlen(help);
}
if (helpLength) fprintf(f, "%s\n", help);
@@ -223,7 +223,7 @@
if (len == 3) return cursor;
if (argDescrip)
- len += strlen(argDescrip) + 1;
+ len += mbstrlen(argDescrip) + 1;
if ((cursor + len) > 79) {
fprintf(f, "\n ");
@@ -292,7 +292,7 @@
singleTableUsage(f, cursor, con->options, NULL);
if (con->otherHelp) {
- cursor += strlen(con->otherHelp) + 1;
+ cursor += mbstrlen(con->otherHelp) + 1;
if (cursor > 79) fprintf(f, "\n ");
fprintf(f, " %s", con->otherHelp);
}
--- mc-4.6.1-pre2b/src/util.c
+++ mc-4.6.1-pre2b/src/util.c
@@ -127,7 +127,7 @@
mbstrlen (const char *str)
{
#ifdef UTF8
- if (SLsmg_Is_Unicode) {
+ if (1) {
static mbstate_t s;
int len;
const char *str0 = str;

View File

@ -0,0 +1,23 @@
Highlight the lines of hotlist in full width.
================================================================================
--- mc-4.6.1-pre2b/src/widget.c
+++ mc-4.6.1-pre2b/src/widget.c
@@ -1935,6 +1935,7 @@
{
WLEntry *e;
int i;
+ int j;
int sel_line;
Dlg_head *h = l->widget.parent;
int normalc = NORMALC;
@@ -1965,7 +1966,8 @@
text = e->text;
e = e->next;
}
- printw (" %-*s ", l->width-2, name_trunc (text, l->width-2));
+ j = columns_to_bytes (name_trunc (text, l->width-2), l->width-2);
+ printw (" %-*s ", j, name_trunc (text, l->width-2));
}
l->cursor_y = sel_line;
if (!l->scrollbar)

View File

@ -0,0 +1,17 @@
Quick filename search (^S) highlights correct width.
================================================================================
--- mc-4.6.1-pre2b/src/screen.c
+++ mc-4.6.1-pre2b/src/screen.c
@@ -746,8 +746,10 @@
widget_move (&panel->widget, llines (panel)+3, 1);
if (panel->searching){
+ int j;
attrset (INPUT_COLOR);
- printw ("/%-*s", panel->widget.cols-3, panel->search_buffer);
+ j = columns_to_bytes (panel->search_buffer, panel->widget.cols-3);
+ printw ("/%-*s", j, panel->search_buffer);
attrset (NORMAL_COLOR);
return;
}

View File

@ -0,0 +1,72 @@
Fix quick filename search (^S):
- Avoid matching partial multibyte character.
E.g. a quick search for fooá when the only file beginning with foo is fooé
don't match the first byte of é.
- Backspace remove a whole multibyte character, not just one byte.
================================================================================
--- mc-4.6.1-pre2b/src/screen.c
+++ mc-4.6.1-pre2b/src/screen.c
@@ -2001,11 +2001,24 @@
int i;
int wrapped = 0;
int found;
+ int prevpos, pos;
+ int j;
+ mbstate_t mbs;
l = strlen (panel->search_buffer);
if (c_code == KEY_BACKSPACE) {
- if (l)
- panel->search_buffer[--l] = '\0';
+ if (l) {
+ prevpos = pos = 0;
+ memset (&mbs, 0, sizeof (mbs));
+ while (pos < l) {
+ prevpos = pos;
+ j = mbrlen (panel->search_buffer + pos, l - pos, &mbs);
+ if (j <= 0) break;
+ pos += j;
+ }
+ --l;
+ panel->search_buffer[prevpos] = 0;
+ }
} else {
if (c_code && l < sizeof (panel->search_buffer)) {
panel->search_buffer[l] = c_code;
@@ -2014,6 +2027,14 @@
}
}
+ prevpos = pos = 0;
+ memset (&mbs, 0, sizeof (mbs));
+ while (pos < l) {
+ prevpos = pos;
+ j = mbrlen (panel->search_buffer + pos, l - pos, &mbs);
+ if (j <= 0) break;
+ pos += j;
+ }
found = 0;
for (i = panel->selected; !wrapped || i != panel->selected; i++) {
if (i >= panel->count) {
@@ -2024,9 +2045,9 @@
}
if (panel->
case_sensitive
- ? (strncmp (panel->dir.list[i].fname, panel->search_buffer, l)
+ ? (strncmp (panel->dir.list[i].fname, panel->search_buffer, pos)
== 0) : (g_strncasecmp (panel->dir.list[i].fname,
- panel->search_buffer, l) == 0)) {
+ panel->search_buffer, pos) == 0)) {
unselect_item (panel);
panel->selected = i;
select_item (panel);
@@ -2035,7 +2056,7 @@
}
}
if (!found)
- panel->search_buffer[--l] = 0;
+ panel->search_buffer[prevpos] = 0;
paint_panel (panel);
}

View File

@ -0,0 +1,14 @@
Fix the "Midnight" art on help (F1) page.
================================================================================
--- mc-4.6.1-pre2b/src/help.c
+++ mc-4.6.1-pre2b/src/help.c
@@ -445,7 +445,7 @@
#ifndef HAVE_SLANG
addch (acs_map [c]);
#else
- SLsmg_draw_object (h->y + line + 2, h->x + col + 2, c);
+ SLsmg_draw_object (h->y + line + 2, h->x + col + 2, acs_map[c]);
#endif
} else {
#ifdef UTF8

44
mc-4.6.1-NULL.patch Normal file
View File

@ -0,0 +1,44 @@
--- mc-4.6.1/src/cmd.c
+++ mc-4.6.1/src/cmd.c
@@ -1209,7 +1209,7 @@
sync_profiles ();
str = g_strconcat ( _(" Setup saved to ~/"), PROFILE_NAME, (char *) NULL);
- message (0, _(" Setup "), str);
+ message (0, _(" Setup "), "%s", str);
g_free (str);
}
--- mc-4.6.1/src/hotlist.c
+++ mc-4.6.1/src/hotlist.c
@@ -1427,7 +1427,7 @@
msg = g_strconcat (_("MC was unable to write ~/"), HOTLIST_FILENAME,
_(" file, your old hotlist entries were not deleted"), (char *) NULL);
- message (D_ERROR, _(" Hotlist Load "), msg);
+ message (D_ERROR, _(" Hotlist Load "), "%s", msg);
g_free (msg);
}
} else {
--- mc-4.6.1/vfs/ftpfs.c
+++ mc-4.6.1/vfs/ftpfs.c
@@ -829,7 +829,7 @@
/* If the remote server is an Amiga a leading slash
might be missing. MC needs it because it is used
as separator between hostname and path internally. */
- return g_strconcat( "/", bufp, 0);
+ return g_strconcat( "/", bufp, (char *) NULL);
}
} else {
ftpfs_errno = EIO;
--- mc-4.6.1/vfs/smbfs.c
+++ mc-4.6.1/vfs/smbfs.c
@@ -546,7 +546,7 @@
if (p)
my_remote = p; /* strip off share/service name */
/* create remote filename as understood by smb clientgen */
- result = g_strconcat (my_remote, trailing_asterik ? "/*" : "", 0);
+ result = g_strconcat (my_remote, trailing_asterik ? "/*" : "", (char *) NULL);
unix_to_dos (result, /* inplace = */ 1); /* code page conversion */
str_replace(result, '/', '\\');
return result;

135
mc-4.6.1-apps.patch Normal file
View File

@ -0,0 +1,135 @@
--- lib/mc.ext.in
+++ lib/mc.ext.in
@@ -115,7 +115,7 @@
# Open=%cd %p#utar
View=%view{ascii} bzip -dc %f 2>/dev/null | tar tvvf -
-regex/\.t(ar\.bz2|bz|b2)$
+regex/\.t(ar\.bz2|bz|b2|bz2)$
Open=%cd %p#utar
View=%view{ascii} bzip2 -dc %f 2>/dev/null | tar tvvf -
@@ -168,7 +168,7 @@
View=%view{ascii} cpio -itv <'%f' 2>/dev/null
# ls-lR
-regex/(^|\.)ls-?lR(\.g?z|Z|bz2)?$
+regex/(^|\.)ls-?lR(\.(bz2|gz|Z))?$
Open=%cd %p#lslR
# patch
@@ -324,7 +324,7 @@
View=sxpm %f
include/image
- Open=if [ "$DISPLAY" = "" ]; then zgv %f; else (gqview %f &); fi
+ Open=if [ "$DISPLAY" = "" ]; then asciiview %f; else (display %f >/dev/null 2>&1 &); fi
View=%view{ascii} identify %f
#View=%view{ascii} asciiview %f
@@ -342,11 +342,11 @@
Open=vplay -s 22 %f
regex/\.([mM][pP]3)$
- Open=if [ "$DISPLAY" = "" ]; then mpg123 %f; else (xmms %f &); fi
+ Open=if [ "$DISPLAY" = "" ]; then mpg123 %f; else if [ -z "`which realplay`" ]; then (xmms -e %f 1>/dev/null 2>&1 &); else (realplay %f >/dev/null 2>&1 &); fi; fi
View=%view{ascii} mpg123 -vtn1 %f 2>&1 | sed -n '/^Title/,/^Comment/p;/^MPEG/,/^Audio/p'
regex/\.([oO][gG][gG])$
- Open=if [ "$DISPLAY" = "" ]; then ogg123 %f; else (xmms %f &); fi
+ Open=if [ "$DISPLAY" = "" ]; then ogg123 %f; else (xmms -e %f >/dev/null 2>&1 &); fi
View=%view{ascii} ogginfo %s
regex/\.([mM][iI][dD][iI]?|[rR][mM][iI][dD]?)$
@@ -360,7 +360,7 @@
### Play lists ###
regex/\.([mM]3[uU]|[pP][lL][sS])$
- Open=if [ -z "$DISPLAY" ]; then mplayer -vo null -playlist %f; else (xmms -p %f &); fi
+ Open=if [ -z "$DISPLAY" ]; then mplayer -vo null -playlist %f; else (xmms -p %f >/dev/null 2>&1 &); fi
### Video ###
@@ -402,12 +402,12 @@
# Postscript
type/^PostScript
- Open=(gv %f &)
+ Open=(gv %f >/dev/null 2>&1 &)
View=%view{ascii} ps2ascii %f
# PDF
type/^PDF
- Open=(xpdf %f &)
+ Open=(xpdf %f >/dev/null 2>&1 &)
#Open=(acroread %f &)
#Open=(ghostview %f &)
View=%view{ascii} pdftotext %f -
@@ -422,54 +422,53 @@
# StarOffice 5.2
shell/.sdw
- Open=(ooffice %f &)
+ Open=(ooffice %f >/dev/null 2>&1 &)
# StarOffice 6 and OpenOffice.org formats
-regex/\.(odt|ott|sxw|stw|ods|ots|sxc|stc|odp|otp|sxi|sti|odg|otg|sxd|std|odb|odf|sxm|odm|sxg)$
- Open=(ooffice %f &)
+regex/\.(odb|odc|odf|odg|odi|odm|odp|ods|odt|otg|oth|otp|ots|ott|sda|sdc|sdd|sdp|sds|sdw|sgl|smf|stc|std|sti|stw|sxc|sxd|sxg|sxi|sxm|sxw|vor)$
+ Open=(ooffice %f >/dev/null 2>&1 &)
View=%view{ascii} unzip -p %f content.xml | o3totxt
# AbiWord
shell/.abw
- Open=(abiword %f &)
+ Open=if which abiword ; then (abiword %f >/dev/null 2>&1 &); else (ooffice %f >/dev/null 2>&1 &); fi >/dev/null
# Microsoft Word Document
regex/\.([Dd][oO][cCtT]|[Ww][rR][iI])$
- Open=(abiword %f >/dev/null 2>&1 &)
+ Open=if which abiword ; then (abiword %f >/dev/null 2>&1 &); else (ooffice %f >/dev/null 2>&1 &); fi >/dev/null
View=%view{ascii} catdoc -w %f || word2x -f text %f - || strings %f
type/^Microsoft\ Word
- Open=(abiword %f >/dev/null 2>&1 &)
+ Open=if which abiword ; then (abiword %f >/dev/null 2>&1 &); else (ooffice %f >/dev/null 2>&1 &); fi >/dev/null
View=%view{ascii} catdoc -w %f || word2x -f text %f - || strings %f
# RTF document
regex/\.([rR][tT][fF])$
- Open=(abiword %f >/dev/null 2>&1 &)
+ Open=if which abiword ; then (abiword %f >/dev/null 2>&1 &); else (ooffice %f >/dev/null 2>&1 &); fi >/dev/null
# Microsoft Excel Worksheet
regex/\.([xX][lL][sSwW])$
- Open=(gnumeric %f >/dev/null 2>&1 &)
+ Open=if which gnumeric ; then (gnumeric %f >/dev/null 2>&1 &); else (ooffice %f >/dev/null 2>&1 &); fi >/dev/null
View=%view{ascii} xls2csv %f || strings %f
type/^Microsoft\ Excel
- Open=(gnumeric %f >/dev/null 2>&1 &)
+ Open=if which gnumeric ; then (gnumeric %f >/dev/null 2>&1 &); else (ooffice %f >/dev/null 2>&1 &); fi >/dev/null
View=%view{ascii} xls2csv %f || strings %f
-# Use OpenOffice.org to open any MS Office documents
-type/^Microsoft\ Office\ Document
- Open=(ooffice %f &)
-
# Framemaker
type/^FrameMaker
Open=fmclient -f %f
# DVI
regex/\.([dD][vV][iI])$
- Open=if [ x$DISPLAY = x ]; then dvisvga %f; else (xdvi %f &); fi
+ Open=if [ x$DISPLAY = x ]; then dvisvga %f; else (xdvi %f >/dev/null 2>&1 &); fi
View=%view{ascii} dvi2tty %f
# TeX
regex/\.([Tt][Ee][Xx])$
Open=%var{EDITOR:vi} %f
+# DJVU
+regex/\.(djvu|DJVU)$
+ Open=djview %f >/dev/null 2>&1 &
### Miscellaneous ###

33
mc-4.6.1-bash-all.patch Normal file
View File

@ -0,0 +1,33 @@
--- src/subshell.c.000 2006-05-08 23:11:48.000000000 +0200
+++ src/subshell.c 2006-10-28 15:40:46.000000000 +0200
@@ -745,29 +745,13 @@ subshell_name_quote (const char *s)
memcpy (d, cmd_start, len);
d += len;
- /*
- * Print every character in octal format with the leading backslash.
- * tcsh and zsh may require 4-digit octals, bash < 2.05b doesn't like them.
- */
- if (subshell_type == BASH) {
for (; *s; s++) {
- /* Must quote numbers, so that they are not glued to octals */
if (isalpha ((unsigned char) *s)) {
*d++ = (unsigned char) *s;
} else {
- sprintf (d, "\\%03o", (unsigned char) *s);
- d += 4;
- }
- }
- } else {
- for (; *s; s++) {
- if (isalnum ((unsigned char) *s)) {
- *d++ = (unsigned char) *s;
- } else {
sprintf (d, "\\0%03o", (unsigned char) *s);
d += 5;
}
- }
}
memcpy (d, common_end, sizeof (common_end));

14
mc-4.6.1-getpwuid.patch Normal file
View File

@ -0,0 +1,14 @@
--- edit/editlock.c
+++ edit/editlock.c
@@ -54,9 +54,10 @@
{
char host[BUF_SIZE];
const char *user;
+ struct passwd *pw;
if (!
- ((user = getpwuid (getuid ())->pw_name) || (user = getenv ("USER"))
+ (((pw = getpwuid (getuid ())) && (user = pw->pw_name)) || (user = getenv ("USER"))
|| (user = getenv ("USERNAME")) || (user = getenv ("LOGNAME"))))
user = "";

12
mc-4.6.1-long-panel.patch Normal file
View File

@ -0,0 +1,12 @@
Index: src/screen.c
================================================================================
--- src/screen.c
+++ src/screen.c
@@ -2358,6 +2358,7 @@
select_item (panel);
show_dir (panel);
paint_dir (panel);
+ panel->dirty = 0;
define_label (h, 1, _("Help"), help_cmd);
define_label (h, 2, _("Menu"), user_file_menu_cmd);

7
mc-4.6.1-no-nb.diff Normal file
View File

@ -0,0 +1,7 @@
--- po/LINGUAS
+++ po/LINGUAS
@@ -1,3 +1,3 @@
# List of available translations.
-az be bg ca cs da de el es eu fi fr hu it ja ko lt lv mn nl no pl
+az be bg ca cs da de el es eu fi fr hu it ja ko lt lv mn nl nb pl
pt pt_BR ro ru sk sl sr sv uk ta tr wa zh_CN zh_TW

View File

@ -0,0 +1,36 @@
--- mc-4.5.55/lib/mc.menu
+++ mc-4.5.55/lib/mc.menu
@@ -186,6 +186,33 @@
fi
echo "Please test the output file before deleting anything"
++ & t r & ! t t
+m Install as MEMO on palm pilot
+ echo "Installing MEMO..."
+ install-memo %f
+
+=+ f \.pdb$ | f \.prc$ | f \.pqa$ | f \.PDB$ | f \.PRC$ | f \.PQA$ & t r & ! t t
+p Install on palm pilot (programs or databases)
+ echo "Installing file on PALM"
+ pilot-xfer -i %f
+
++ t t
+M Install tagged files as MEMOs on palm pilot
+ for i in %t
+ do
+ echo "Installing MEMO: $i"
+ done
+ install-memo -t %t
+
++ t t
+P Install tagged files on palm pilot (programs or databases)
+ echo "Installing files on PALM"
+ for i in %t
+ do
+ echo "Installing file: $i"
+ done
+ pilot-xfer -i %t
+
=+ f \.tar\.gz$ | f \.tar\.z$ | f \.tgz$ | f \.tpz$ | f \.tar\.Z$| f \.tar\.bz2$ & t r
x Extract the contents of a compressed tar file
unset EXT

11
mc-4.6.1-syntax-hpp.patch Normal file
View File

@ -0,0 +1,11 @@
--- syntax/Syntax
+++ syntax/Syntax
@@ -72,7 +72,7 @@
file ..\*\.(texi|texinfo|TEXI|TEXINFO)$ Texinfo\sDocument
include texinfo.syntax
-file ..\*\\.([chC]|CC|cxx|cc|cpp|CPP|CXX|hxx|h\.in)$ C/C\+\+\sProgram
+file ..\*\\.([chC]|CC|cxx|cc|cpp|CPP|CXX|hxx|hpp|HPP|h\.in)$ C/C\+\+\sProgram
include c.syntax
file ..\*\\.[fF]$ Fortran\sProgram

View File

@ -0,0 +1,20 @@
--- vfs/extfs/urar.in
+++ vfs/extfs/urar.in
@@ -24,7 +24,7 @@
mcrarfs_list ()
{
- $UNRAR v -c- "$1" | @AWK@ -v uid=${UID-0} '
+ $UNRAR v -p- -c- "$1" | @AWK@ -v uid=${UID-0} '
BEGIN { flag=0; date="JanFebMarAprMayJunJulAugSepOctNovDec" }
/^-------/ { flag++; if (flag > 1) exit 0; next }
{
@@ -69,7 +69,7 @@
mcrarfs_copyout ()
{
- $UNRAR p -c- -inul "$1" "$2" > "$3"
+ $UNRAR p -p- -c- -inul "$1" "$2" > "$3"
}
mcrarfs_mkdir ()

23
mc-4.6.1-word_docs.patch Normal file
View File

@ -0,0 +1,23 @@
--- lib/mc.ext.in
+++ lib/mc.ext.in
@@ -329,12 +329,17 @@
Open=if which abiword ; then (abiword %f >/dev/null 2>&1 &); else (ooffice %f >/dev/null 2>&1 &); fi >/dev/null
# Microsoft Word Document
-regex/\.([Dd][oO][cCtT]|[Ww][rR][iI])$
+type/^Microsoft\ Office\ Document
Open=if which abiword ; then (abiword %f >/dev/null 2>&1 &); else (ooffice %f >/dev/null 2>&1 &); fi >/dev/null
- View=%view{ascii} catdoc -w %f || word2x -f text %f - || strings %f
+ View=%view{ascii} wvText %f - || strings %f
+
type/^Microsoft\ Word
Open=if which abiword ; then (abiword %f >/dev/null 2>&1 &); else (ooffice %f >/dev/null 2>&1 &); fi >/dev/null
- View=%view{ascii} catdoc -w %f || word2x -f text %f - || strings %f
+ View=%view{ascii} wvText %f - || strings %f
+
+regex/\.([Dd]ot|DOT|[Ww]ri|WRI)$
+ Open=if which abiword ; then (abiword %f >/dev/null 2>&1 &); else (OOo %f >/dev/null 2>&1 &); fi >/dev/null
+ View=%view{ascii} wvText %f - || strings %f
# RTF document
regex/\.([rR][tT][fF])$

12
mc-4.6.1-wrapper.patch Normal file
View File

@ -0,0 +1,12 @@
--- lib/mc.sh.in
+++ lib/mc.sh.in
@@ -1 +1,8 @@
-alias mc='. @suppbindir@/mc-wrapper.sh'
+mc ()
+{
+. @suppbindir@/mc-wrapper.sh
+}
+if [ -n "$BASH_VERSION" ]
+then
+ export -f mc
+fi

13
mc-4.6.1-x11browser.diff Normal file
View File

@ -0,0 +1,13 @@
--- lib/mc.ext.in
+++ lib/mc.ext.in
@@ -444,8 +444,8 @@
# html
regex/\.([hH][tT][mM][lL]?)$
- Open=(if test -n "@X11_WWW@" && test -n "$DISPLAY"; then (@X11_WWW@ file://%d/%p &) 1>&2; else links %f || lynx -force_html %f || ${PAGER:-more} %f; fi) 2>/dev/null
- View=%view{ascii} lynx -dump -force_html %f
+ Open=/usr/share/mc/bin/x11_browser %f
+ View=%view{ascii} w3m -dump -T text/html %f;
# StarOffice 5.2
shell/.sdw

3
mc-4.6.1.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5b2e29062be975a0acd7e12a154e712a47e905df066cd092358a1b4ed9acc1d1
size 2725120

32
mc-CVS-msglen.patch Normal file
View File

@ -0,0 +1,32 @@
--- mc-4.6.1a-20041209/src/util.c.msglen 2004-12-15 11:41:12.477680704 +0100
+++ mc-4.6.1a-20041209/src/util.c 2004-12-15 12:50:23.006704384 +0100
@@ -198,16 +198,25 @@ is_printable (int c)
/* Returns the message dimensions (lines and columns) */
int msglen (const char *text, int *lines)
{
- int max = 0;
- int line_len = 0;
+ size_t max = 0, line_len = 0;
for (*lines = 1;*text; text++){
if (*text == '\n'){
line_len = 0;
(*lines)++;
} else {
- line_len++;
- if (line_len > max)
+#ifdef UTF8
+ size_t len;
+ wchar_t c;
+
+ len = mbrtowc (&c, text, MB_CUR_MAX, NULL);
+ if (len > 0) {
+ int wcsize = wcwidth(c);
+ line_len += wcsize > 0 ? wcsize-1 : -1;
+ text += len-1;
+ }
+#endif
+ if (++line_len > max)
max = line_len;
}
}

368
mc-CVS-utf8-fix.patch Normal file
View File

@ -0,0 +1,368 @@
--- mc-4.6.1/src/file.c
+++ mc-4.6.1/src/file.c
@@ -165,15 +165,20 @@
do_transform_source (FileOpContext *ctx, const unsigned char *source)
{
size_t j, k, l, len;
- unsigned const char *fnsource = x_basename (source);
+ unsigned char *fnsource = g_strdup(x_basename (source));
int next_reg;
enum CaseConvs case_conv = NO_CONV;
static unsigned char fntarget[MC_MAXPATHLEN];
+#ifdef UTF8
+ fix_utf8(fnsource);
+#endif
+
len = strlen (fnsource);
j = re_match (&ctx->rx, fnsource, len, 0, &ctx->regs);
if (j != len) {
transform_error = FILE_SKIP;
+ g_free(fnsource);
return NULL;
}
for (next_reg = 1, j = 0, k = 0; j < strlen (ctx->dest_mask); j++) {
@@ -217,6 +222,7 @@
|| ctx->regs.start[next_reg] < 0) {
message (1, MSG_ERROR, _(" Invalid target mask "));
transform_error = FILE_ABORT;
+ g_free(fnsource);
return NULL;
}
for (l = (size_t) ctx->regs.start[next_reg];
@@ -231,6 +237,7 @@
}
}
fntarget[k] = 0;
+ g_free(fnsource);
return fntarget;
}
@@ -2107,8 +2114,8 @@
static int
files_error (const char *format, const char *file1, const char *file2)
{
- char nfile1[16];
- char nfile2[16];
+ char nfile1[16 * MB_LEN_MAX];
+ char nfile2[16 * MB_LEN_MAX];
strcpy (nfile1, path_trunc (file1, 15));
strcpy (nfile2, path_trunc (file2, 15));
--- mc-4.6.1/src/filegui.c
+++ mc-4.6.1/src/filegui.c
@@ -69,6 +69,7 @@
#include "filegui.h"
#include "key.h" /* get_event */
#include "util.h" /* strip_password() */
+#include "tty.h"
/* }}} */
@@ -856,7 +857,7 @@
char *
file_mask_dialog (FileOpContext *ctx, FileOperation operation, const char *text,
- const char *def_text, int only_one, int *do_background)
+ const char *def_text_orig, int only_one, int *do_background)
{
int source_easy_patterns = easy_patterns;
char *source_mask, *orig_mask, *dest_dir, *tmpdest;
@@ -865,12 +866,20 @@
struct stat buf;
int val;
QuickDialog Quick_input;
-
+ char *def_text;
g_return_val_if_fail (ctx != NULL, NULL);
+
+ def_text = g_strdup(def_text_orig);
+
#if 0
message (1, __FUNCTION__, "text = `%s' \n def_text = `%s'", text,
def_text);
#endif
+
+#ifdef UTF8
+ fix_utf8(def_text);
+#endif
+
fmd_init_i18n (FALSE);
/* Set up the result pointers */
@@ -929,6 +938,7 @@
orig_mask = source_mask;
if (!dest_dir || !*dest_dir) {
g_free (source_mask);
+ g_free(def_text);
return dest_dir;
}
if (source_easy_patterns) {
@@ -982,5 +992,6 @@
}
if (val == B_USER)
*do_background = 1;
+ g_free(def_text);
return dest_dir;
}
--- mc-4.6.1/src/main.c
+++ mc-4.6.1/src/main.c
@@ -699,7 +699,7 @@
int prompt_len;
prompt = strip_ctrl_codes (subshell_prompt);
- prompt_len = strlen (prompt);
+ prompt_len = mbstrlen (prompt);
/* Check for prompts too big */
if (COLS > 8 && prompt_len > COLS - 8) {
@@ -1609,7 +1609,7 @@
if (xterm_flag && xterm_title) {
p = s = g_strdup (strip_home_and_password (current_panel->cwd));
do {
- if (!is_printable (*s))
+ if (*s < ' ')
*s = '?';
} while (*++s);
fprintf (stdout, "\33]0;mc - %s\7", p);
--- mc-4.6.1/src/menu.c
+++ mc-4.6.1/src/menu.c
@@ -20,6 +20,7 @@
#include <stdarg.h>
#include <sys/types.h>
#include <ctype.h>
+#include <wchar.h>
#include "global.h"
#include "tty.h"
#include "menu.h"
--- mc-4.6.1/src/screen.c
+++ mc-4.6.1/src/screen.c
@@ -526,6 +526,7 @@
#else
char buffer[BUF_MEDIUM];
#endif
+ int txtwidth;
length = 0;
empty_line = (file_index >= panel->count);
@@ -578,13 +579,18 @@
if (txtlen < 0) {
txt = " ";
txtlen = 1;
- } else
+ } else {
wide = 1;
+ txtwidth = wcswidth((wchar_t*)buffer, txtlen);
+ }
} else
#endif
+ {
txtlen = strlen (txt);
+ txtwidth = txtlen;
+ }
- over = txtlen > len;
+ over = txtwidth > len;
still = over ? txtlen - len : len - txtlen;
switch (HIDE_FIT(format->just_mode)) {
@@ -605,19 +611,46 @@
#ifdef UTF8
if (over) {
if (IS_FIT (format->just_mode)) {
- int len2 = len / 2 - 1 + (len % 2);
+ int n1 = 0;
+ int width1 = 0;
+ int n2 = 0;
+ int width2 = 0;
+ int len1 = len / 2;
+ int len2;
+
+ while (1) {
+ int w = wcwidth(((wchar_t *) buffer)[n1]);
+ if (width1 + w <= len1) {
+ width1 += w;
+ n1++;
+ }
+ else
+ break;
+ }
+ len2 = len - width1 - 1;
+
+ while (1) {
+ int w = wcwidth(((wchar_t *) buffer)[txtlen - n2 - 1]);
+ if (width2 + w <= len2) {
+ width2 += w;
+ n2++;
+ }
+ else
+ break;
+ }
+
- SLsmg_write_nwchars ((wchar_t *) buffer,
- len / 2);
+ SLsmg_write_nwchars ((wchar_t *) buffer, n1);
SLsmg_write_nwchars (L"~", 1);
+ printw ("%*s", len - width1 - width2 - 1, "");
SLsmg_write_nwchars (((wchar_t *) buffer)
- + txtlen - len2, len2);
+ + txtlen - n2, n2);
} else
SLsmg_write_nwchars ((wchar_t *) buffer, len);
} else {
printw ("%*s", still, "");
SLsmg_write_nwchars ((wchar_t *) buffer, txtlen);
- printw ("%*s", len - txtlen - still, "");
+ printw ("%*s", len - txtwidth - still, "");
}
#endif
} else {
--- mc-4.6.1/src/util.c
+++ mc-4.6.1/src/util.c
@@ -89,11 +89,13 @@
if (SLsmg_Is_Unicode) {
static mbstate_t s;
int len;
+ const char *str0 = str;
len = mbsrtowcs (NULL, &str, -1, &s);
if (len < 0) {
- memset (&s, 0, sizeof (s));
- return -1;
+ memset (&s, 0, sizeof (s));
+ /* invalid multibyte character, probably not UTF-8 string */
+ return strlen (str0);
}
return len;
} else
@@ -101,6 +103,33 @@
return strlen (str);
}
+#ifdef UTF8
+
+void
+fix_utf8(char *str)
+{
+ mbstate_t mbs;
+
+ char *p = str;
+
+ while (*p) {
+ int len;
+ memset (&mbs, 0, sizeof (mbs));
+ len = mbrlen(p, MB_CUR_MAX, &mbs);
+ if (len == -1) {
+ *p = '?';
+ p++;
+ } else if (len > 0) {
+ p += len;
+ } else {
+ p++;
+ }
+ }
+}
+#endif
+
+
+
int
is_printable (int c)
{
@@ -229,7 +258,24 @@
*d++ = '\\';
break;
}
+#ifndef UTF8
*d = *s;
+#else /* UTF8 */
+ {
+ mbstate_t mbs;
+ int len;
+ memset (&mbs, 0, sizeof (mbs));
+ len = mbrlen(s, MB_CUR_MAX, &mbs);
+ if (len > 0) {
+ while (len-- > 1)
+ *d++ = *s++;
+ *d = *s;
+ } else {
+ *d = '?';
+ }
+
+ }
+#endif /* UTF8 */
}
*d = '\0';
return ret;
@@ -955,10 +1001,27 @@
r++;
continue;
}
-
+#ifndef UTF8
if (is_printable(*r))
*w++ = *r;
++r;
+#else /* UTF8 */
+ {
+ mbstate_t mbs;
+ int len;
+ memset (&mbs, 0, sizeof (mbs));
+ len = mbrlen(r, MB_CUR_MAX, &mbs);
+
+ if (len > 0 && (unsigned char)*r >= ' ')
+ while (len--)
+ *w++ = *r++;
+ else {
+ if (len == -1)
+ *w++ = '?';
+ r++;
+ }
+ }
+#endif /* UTF8 */
}
*w = 0;
return s;
--- mc-4.6.1/src/util.h
+++ mc-4.6.1/src/util.h
@@ -93,6 +93,7 @@
char *get_group (int);
char *get_owner (int);
+void fix_utf8(char *str);
int mbstrlen (const char *);
#define MAX_I18NTIMELENGTH 14
--- mc-4.6.1/src/widget.c
+++ mc-4.6.1/src/widget.c
@@ -149,10 +149,11 @@
attrset ((b->selected) ? HOT_FOCUSC : HOT_NORMALC);
widget_move (&b->widget, 0, b->hotpos + off);
#ifdef UTF8
- SLsmg_write_nwchars (&b->hotwc, 1);
-#else
- addch ((unsigned char) b->text[b->hotpos]);
+ if (SLsmg_Is_Unicode)
+ SLsmg_write_nwchars (&b->hotwc, 1);
+ else
#endif
+ addch ((unsigned char) b->text[b->hotpos]);
}
return MSG_HANDLED;
@@ -475,10 +476,11 @@
attrset ((msg == WIDGET_FOCUS) ? HOT_FOCUSC : HOT_NORMALC);
widget_move (&c->widget, 0, +c->hotpos + 4);
#ifdef UTF8
- SLsmg_write_nwchars (&c->hotwc, 1);
-#else
- addch ((unsigned char) c->text[c->hotpos]);
+ if (SLsmg_Is_Unicode)
+ SLsmg_write_nwchars (&c->hotwc, 1);
+ else
#endif
+ addch ((unsigned char) c->text[c->hotpos]);
}
return MSG_HANDLED;

49
mc-CVS-utf8-help.patch Normal file
View File

@ -0,0 +1,49 @@
--- mc-4.6.1-pre2b/src/help.c
+++ mc-4.6.1-pre2b/src/help.c
@@ -447,8 +447,22 @@
#else
SLsmg_draw_object (h->y + line + 2, h->x + col + 2, c);
#endif
+ } else {
+#ifdef UTF8
+ if (SLsmg_Is_Unicode) {
+ int len;
+ mbstate_t mbs;
+ wchar_t wc;
+ memset (&mbs, 0, sizeof (mbs));
+ len = mbrtowc(&wc, p, MB_CUR_MAX, &mbs);
+ if (len <= 0) len = 1; /* skip broken multibyte chars */
+
+ SLsmg_write_nwchars(&wc, 1);
+ p += len - 1;
} else
+#endif
addch (c);
+ }
col++;
break;
}
@@ -771,6 +785,12 @@
message (1, MSG_ERROR, _(" Cannot open file %s \n %s "), filename ? filename : hlpfile,
unix_error_string (errno));
}
+ else
+ {
+ char *conv = utf8_to_local(data);
+ g_free(data);
+ data = conv;
+ }
if (!filename)
g_free (hlpfile);
--- mc-4.6.1-pre2b/src/util.h
+++ mc-4.6.1-pre2b/src/util.h
@@ -97,6 +97,8 @@
int mbstrlen (const char *);
wchar_t *mbstr_to_wchar (const char *);
char *wchar_to_mbstr (const wchar_t *);
+char *utf8_to_local(char *str);
+
#define MAX_I18NTIMELENGTH 14
#define MIN_I18NTIMELENGTH 10

86
mc-CVS-utf8-hint.patch Normal file
View File

@ -0,0 +1,86 @@
--- mc-4.6.1-pre2b/src/util.c
+++ mc-4.6.1-pre2b/src/util.c
@@ -32,6 +32,9 @@
#include <stdarg.h>
#include <string.h>
#include <ctype.h>
+#include <iconv.h>
+#include <langinfo.h>
+#include <errno.h>
#include "tty.h"
#include "global.h"
@@ -827,11 +830,61 @@
}
char *
+utf8_to_local(char *str)
+{
+ iconv_t cd;
+ size_t buflen = strlen(str);
+ char *output;
+ int retry = 1;
+
+ cd = iconv_open (nl_langinfo(CODESET), "UTF-8");
+ if (cd == (iconv_t) -1) {
+ return g_strdup(str);
+ }
+
+ output = g_malloc(buflen + 1);
+
+ while (retry)
+ {
+ char *wrptr = output;
+ char *inptr = str;
+ size_t insize = buflen;
+ size_t avail = buflen;
+ size_t nconv;
+
+ nconv = iconv (cd, &inptr, &insize, &wrptr, &avail);
+ if (nconv == (size_t) -1)
+ {
+ if (errno == E2BIG)
+ {
+ buflen *= 2;
+ g_free(output);
+ output = g_malloc(buflen + 1);
+ }
+ else
+ {
+ g_free(output);
+ return g_strdup(str);
+ }
+ }
+ else {
+ retry = 0;
+ *wrptr = 0;
+ }
+ }
+
+ iconv_close (cd);
+
+ return output;
+}
+
+char *
load_mc_home_file (const char *filename, char **allocated_filename)
{
char *hintfile_base, *hintfile;
char *lang;
char *data;
+ char *conv_data;
hintfile_base = concat_dir_and_file (mc_home, filename);
lang = guess_message_value ();
@@ -864,7 +917,10 @@
else
g_free (hintfile);
- return data;
+ conv_data = utf8_to_local(data);
+ g_free(data);
+
+ return conv_data;
}
/* Check strftime() results. Some systems (i.e. Solaris) have different

2947
mc-CVS-utf8-input.patch Normal file

File diff suppressed because it is too large Load Diff

1688
mc-CVS-utf8.patch Normal file

File diff suppressed because it is too large Load Diff

11
mc-utf8-nlink.patch Normal file
View File

@ -0,0 +1,11 @@
--- src/screen.c
+++ src/screen.c
@@ -646,7 +646,7 @@
SLsmg_write_nwchars (((wchar_t *) buffer)
+ txtlen - n2, n2);
} else
- SLsmg_write_nwchars ((wchar_t *) buffer, len);
+ SLsmg_write_nwchars ((wchar_t *) buffer + still, len);
} else {
printw ("%*s", still, "");
SLsmg_write_nwchars ((wchar_t *) buffer, txtlen);

78
mc-utf8-slang2.patch Normal file
View File

@ -0,0 +1,78 @@
--- src/help.c
+++ src/help.c
@@ -445,7 +445,11 @@
#ifndef HAVE_SLANG
addch (acs_map [c]);
#else
- SLsmg_draw_object (h->y + line + 2, h->x + col + 2, acs_map[c]);
+#if defined(UTF8) && SLANG_VERSION < 20000
+ SLsmg_draw_object (h->y + line + 2, h->x + col + 2, acs_map [c]);
+#else
+ SLsmg_draw_object (h->y + line + 2, h->x + col + 2, c);
+#endif /* UTF8 */
#endif
} else {
#ifdef UTF8
--- src/myslang.h
+++ src/myslang.h
@@ -11,6 +11,12 @@
#endif /* HAVE_SLANG_SLANG_H */
#endif
+#if SLANG_VERSION >= 20000
+#define UTF8 1
+#define SLsmg_Is_Unicode SLsmg_is_utf8_mode()
+void SLsmg_write_nwchars(wchar_t *s, size_t n);
+#endif
+
#ifdef UTF8
# include <wchar.h>
#endif
--- src/slint.c
+++ src/slint.c
@@ -181,6 +181,10 @@
SLtt_get_terminfo ();
+#if SLANG_VERSION >= 20000
+ SLutf8_enable (-1);
+#endif
+
/*
* If the terminal in not in terminfo but begins with a well-known
* string such as "linux" or "xterm" S-Lang will go on, but the
--- src/util.c
+++ src/util.c
@@ -55,6 +55,32 @@
static const char app_text [] = "Midnight-Commander";
int easy_patterns = 1;
+#if SLANG_VERSION >= 20000
+void SLsmg_write_nwchars(wchar_t *s, size_t n)
+{
+ if (SLsmg_is_utf8_mode()) { /* slang can handle it directly */
+ while(n-- && *s)
+ SLsmg_write_char(*s++);
+ }
+ else { /* convert wchars back to 8bit encoding */
+ mbstate_t mbs;
+ memset (&mbs, 0, sizeof (mbs));
+ while (n-- && *s) {
+ char buf[MB_LEN_MAX + 1]; /* should use 1 char, but to be sure */
+ if (*s < 0x80) {
+ SLsmg_write_char(*s++); /* ASCII */
+ }
+ else {
+ if (wcrtomb(buf, *s++, &mbs) == 1)
+ SLsmg_write_char((wchar_t)(buf[0]));
+ else
+ SLsmg_write_char('?'); /* should not happen */
+ }
+ }
+ }
+}
+#endif
+
extern void str_replace(char *s, char from, char to)
{
for (; *s != '\0'; s++) {

820
mc.changes Normal file
View File

@ -0,0 +1,820 @@
-------------------------------------------------------------------
Mon Jan 15 16:32:49 CET 2007 - nadvornik@suse.cz
- fixed special characters quoting for bash 3.2 [#232411]
-------------------------------------------------------------------
Wed Oct 4 15:34:51 CEST 2006 - nadvornik@suse.cz
- built with --with-samba [#207643]
- fixed displaying of nlink column in utf8 mode [#194715]
- spec file cleanup [#194392]
-------------------------------------------------------------------
Wed Jun 7 12:30:32 CEST 2006 - nadvornik@suse.cz
- fixes for Slang2 [#177920, #176327]
-------------------------------------------------------------------
Tue Apr 18 15:03:49 CEST 2006 - schwab@suse.de
- Revert last change, kernel headers have been fixed.
-------------------------------------------------------------------
Tue Apr 18 13:09:49 CEST 2006 - nadvornik@suse.cz
- fixed check for umode_t; it fixes compilation on ppc64
-------------------------------------------------------------------
Fri Apr 7 12:28:29 CEST 2006 - lmichnovic@suse.cz
- adjusted ogg file opening (updated apps.patch)
-------------------------------------------------------------------
Mon Mar 13 15:50:32 CET 2006 - nadvornik@suse.cz
- make sure that backgrounded applications do not write
to terminal [#153178]
- use realplay if available
- recognize .hpp files
-------------------------------------------------------------------
Tue Mar 7 19:28:34 CET 2006 - lmichnovic@suse.cz
- fixed bash specific syntax in /etc/profile.d/mc.sh [#155644]
(updated wrapper.patch)
- changed default application to open images with from xv to display
(updated apps.patch)
-------------------------------------------------------------------
Thu Feb 9 17:23:10 CET 2006 - nadvornik@suse.cz
- fixed switching long panels [143265]
- fixed crash on error in getpwuid
-------------------------------------------------------------------
Tue Feb 7 01:55:08 CET 2006 - ro@suse.de
- fix build for < 10.1
-------------------------------------------------------------------
Fri Jan 27 02:12:15 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Tue Jan 24 16:55:56 CET 2006 - nadvornik@suse.cz
- used exported bash function in mc wrapper [#127769]
- fixed crash during renaming UTF-8 filenames [#131997]
-------------------------------------------------------------------
Thu Jan 12 16:31:10 CET 2006 - nadvornik@suse.cz
- compile with -fstack-protector
-------------------------------------------------------------------
Wed Oct 12 14:04:16 CEST 2005 - nadvornik@suse.cz
- added patch for slang2
-------------------------------------------------------------------
Wed Aug 10 11:15:24 CEST 2005 - nadvornik@suse.cz
- added .tbz2 and .djvu extension [fixes #98447]
-------------------------------------------------------------------
Mon Aug 1 14:34:19 CEST 2005 - nadvornik@suse.cz
- updated to final 4.6.1
-------------------------------------------------------------------
Thu Apr 14 17:17:06 CEST 2005 - sbrabec@suse.cz
- Added audiofile-devel to neededforbuild.
-------------------------------------------------------------------
Mon Mar 7 12:20:39 CET 2005 - nadvornik@suse.cz
- updated external applications
-------------------------------------------------------------------
Mon Jan 24 10:21:20 CET 2005 - meissner@suse.de
- 0 -> NULL in one glib call.
-------------------------------------------------------------------
Fri Jan 21 12:39:04 CET 2005 - nadvornik@suse.cz
- updated to 4.6.1-pre3
-------------------------------------------------------------------
Fri Nov 12 14:36:08 CET 2004 - ro@suse.de
- correct permissions handling for /usr/lib/mc/cons.saver
-------------------------------------------------------------------
Sat Oct 23 15:48:38 CEST 2004 - mmj@suse.de
- rename no til nb
-------------------------------------------------------------------
Fri Sep 10 11:59:41 CEST 2004 - nadvornik@suse.cz
- fixed quoting in extfs script CAN-2004-0494 [#43151]
- fixed show_output_starts_shell option [#44777]
- fixed mcedit crash [#43178]
-------------------------------------------------------------------
Wed Jun 30 12:28:00 CEST 2004 - nadvornik@suse.cz
- many fixes in UTF8 patches
- fixed freeze on rar archives with password [#41591]
- allow large screen size [#41475]
-------------------------------------------------------------------
Fri Apr 23 12:16:56 CEST 2004 - nadvornik@suse.cz
- fixed various buffer overflows and temp file handling [#38577]
- fixed crash on broken UTF-8 characters in directory name [#39309]
-------------------------------------------------------------------
Wed Mar 31 17:12:28 CEST 2004 - nadvornik@suse.cz
- fixed sort options in mc-posix_options.diff
-------------------------------------------------------------------
Wed Mar 31 11:08:02 CEST 2004 - nadvornik@suse.cz
- do not strip UTF-8 characters from prompt and xterm title [#37542]
-------------------------------------------------------------------
Thu Mar 25 15:28:13 CET 2004 - nadvornik@suse.cz
- fixed crash with NULL return from getpwuid [#36867]
-------------------------------------------------------------------
Thu Mar 18 15:24:29 CET 2004 - nadvornik@suse.cz
- fixed another crash in slang
-------------------------------------------------------------------
Mon Mar 15 12:16:16 CET 2004 - nadvornik@suse.cz
- fixed external applications
-------------------------------------------------------------------
Thu Mar 11 12:11:15 CET 2004 - nadvornik@suse.cz
- better fix for the crash is slang
- various fixes in utf8 patch
-------------------------------------------------------------------
Tue Mar 09 11:33:34 CET 2004 - nadvornik@suse.cz
- fixed crash if TERM is unset
- fixed viewing files in tar archives
-------------------------------------------------------------------
Mon Mar 08 17:41:36 CET 2004 - nadvornik@suse.cz
- fixed forward/backward word functions in utf8 patch
-------------------------------------------------------------------
Fri Mar 05 18:51:45 CET 2004 - nadvornik@suse.cz
- fixes in utf8 patches
- do not let XOpenDisplay exit [#31960]
-------------------------------------------------------------------
Mon Mar 01 17:55:14 CET 2004 - nadvornik@suse.cz
- added utf8 support in commandline, viewer and editor
-------------------------------------------------------------------
Wed Feb 18 17:42:19 CET 2004 - sbrabec@suse.cz
- Added all available UTF-8 patches (mostly from from Jakub Jelinek
<jakub@redhat.com>).
-------------------------------------------------------------------
Sat Jan 10 12:54:19 CET 2004 - adrian@suse.de
- build as user
-------------------------------------------------------------------
Thu Jan 8 12:14:26 CET 2004 - pthomas@suse.de
- Fix the handling of symlinks inside tarballs which would lead
to a segfault with suitably constructed tarballs.
-------------------------------------------------------------------
Fri Aug 29 15:52:15 CEST 2003 - pthomas@suse.de
- Change extfs commands to use posix conforming options
for head and sort. (#29657)
-------------------------------------------------------------------
Tue Jul 15 16:39:50 CEST 2003 - sbrabec@suse.cz
- Autoreconf with GNOME prefix.
-------------------------------------------------------------------
Fri Jun 13 08:31:45 CEST 2003 - kukuk@suse.de
- Fix filelist
-------------------------------------------------------------------
Fri Apr 4 11:56:21 CEST 2003 - pthomas@suse.de
- Enable character set conversion by compiling with
--enable-charset.
-------------------------------------------------------------------
Wed Feb 26 16:03:46 CET 2003 - pthomas@suse.de
- Fix the bug that leads to a segfault when viewing
files and simplify the range check.
- Get rid of the caddr_t anachronism.
- Use g_try_malloc when using glib2, as g_malloc terminates
the application when it fails .....
-------------------------------------------------------------------
Mon Feb 17 19:17:22 CET 2003 - pthomas@suse.de
- Update to 4.6.0 which officially removes gmc.
- Get rid of now obsolete patches and adapt those that
still apply.
-------------------------------------------------------------------
Tue Feb 4 11:12:45 CET 2003 - pthomas@suse.de
- Only include %{_libdir}/mc in files on biarch platforms.
-------------------------------------------------------------------
Mon Jan 27 15:27:51 CET 2003 - pthomas@suse.de
- Drop gmc sub package.
- Also check for ksh in mc.sh to decide whether or not to use
'export -f'
-------------------------------------------------------------------
Mon Nov 11 11:26:13 CET 2002 - ro@suse.de
- changed neededforbuild <jade_dsl> to <openjade>
- changed neededforbuild <sp> to <opensp>
- changed neededforbuild <sp-devel> to <>
-------------------------------------------------------------------
Wed Oct 23 19:04:57 CEST 2002 - sbrabec@suse.cz
- Fixed dangling symlink for mcview.
-------------------------------------------------------------------
Fri Sep 27 14:34:17 CEST 2002 - ro@suse.de
- Added alsa alsa-devel to neededforbuild (esound)
-------------------------------------------------------------------
Mon Sep 16 12:18:03 CEST 2002 - pthomas@suse.de
- Make mc use the system supplied slang library.
-------------------------------------------------------------------
Wed Sep 11 13:36:00 CEST 2002 - pthomas@suse.de
- Make full eight bits input the default (bug #15721).
- Use the gnome macros supplied with gnome-common.
- Use file type rather then regex to identify Word documents.
- Use wvText instead of word2x for displaying MS Word documents.
-------------------------------------------------------------------
Tue Aug 20 02:24:54 CEST 2002 - mmj@suse.de
- Correct PreReq
-------------------------------------------------------------------
Fri Aug 2 17:33:37 CEST 2002 - pthomas@suse.de
- Fix building with older versions of ext2fs lib
(AKA older distributions):
- Make configure check for presence of ext2_ino_t in ext2fs.h.
- Use test result in vfs/undelfs.c
-------------------------------------------------------------------
Sat Jul 27 15:43:47 CEST 2002 - adrian@suse.de
- fix %pre script and neededforbuild
-------------------------------------------------------------------
Fri May 31 15:57:21 CEST 2002 - ro@suse.de
- changed neededforbuild <slang> to <slang slang-devel>
-------------------------------------------------------------------
Mon Apr 8 15:26:06 CEST 2002 - ro@suse.de
- run gettextize
-------------------------------------------------------------------
Fri Mar 15 13:26:57 CET 2002 - pthomas@suse.de
- Use w3m instead of lynx for html. Fixes #15012
-------------------------------------------------------------------
Thu Feb 7 12:10:40 MET 2002 - mmj@suse.de
- ... and then fix a stupid typo in the below fix...
-------------------------------------------------------------------
Thu Feb 7 11:40:16 MET 2002 - mmj@suse.de
- Fixed the below thing in a more POSIX compliant way
-------------------------------------------------------------------
Tue Feb 5 17:20:14 CET 2002 - mmj@suse.de
- Added missing function to ms.sh
-------------------------------------------------------------------
Fri Feb 1 00:26:05 CET 2002 - ro@suse.de
- changed neededforbuild <libpng> to <libpng-devel-packages>
-------------------------------------------------------------------
Thu Jan 24 12:16:05 CET 2002 - okir@suse.de
- fixed various tempfile races (mostly with unpacking/packing
of compressed files for editing)
-------------------------------------------------------------------
Mon Jan 14 18:08:58 CET 2002 - egmont@suselinux.hu
- Removed rpmview patch, no longer needed since 4.5.55.
-------------------------------------------------------------------
Thu Dec 6 18:44:51 CET 2001 - pthomas@suse.de
- Include *all* gnome autoconf macros needed to
rebuild aclocal.m4.
-------------------------------------------------------------------
Fri Nov 30 15:08:32 CET 2001 - ro@suse.de
- changed neededforbuild <docbktls> to <docbook-toys>
-------------------------------------------------------------------
Mon Nov 26 15:54:59 CET 2001 - pthomas@suse.de
- Update to 4.5.55.
- Enable large file support.
- Gracefully handle the case when file size exceeds what
g_malloc can handle.
- Don't hard-code the GUI web browser but call a script that
uses whatever's installed.
- Use ext2_ino_t instead of ino_t.
- Add German hints.
-------------------------------------------------------------------
Thu Oct 18 15:52:35 CEST 2001 - egmont@suselinux.hu
- F3 on an RPM shows sane output (kind of rpm -qilp) instead of raw
binary.
-------------------------------------------------------------------
Thu Sep 20 20:57:05 CEST 2001 - pthomas@suse.de
- Fix handling of RPMs. This isn't a final fix, but at least
avoids the error.
-------------------------------------------------------------------
Tue Sep 4 11:10:21 CEST 2001 - kukuk@suse.de
- Removed smbclnt requires
-------------------------------------------------------------------
Mon Aug 27 10:52:21 CEST 2001 - kukuk@suse.de
- Removed samba-client, not need any longer
-------------------------------------------------------------------
Mon Aug 27 10:02:15 CEST 2001 - ro@suse.de
- replaced <smbclnt> by <samba-client> in neededforbuild
-------------------------------------------------------------------
Wed Aug 15 04:28:20 CEST 2001 - pthomas@suse.de
- Redo declaration fixes.
- Drop samba support, it's dependencies cause too much trouble.
- Reduce compiler warnings.
- Require autoconf 2.53 as this allows use of AC_CHECK_DECLS
- Use AC_CHECK_DECLS to properly control local prototypes.
-------------------------------------------------------------------
Mon Aug 13 15:51:56 CEST 2001 - ro@suse.de
- changed neededforbuild <sp_libs> to <sp-devel>
-------------------------------------------------------------------
Sat Aug 11 17:25:44 CEST 2001 - schwab@suse.de
- Fix missing declarations *again*.
-------------------------------------------------------------------
Tue Jul 31 17:40:25 CEST 2001 - cstein@suse.de
- wrote an assembly language syntax highlighting for mcedit
(Intel syntax)
-------------------------------------------------------------------
Sat Jul 7 16:50:21 MEST 2001 - egger@suse.de
- Updated to version 4.5.54.
- Had to remove a few patches to make it build.
- Buildproofed on all architectures.
-------------------------------------------------------------------
Wed Jun 27 11:10:39 CEST 2001 - cstein@suse.de
- Modified mc to include some helpful functions for palm pilot
users; modifications added as patch 30 (see spec file)
-------------------------------------------------------------------
Mon Jun 11 17:24:50 CEST 2001 - pthomas@suse.de
- Create missing stamp-h.in that prevented mc to build.
- Don't use --with-gpm-mouse on s390
-------------------------------------------------------------------
Sat May 12 17:54:24 CEST 2001 - schwab@suse.de
- Fix missing declarations.
-------------------------------------------------------------------
Wed May 9 16:58:37 CEST 2001 - pthomas@suse.de
- remove samba codepages and require smbclnt.
Fixes Bug #7924
- compress sources with bzip2
-------------------------------------------------------------------
Tue May 8 16:13:34 CEST 2001 - pthomas@suse.de
- Include codepages from samba package and modify source to
search them in /usr/lib/mc/codepages. Fixes bug #7647
-------------------------------------------------------------------
Fri Apr 20 15:17:26 CEST 2001 - pthomas@suse.de
- Fix call of suse_update_config macro.
- Remove offending multibyte sequence from Korean message
catalog and reenable building it.
-------------------------------------------------------------------
Wed Apr 18 10:49:41 CEST 2001 - pthomas@suse.de
- Disable building of the korean message catalog because
gettext 0.10.36 rejects it.
-------------------------------------------------------------------
Sat Apr 7 19:53:06 CEST 2001 - schwab@suse.de
- Correct handling of filenames in zoo and zip files.
Fixes Bug #6846.
- Add %suse_update_config.
- Fix configure check for off64_t and ino64_t.
-------------------------------------------------------------------
Sat Apr 7 06:38:35 CEST 2001 - pthomas@suse.de
- Remove regex match for *,[Dd]oc files and just rely on the
file type check. Add a second file type check as file(1) now
reports 'Microsoft office document'. Fixes Bug #6861
-------------------------------------------------------------------
Tue Mar 27 12:08:51 CEST 2001 - ro@suse.de
- changed neededforbuild <docbkdsl> to <docbook-dsssl-stylesheets>
-------------------------------------------------------------------
Tue Mar 20 04:09:56 CET 2001 - pthomas@suse.de
- Compile with samba and ext2 undelete support
- Add esound-devel and e2fsprogs-devel to neededforbuild
- Remove unnecessary checks from samba configure
- Add security fix for subshell
- Add security fix for cons.saver
-------------------------------------------------------------------
Tue Mar 13 12:58:39 CET 2001 - ro@suse.de
- added xf86 to neededforbuild
-------------------------------------------------------------------
Tue Mar 13 01:12:28 CET 2001 - ro@suse.de
- changed neededforbuild <docbk30> to <docbook_3>
-------------------------------------------------------------------
Sun Feb 25 18:28:47 MET 2001 - egger@suse.de
- Remove unnecessary dependencies from #neededforbuild,
especially imlib-config.
-------------------------------------------------------------------
Fri Feb 23 00:10:25 CET 2001 - ro@suse.de
- added readline/readline-devel to neededforbuild (split from bash)
-------------------------------------------------------------------
Tue Feb 20 15:11:12 CET 2001 - uli@suse.de
- fixed for new glibc
-------------------------------------------------------------------
Tue Jan 30 23:35:00 CET 2001 - ro@suse.de
- changed neededforbuild <imlibcfe> to <imlib-config>
-------------------------------------------------------------------
Sun Jan 21 11:04:06 CET 2001 - violiet@suse.de
- added eightbit-clean.patch to view/edit for Japanese and
Korean characters.
- added improvement Japanese latest .po from CVS.
- added improvement Korean .po and mc hint message file.
-------------------------------------------------------------------
Fri Dec 15 15:29:31 CET 2000 - hhetter@suse.de
- fix for dead link on startup-links, fixing bug id#4700
- changed startup-link URLs
-------------------------------------------------------------------
Tue Nov 21 17:46:13 CET 2000 - werner@suse.de
- Add kvt and gnome as valid TERMinals
- Add some newer xterm escape sequences (oldFunctionsKeys)
- console, linux xterm-color, kvt, and gnome are colored TERMinals
-------------------------------------------------------------------
Mon Nov 6 06:10:19 MET 2000 - pthomas@suse.de
- Remove version number from spec file name
- Add additional key definitions for mc.lib
- Clean up the spec file a bit.
-------------------------------------------------------------------
Sun Nov 5 15:20:14 CET 2000 - kukuk@suse.de
- adjust neededforbuild
-------------------------------------------------------------------
Wed Nov 1 01:21:05 MET 2000 - egger@suse.de
- Updated specfile to new long packagenames.
- Reworked specfile.
- Probably needs some more work; I'm taking care of that.
-------------------------------------------------------------------
Mon Sep 25 17:06:29 MEST 2000 - egger@suse.de
- Updated to 4.5.51.
- Buildproofed on i386.
-------------------------------------------------------------------
Wed May 31 01:06:40 CEST 2000 - baulig@suse.de
- update: 4.5.50.
-------------------------------------------------------------------
Sun May 28 03:18:02 CEST 2000 - baulig@suse.de
- update: 4.5.49.
- use %{ver} instead of the direct version number in tarball name.
-------------------------------------------------------------------
Mon Dec 13 16:07:55 MET 1999 - ke@suse.de
- update: 4.5.42.
-------------------------------------------------------------------
Thu Nov 18 13:51:38 CET 1999 - ke@suse.de
- update: 4.5.41.
- create HTML documentation (add SGML packages to neededfoarbuild...).
- add SuSE startup-link ;)
-------------------------------------------------------------------
Fri Oct 29 19:17:59 CEST 1999 - ke@suse.de
- fix /etc/opt/gnome vs. /opt/gnome/etc.
-------------------------------------------------------------------
Thu Oct 14 14:07:51 CEST 1999 - ke@suse.de
- update: 4.5.40.
- add some RH patches.
-------------------------------------------------------------------
Mon Sep 27 16:31:01 CEST 1999 - bs@suse.de
- fixed requirements for sub packages
-------------------------------------------------------------------
Fri Sep 24 17:56:53 MEST 1999 - ke@suse.de
- update: version 4.5.39.
-------------------------------------------------------------------
Fri Sep 17 13:56:05 MEST 1999 - ke@suse.de
- update: version 4.5.38.
-------------------------------------------------------------------
Mon Sep 13 17:23:57 CEST 1999 - bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
-------------------------------------------------------------------
Thu Jul 15 19:26:11 MEST 1999 - ke@suse.de
- update: version 4.5.37.
-------------------------------------------------------------------
Tue Jul 13 12:42:22 MEST 1999 - bs@suse.de
- use gtk and glib instead of gtkn and glibn
-------------------------------------------------------------------
Mon Jul 12 10:02:58 MEST 1999 - ke@suse.de
- update: version 4.5.36.
-------------------------------------------------------------------
Tue Jun 8 18:20:36 MEST 1999 - kukuk@suse.de
- Add pam to needforbuild
-------------------------------------------------------------------
Sun May 30 15:55:33 MEST 1999 - ke@suse.de
- update: version 4.5.33.
-------------------------------------------------------------------
Tue Apr 13 14:01:38 MEST 1999 - ke@suse.de
- update: version 4.5.30 (security fixes - /tmp exploids...).
-------------------------------------------------------------------
Tue Apr 6 15:08:24 MEST 1999 - ro@suse.de
- only link gmc.gnorba for /etc/opt/gnome/CORBA/servers
-------------------------------------------------------------------
Mon Apr 5 14:26:29 MEST 1999 - bs@suse.de
- fixed date strings in .changes.
-------------------------------------------------------------------
Mon Apr 5 13:50:27 MEST 1999 - bs@suse.de
- use absolute links to prevent problems with a symlinked /opt.
-------------------------------------------------------------------
Sun Mar 14 13:29:52 MET 1999 - ke@suse.de
- update: version 4.5.25.
-------------------------------------------------------------------
Wed Mar 10 15:05:18 MET 1999 - ke@suse.de
- update: version 4.5.24.
-------------------------------------------------------------------
Thu Mar 4 09:36:07 MET 1999 - ke@suse.de
- update: version 4.5.23 (bugfix release).
- filelist.
-------------------------------------------------------------------
Sat Feb 27 15:57:05 MET 1999 - ke@suse.de
- update: version 4.5.22 (bugfix release).
-------------------------------------------------------------------
Fri Feb 26 15:51:18 MET 1999 - ke@suse.de
- update: version 4.5.21 (bugfix release).
- --disable-nls (it makes mc segfault).
- now, the text oriented part of the package (mc.rpm) lives under /usr
again.
-------------------------------------------------------------------
Wed Feb 17 09:05:02 MET 1999 - ke@suse.de
- update: version 4.5.17 (bugfix release).
- use sysconfdir=/etc/opt/gnome.
- #neededforbuild: add esound and audiofil.
-------------------------------------------------------------------
Sun Feb 14 10:39:24 MET 1999 - ke@suse.de
- update: version 4.5.14 (bugfix release).
-------------------------------------------------------------------
Thu Feb 11 10:53:07 MET 1999 - ke@suse.de
- update: version 4.5.13.
-------------------------------------------------------------------
Sat Feb 6 01:23:59 MET 1999 - ro@suse.de
- fixed neededforbuild
-------------------------------------------------------------------
Thu Feb 4 10:40:51 MET 1999 - ke@suse.de
- update: version 4.5.10.
- now, there's the subpackage `gmc' containing the GNOME compliant version
of mc.
- make the package BuildRoot capable.
-------------------------------------------------------------------
Wed Dec 9 12:47:08 MET 1998 - ke@suse.de
- update to mc 4.1.36 (bugfix release).
-------------------------------------------------------------------
Thu Sep 24 21:18:27 MEST 1998 - ke@suse.de
- enable NLS.
- install documentation and COPYING via the %doc macro.
-------------------------------------------------------------------
Tue Sep 22 17:51:18 MEST 1998 - ro@suse.de
- update to mc 4.1.35 using diff from jurix mirror
merged changes to mc.lib from mc-4.1.11-suse and current (+ibmpc3)
----------------------------------------------------------------------------
Wed Nov 19 13:01:54 MET 1997 - florian@suse.de
- update to mc 4.1.11
----------------------------------------------------------------------------
Sun Nov 16 23:10:51 MET 1997 - florian@suse.de
- oops, forgot mc.lib-changes from Werner
----------------------------------------------------------------------------
Fri Oct 10 13:16:04 MEST 1997 - florian@suse.de
- update to version 4.1.4
----------------------------------------------------------------------------
Sun Jun 22 18:57:49 MEST 1997 - florian@suse.de
- update to version 4.0
----------------------------------------------------------------------------
Wed May 28 17:03:24 MET DST 1997 - werner@suse.de
- new mc.lib added
----------------------------------------------------------------------------
Wed Jan 22 22:24:11 CET 1997 - florian@suse.de
- enable gpm support
----------------------------------------------------------------------------
Tue Nov 26 20:15:03 CET 1996 - florian@suse.de
- update to version 3.2.11
----------------------------------------------------------------------------
Mon Sep 2 17:49:41 MET DST 1996 - florian@suse.de
- Es wird nicht mehr mit libgpm-Unterstuetzung kompiliert, da slang
und libgpm sich nicht vertragen. (libgpm laed libncurses, das geht
mit libslang.a nicht...)
----------------------------------------------------------------------
Sun Aug 25 19:28:50 MET DST 1996
new version 3.2.7
for screen output, mc now uses the slang library and not the ncurses functions
directly

625
mc.spec Normal file
View File

@ -0,0 +1,625 @@
#
# spec file for package mc (Version 4.6.1)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: mc
BuildRequires: audiofile-devel docbook-toys e2fsprogs-devel glib2-devel indent jpeg libjpeg-devel libpng-devel readline-devel recode slang-devel xorg-x11-devel
%define _prefix /usr
License: GNU General Public License (GPL)
Group: Productivity/File utilities
PreReq: permissions
Autoreqprov: on
Version: 4.6.1
Release: 68
Summary: Midnight Commander
Source: mc-4.6.1.tar.bz2
Source1: x11_browser
Patch1: mc-CVS-utf8.patch
Patch2: mc-CVS-utf8-fix.patch
Patch3: mc-CVS-utf8-input.patch
Patch4: mc-CVS-utf8-hint.patch
Patch5: mc-CVS-utf8-help.patch
Patch6: mc-CVS-msglen.patch
Patch7: 00-70-utf8-common.patch
Patch8: 00-72-utf8-dialog-title.patch
Patch9: 00-73-utf8-bottom-buttons-width.patch
Patch10: 00-74-utf8-dialog-filename-truncate.patch
Patch11: 00-75-utf8-cmdline-help.patch
Patch12: 00-76-utf8-hotlist-highlight.patch
Patch13: 00-77-utf8-filename-search-highlight.patch
Patch14: 00-78-utf8-filename-search-input.patch
Patch15: 00-80-utf8-help-line-drawing-art.patch
Patch16: mc-4.6.1-apps.patch
Patch18: mc-4.6.1-palmsupport.patch
Patch19: mc-4.6.1-word_docs.patch
Patch20: mc-4.6.1-x11browser.diff
Patch21: mc-4.6.1-no-nb.diff
Patch22: mc-4.6.1-unrar-passwd.patch
Patch23: mc-4.6.1-NULL.patch
Patch24: mc-utf8-slang2.patch
Patch25: mc-4.6.1-wrapper.patch
Patch26: mc-4.6.1-long-panel.patch
Patch27: mc-4.6.1-getpwuid.patch
Patch28: mc-4.6.1-syntax-hpp.patch
Patch29: mc-utf8-nlink.patch
Patch30: mc-4.6.1-bash-all.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
URL: http://www.ibiblio.org/mc/
%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).
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.
Authors:
--------
Miguel de Icaza <miguel@roxanne.nuclecu.unam.mx>
Alexander Savelyev <fano@vcom.kiev.ua>
Andrej Borsenkow <borsenkow.msk@sni.de>
Andrew T. Veliath <andrewtv@usa.net>
Christian GENNERAT <christian.gennerat@alcatel.fr>
David Martin <dmartina@usa.net>
Dugan Orlando Porter <dugan@b011.eunet.es>
Federico Mena Quintero <federico@redhat.com>
Fred Leeflang <fredl@nebula.ow.nl>
Ilya Zakharevich <ilya@math.ohio-state.edu>
Jakub Jelinek <jj@sunsite.mff.cuni.cz>
Janne Kukonlehto <jtklehto@paju.oulu.fi>
Kjartan Maraas <kmaraas@online.no>
Mauricio Plaza <mok@roxanne.nuclecu.unam.mx>
Norbert Warmuth <nwarmuth@privat.circular.de>
Owen Taylor <otaylor@redhat.com>
Paul Sheer <psheer@obsidian.co.za>
Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
Pavel Roskin <pavel_roskin@geocities.com>
Peter Kleiweg <kleiweg@let.rug.nl>
Radek Doulik <rodo@earn.cvut.cz>
Raja R Harinath <harinath@cs.umn.edu>
Sebastian Wilhelmi <wilhelmi@ira.uka.de>
Sergey Korshunoff <seyko@p5.f434.n5020.z2.fidonet.org>
Sung-Hyun Nam <namsh@lgic.co.kr>
Timur I. Bakeyev <mc@bat.ru>
Tuomas J. Lukka <lukka@iki.fi>
Wayne Roberts <wroberts1@cx983858-b.orng1.occa.home.com>
%define INSTALL install -m755 -s
%define INSTALL_DIR install -d -m755
%define INSTALL_DATA install -m644
%prep
%setup -q
%patch1 -p 1
%patch2 -p 1
%patch3 -p 1
%patch4 -p 1
%patch5 -p 1
%patch6 -p 1
%patch7 -p 1
%patch8 -p 1
%patch9 -p 1
%patch10 -p 1
%patch11 -p 1
%patch12 -p 1
%patch13 -p 1
%patch14 -p 1
%patch15 -p 1
%patch16
%patch18 -p 1
%patch19
%patch20
%patch21
%patch22
%patch23 -p 1
%patch24
%patch25
%patch26
%patch27
%patch28
%patch29
%patch30
cd po
rename no nb no.*
cd ../lib
iconv -f iso8859-1 -t utf-8 -o mc.hint.tmp mc.hint && mv mc.hint.tmp mc.hint
iconv -f iso8859-1 -t utf-8 -o mc.hint.es.tmp mc.hint.es && mv mc.hint.es.tmp mc.hint.es
iconv -f iso8859-1 -t utf-8 -o mc.hint.it.tmp mc.hint.it && mv mc.hint.it.tmp mc.hint.it
iconv -f iso8859-1 -t utf-8 -o mc.hint.nl.tmp mc.hint.nl && mv mc.hint.nl.tmp mc.hint.nl
iconv -f iso8859-2 -t utf-8 -o mc.hint.cs.tmp mc.hint.cs && mv mc.hint.cs.tmp mc.hint.cs
iconv -f iso8859-2 -t utf-8 -o mc.hint.hu.tmp mc.hint.hu && mv mc.hint.hu.tmp mc.hint.hu
iconv -f iso8859-2 -t utf-8 -o mc.hint.pl.tmp mc.hint.pl && mv mc.hint.pl.tmp mc.hint.pl
iconv -f koi8-r -t utf8 -o mc.hint.ru.tmp mc.hint.ru && mv mc.hint.ru.tmp mc.hint.ru
iconv -f koi8-u -t utf8 -o mc.hint.uk.tmp mc.hint.uk && mv mc.hint.uk.tmp mc.hint.uk
iconv -f big5 -t utf8 -o mc.hint.zh.tmp mc.hint.zh && mv mc.hint.zh.tmp mc.hint.zh
# convert docs to utf-8
cd ../doc
pushd es
iconv -f iso8859-1 -t utf-8 -o mc.1.in.tmp mc.1.in && mv mc.1.in.tmp mc.1.in
iconv -f iso8859-1 -t utf-8 -o xnc.hlp.tmp xnc.hlp && mv xnc.hlp.tmp xnc.hlp
popd
pushd hu
iconv -f iso8859-2 -t utf-8 -o mc.1.in.tmp mc.1.in && mv mc.1.in.tmp mc.1.in
iconv -f iso8859-2 -t utf-8 -o xnc.hlp.tmp xnc.hlp && mv xnc.hlp.tmp xnc.hlp
popd
pushd it
iconv -f iso8859-1 -t utf-8 -o mc.1.in.tmp mc.1.in && mv mc.1.in.tmp mc.1.in
iconv -f iso8859-1 -t utf-8 -o xnc.hlp.tmp xnc.hlp && mv xnc.hlp.tmp xnc.hlp
popd
pushd pl
iconv -f iso8859-2 -t utf-8 -o mc.1.in.tmp mc.1.in && mv mc.1.in.tmp mc.1.in
iconv -f iso8859-2 -t utf-8 -o xnc.hlp.tmp xnc.hlp && mv xnc.hlp.tmp xnc.hlp
popd
pushd ru
iconv -f koi8-r -t utf-8 -o mc.1.in.tmp mc.1.in && mv mc.1.in.tmp mc.1.in
iconv -f koi8-r -t utf-8 -o xnc.hlp.tmp xnc.hlp && mv xnc.hlp.tmp xnc.hlp
popd
%build
autoreconf --force --install
%define warn_flags -W -Wall -Wstrict-prototypes -Wpointer-arith -Wformat-security -Wno-unused-parameter
%if %suse_version > 1000
export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -fstack-protector"
%endif
CFLAGS="$RPM_OPT_FLAGS %{warn_flags}"
# LIBS=-L/usr/X11R6/lib
# _libdir=%{_libdir}
export CFLAGS #LIBS _libdir
./configure \
--mandir=%{_mandir} \
--prefix=%{_prefix} \
--localstatedir=/var/lib \
--libdir=%{_libdir} \
--enable-charset \
--with-samba
make
%install
make DESTDIR=%{buildroot} install
# clean up this setuid problem for now
chmod 755 %{buildroot}/%{_libdir}/mc/cons.saver
# copy Korean mc hint message,
# install -m 0644 %{SOURCE3} %{datadir}/mc/
#install the shell functions for bourne shell and csh
mkdir -p %{buildroot}/etc/profile.d
install -m 0644 lib/mc.sh lib/mc.csh %{buildroot}/etc/profile.d
#support script for calling available GUI webbrosers
install -m 755 %{SOURCE1} %{buildroot}/usr/share/mc/bin
%{find_lang} %{name}
%clean
rm -rf %{buildroot}
%post
%run_permissions
%verifyscript
%verify_permissions -e /usr/lib/mc/cons.saver
%files -f %{name}.lang
%defattr(-, root, root)
%doc ABOUT-NLS COPYING NEWS README
%config /etc/profile.d/*
%{_bindir}/mc*
%dir %{_prefix}/%{_lib}/mc
%verify(not mode) %{_prefix}/%{_lib}/mc/cons.saver
%{_mandir}/man1/*
#%{_mandir}/man3/*
%lang(es) %doc %{_mandir}/es
%lang(hu) %doc %{_mandir}/hu
%lang(it) %doc %{_mandir}/it
%lang(pl) %doc %{_mandir}/pl
%lang(ru) %doc %{_mandir}/ru
%lang(sr) %doc %{_mandir}/sr
%{_datadir}/mc
%changelog -n mc
* Mon Jan 15 2007 - nadvornik@suse.cz
- fixed special characters quoting for bash 3.2 [#232411]
* Wed Oct 04 2006 - nadvornik@suse.cz
- built with --with-samba [#207643]
- fixed displaying of nlink column in utf8 mode [#194715]
- spec file cleanup [#194392]
* Wed Jun 07 2006 - nadvornik@suse.cz
- fixes for Slang2 [#177920, #176327]
* Tue Apr 18 2006 - schwab@suse.de
- Revert last change, kernel headers have been fixed.
* Tue Apr 18 2006 - nadvornik@suse.cz
- fixed check for umode_t; it fixes compilation on ppc64
* Fri Apr 07 2006 - lmichnovic@suse.cz
- adjusted ogg file opening (updated apps.patch)
* Mon Mar 13 2006 - nadvornik@suse.cz
- make sure that backgrounded applications do not write
to terminal [#153178]
- use realplay if available
- recognize .hpp files
* Tue Mar 07 2006 - lmichnovic@suse.cz
- fixed bash specific syntax in /etc/profile.d/mc.sh [#155644]
(updated wrapper.patch)
- changed default application to open images with from xv to display
(updated apps.patch)
* Thu Feb 09 2006 - nadvornik@suse.cz
- fixed switching long panels [143265]
- fixed crash on error in getpwuid
* Tue Feb 07 2006 - ro@suse.de
- fix build for < 10.1
* Fri Jan 27 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Jan 24 2006 - nadvornik@suse.cz
- used exported bash function in mc wrapper [#127769]
- fixed crash during renaming UTF-8 filenames [#131997]
* Thu Jan 12 2006 - nadvornik@suse.cz
- compile with -fstack-protector
* Wed Oct 12 2005 - nadvornik@suse.cz
- added patch for slang2
* Wed Aug 10 2005 - nadvornik@suse.cz
- added .tbz2 and .djvu extension [fixes #98447]
* Mon Aug 01 2005 - nadvornik@suse.cz
- updated to final 4.6.1
* Thu Apr 14 2005 - sbrabec@suse.cz
- Added audiofile-devel to neededforbuild.
* Mon Mar 07 2005 - nadvornik@suse.cz
- updated external applications
* Mon Jan 24 2005 - meissner@suse.de
- 0 -> NULL in one glib call.
* Fri Jan 21 2005 - nadvornik@suse.cz
- updated to 4.6.1-pre3
* Fri Nov 12 2004 - ro@suse.de
- correct permissions handling for /usr/lib/mc/cons.saver
* Sat Oct 23 2004 - mmj@suse.de
- rename no til nb
* Fri Sep 10 2004 - nadvornik@suse.cz
- fixed quoting in extfs script CAN-2004-0494 [#43151]
- fixed show_output_starts_shell option [#44777]
- fixed mcedit crash [#43178]
* Wed Jun 30 2004 - nadvornik@suse.cz
- many fixes in UTF8 patches
- fixed freeze on rar archives with password [#41591]
- allow large screen size [#41475]
* Fri Apr 23 2004 - nadvornik@suse.cz
- fixed various buffer overflows and temp file handling [#38577]
- fixed crash on broken UTF-8 characters in directory name [#39309]
* Wed Mar 31 2004 - nadvornik@suse.cz
- fixed sort options in mc-posix_options.diff
* Wed Mar 31 2004 - nadvornik@suse.cz
- do not strip UTF-8 characters from prompt and xterm title [#37542]
* Thu Mar 25 2004 - nadvornik@suse.cz
- fixed crash with NULL return from getpwuid [#36867]
* Thu Mar 18 2004 - nadvornik@suse.cz
- fixed another crash in slang
* Mon Mar 15 2004 - nadvornik@suse.cz
- fixed external applications
* Thu Mar 11 2004 - nadvornik@suse.cz
- better fix for the crash is slang
- various fixes in utf8 patch
* Tue Mar 09 2004 - nadvornik@suse.cz
- fixed crash if TERM is unset
- fixed viewing files in tar archives
* Mon Mar 08 2004 - nadvornik@suse.cz
- fixed forward/backward word functions in utf8 patch
* Fri Mar 05 2004 - nadvornik@suse.cz
- fixes in utf8 patches
- do not let XOpenDisplay exit [#31960]
* Mon Mar 01 2004 - nadvornik@suse.cz
- added utf8 support in commandline, viewer and editor
* Wed Feb 18 2004 - sbrabec@suse.cz
- Added all available UTF-8 patches (mostly from from Jakub Jelinek
<jakub@redhat.com>).
* Sat Jan 10 2004 - adrian@suse.de
- build as user
* Thu Jan 08 2004 - pthomas@suse.de
- Fix the handling of symlinks inside tarballs which would lead
to a segfault with suitably constructed tarballs.
* Fri Aug 29 2003 - pthomas@suse.de
- Change extfs commands to use posix conforming options
for head and sort. (#29657)
* Tue Jul 15 2003 - sbrabec@suse.cz
- Autoreconf with GNOME prefix.
* Fri Jun 13 2003 - kukuk@suse.de
- Fix filelist
* Fri Apr 04 2003 - pthomas@suse.de
- Enable character set conversion by compiling with
--enable-charset.
* Wed Feb 26 2003 - pthomas@suse.de
- Fix the bug that leads to a segfault when viewing
files and simplify the range check.
- Get rid of the caddr_t anachronism.
- Use g_try_malloc when using glib2, as g_malloc terminates
the application when it fails .....
* Mon Feb 17 2003 - pthomas@suse.de
- Update to 4.6.0 which officially removes gmc.
- Get rid of now obsolete patches and adapt those that
still apply.
* Tue Feb 04 2003 - pthomas@suse.de
- Only include %%{_libdir}/mc in files on biarch platforms.
* Mon Jan 27 2003 - pthomas@suse.de
- Drop gmc sub package.
- Also check for ksh in mc.sh to decide whether or not to use
'export -f'
* Mon Nov 11 2002 - ro@suse.de
- changed neededforbuild <jade_dsl> to <openjade>
- changed neededforbuild <sp> to <opensp>
- changed neededforbuild <sp-devel> to <>
* Wed Oct 23 2002 - sbrabec@suse.cz
- Fixed dangling symlink for mcview.
* Fri Sep 27 2002 - ro@suse.de
- Added alsa alsa-devel to neededforbuild (esound)
* Mon Sep 16 2002 - pthomas@suse.de
- Make mc use the system supplied slang library.
* Wed Sep 11 2002 - pthomas@suse.de
- Make full eight bits input the default (bug #15721).
- Use the gnome macros supplied with gnome-common.
- Use file type rather then regex to identify Word documents.
- Use wvText instead of word2x for displaying MS Word documents.
* Tue Aug 20 2002 - mmj@suse.de
- Correct PreReq
* Fri Aug 02 2002 - pthomas@suse.de
- Fix building with older versions of ext2fs lib
(AKA older distributions):
- Make configure check for presence of ext2_ino_t in ext2fs.h.
- Use test result in vfs/undelfs.c
* Sat Jul 27 2002 - adrian@suse.de
- fix %%pre script and neededforbuild
* Fri May 31 2002 - ro@suse.de
- changed neededforbuild <slang> to <slang slang-devel>
* Mon Apr 08 2002 - ro@suse.de
- run gettextize
* Fri Mar 15 2002 - pthomas@suse.de
- Use w3m instead of lynx for html. Fixes #15012
* Thu Feb 07 2002 - mmj@suse.de
- ... and then fix a stupid typo in the below fix...
* Thu Feb 07 2002 - mmj@suse.de
- Fixed the below thing in a more POSIX compliant way
* Tue Feb 05 2002 - mmj@suse.de
- Added missing function to ms.sh
* Fri Feb 01 2002 - ro@suse.de
- changed neededforbuild <libpng> to <libpng-devel-packages>
* Thu Jan 24 2002 - okir@suse.de
- fixed various tempfile races (mostly with unpacking/packing
of compressed files for editing)
* Mon Jan 14 2002 - egmont@suselinux.hu
- Removed rpmview patch, no longer needed since 4.5.55.
* Thu Dec 06 2001 - pthomas@suse.de
- Include *all* gnome autoconf macros needed to
rebuild aclocal.m4.
* Fri Nov 30 2001 - ro@suse.de
- changed neededforbuild <docbktls> to <docbook-toys>
* Mon Nov 26 2001 - pthomas@suse.de
- Update to 4.5.55.
- Enable large file support.
- Gracefully handle the case when file size exceeds what
g_malloc can handle.
- Don't hard-code the GUI web browser but call a script that
uses whatever's installed.
- Use ext2_ino_t instead of ino_t.
- Add German hints.
* Thu Oct 18 2001 - egmont@suselinux.hu
- F3 on an RPM shows sane output (kind of rpm -qilp) instead of raw
binary.
* Thu Sep 20 2001 - pthomas@suse.de
- Fix handling of RPMs. This isn't a final fix, but at least
avoids the error.
* Tue Sep 04 2001 - kukuk@suse.de
- Removed smbclnt requires
* Mon Aug 27 2001 - kukuk@suse.de
- Removed samba-client, not need any longer
* Mon Aug 27 2001 - ro@suse.de
- replaced <smbclnt> by <samba-client> in neededforbuild
* Wed Aug 15 2001 - pthomas@suse.de
- Redo declaration fixes.
- Drop samba support, it's dependencies cause too much trouble.
- Reduce compiler warnings.
- Require autoconf 2.53 as this allows use of AC_CHECK_DECLS
- Use AC_CHECK_DECLS to properly control local prototypes.
* Mon Aug 13 2001 - ro@suse.de
- changed neededforbuild <sp_libs> to <sp-devel>
* Sat Aug 11 2001 - schwab@suse.de
- Fix missing declarations *again*.
* Tue Jul 31 2001 - cstein@suse.de
- wrote an assembly language syntax highlighting for mcedit
(Intel syntax)
* Sat Jul 07 2001 - egger@suse.de
- Updated to version 4.5.54.
- Had to remove a few patches to make it build.
- Buildproofed on all architectures.
* Wed Jun 27 2001 - cstein@suse.de
- Modified mc to include some helpful functions for palm pilot
users; modifications added as patch 30 (see spec file)
* Mon Jun 11 2001 - pthomas@suse.de
- Create missing stamp-h.in that prevented mc to build.
- Don't use --with-gpm-mouse on s390
* Sat May 12 2001 - schwab@suse.de
- Fix missing declarations.
* Wed May 09 2001 - pthomas@suse.de
- remove samba codepages and require smbclnt.
Fixes Bug #7924
- compress sources with bzip2
* Tue May 08 2001 - pthomas@suse.de
- Include codepages from samba package and modify source to
search them in /usr/lib/mc/codepages. Fixes bug #7647
* Fri Apr 20 2001 - pthomas@suse.de
- Fix call of suse_update_config macro.
- Remove offending multibyte sequence from Korean message
catalog and reenable building it.
* Wed Apr 18 2001 - pthomas@suse.de
- Disable building of the korean message catalog because
gettext 0.10.36 rejects it.
* Sat Apr 07 2001 - schwab@suse.de
- Correct handling of filenames in zoo and zip files.
Fixes Bug #6846.
- Add %%suse_update_config.
- Fix configure check for off64_t and ino64_t.
* Sat Apr 07 2001 - pthomas@suse.de
- Remove regex match for *,[Dd]oc files and just rely on the
file type check. Add a second file type check as file(1) now
reports 'Microsoft office document'. Fixes Bug #6861
* Tue Mar 27 2001 - ro@suse.de
- changed neededforbuild <docbkdsl> to <docbook-dsssl-stylesheets>
* Tue Mar 20 2001 - pthomas@suse.de
- Compile with samba and ext2 undelete support
- Add esound-devel and e2fsprogs-devel to neededforbuild
- Remove unnecessary checks from samba configure
- Add security fix for subshell
- Add security fix for cons.saver
* Tue Mar 13 2001 - ro@suse.de
- added xf86 to neededforbuild
* Tue Mar 13 2001 - ro@suse.de
- changed neededforbuild <docbk30> to <docbook_3>
* Sun Feb 25 2001 - egger@suse.de
- Remove unnecessary dependencies from #neededforbuild,
especially imlib-config.
* Fri Feb 23 2001 - ro@suse.de
- added readline/readline-devel to neededforbuild (split from bash)
* Tue Feb 20 2001 - uli@suse.de
- fixed for new glibc
* Tue Jan 30 2001 - ro@suse.de
- changed neededforbuild <imlibcfe> to <imlib-config>
* Sun Jan 21 2001 - violiet@suse.de
- added eightbit-clean.patch to view/edit for Japanese and
Korean characters.
- added improvement Japanese latest .po from CVS.
- added improvement Korean .po and mc hint message file.
* Fri Dec 15 2000 - hhetter@suse.de
- fix for dead link on startup-links, fixing bug id#4700
- changed startup-link URLs
* Tue Nov 21 2000 - werner@suse.de
- Add kvt and gnome as valid TERMinals
- Add some newer xterm escape sequences (oldFunctionsKeys)
- console, linux xterm-color, kvt, and gnome are colored TERMinals
* Mon Nov 06 2000 - pthomas@suse.de
- Remove version number from spec file name
- Add additional key definitions for mc.lib
- Clean up the spec file a bit.
* Sun Nov 05 2000 - kukuk@suse.de
- adjust neededforbuild
* Wed Nov 01 2000 - egger@suse.de
- Updated specfile to new long packagenames.
- Reworked specfile.
- Probably needs some more work; I'm taking care of that.
* Mon Sep 25 2000 - egger@suse.de
- Updated to 4.5.51.
- Buildproofed on i386.
* Wed May 31 2000 - baulig@suse.de
- update: 4.5.50.
* Sun May 28 2000 - baulig@suse.de
- update: 4.5.49.
- use %%{ver} instead of the direct version number in tarball name.
* Mon Dec 13 1999 - ke@suse.de
- update: 4.5.42.
* Thu Nov 18 1999 - ke@suse.de
- update: 4.5.41.
- create HTML documentation (add SGML packages to neededfoarbuild...).
- add SuSE startup-link ;)
* Fri Oct 29 1999 - ke@suse.de
- fix /etc/opt/gnome vs. /opt/gnome/etc.
* Thu Oct 14 1999 - ke@suse.de
- update: 4.5.40.
- add some RH patches.
* Mon Sep 27 1999 - bs@suse.de
- fixed requirements for sub packages
* Fri Sep 24 1999 - ke@suse.de
- update: version 4.5.39.
* Fri Sep 17 1999 - ke@suse.de
- update: version 4.5.38.
* Mon Sep 13 1999 - bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Thu Jul 15 1999 - ke@suse.de
- update: version 4.5.37.
* Tue Jul 13 1999 - bs@suse.de
- use gtk and glib instead of gtkn and glibn
* Mon Jul 12 1999 - ke@suse.de
- update: version 4.5.36.
* Tue Jun 08 1999 - kukuk@suse.de
- Add pam to needforbuild
* Sun May 30 1999 - ke@suse.de
- update: version 4.5.33.
* Tue Apr 13 1999 - ke@suse.de
- update: version 4.5.30 (security fixes - /tmp exploids...).
* Tue Apr 06 1999 - ro@suse.de
- only link gmc.gnorba for /etc/opt/gnome/CORBA/servers
* Mon Apr 05 1999 - bs@suse.de
- fixed date strings in .changes.
* Mon Apr 05 1999 - bs@suse.de
- use absolute links to prevent problems with a symlinked /opt.
* Sun Mar 14 1999 - ke@suse.de
- update: version 4.5.25.
* Wed Mar 10 1999 - ke@suse.de
- update: version 4.5.24.
* Thu Mar 04 1999 - ke@suse.de
- update: version 4.5.23 (bugfix release).
- filelist.
* Sat Feb 27 1999 - ke@suse.de
- update: version 4.5.22 (bugfix release).
* Fri Feb 26 1999 - ke@suse.de
- update: version 4.5.21 (bugfix release).
- --disable-nls (it makes mc segfault).
- now, the text oriented part of the package (mc.rpm) lives under /usr
again.
* Wed Feb 17 1999 - ke@suse.de
- update: version 4.5.17 (bugfix release).
- use sysconfdir=/etc/opt/gnome.
- #neededforbuild: add esound and audiofil.
* Sun Feb 14 1999 - ke@suse.de
- update: version 4.5.14 (bugfix release).
* Thu Feb 11 1999 - ke@suse.de
- update: version 4.5.13.
* Sat Feb 06 1999 - ro@suse.de
- fixed neededforbuild
* Thu Feb 04 1999 - ke@suse.de
- update: version 4.5.10.
- now, there's the subpackage `gmc' containing the GNOME compliant version
of mc.
- make the package BuildRoot capable.
* Wed Dec 09 1998 - ke@suse.de
- update to mc 4.1.36 (bugfix release).
* Thu Sep 24 1998 - ke@suse.de
- enable NLS.
- install documentation and COPYING via the %%doc macro.
* Tue Sep 22 1998 - ro@suse.de
- update to mc 4.1.35 using diff from jurix mirror
merged changes to mc.lib from mc-4.1.11-suse and current (+ibmpc3)
* Wed Nov 19 1997 - florian@suse.de
- update to mc 4.1.11
* Sun Nov 16 1997 - florian@suse.de
- oops, forgot mc.lib-changes from Werner
* Fri Oct 10 1997 - florian@suse.de
- update to version 4.1.4
* Sun Jun 22 1997 - florian@suse.de
- update to version 4.0
* Wed May 28 1997 - werner@suse.de
- new mc.lib added
* Wed Jan 22 1997 - florian@suse.de
- enable gpm support
* Thu Jan 02 1997 - florian@suse.de
- update to version 3.2.11
* Thu Jan 02 1997 - florian@suse.de
- Es wird nicht mehr mit libgpm-Unterstuetzung kompiliert, da slang
und libgpm sich nicht vertragen. (libgpm laed libncurses, das geht
mit libslang.a nicht...)
Sun Aug 25 19:28:50 MET DST 1996
new version 3.2.7
for screen output, mc now uses the slang library and not the ncurses functions
directly

0
ready Normal file
View File

59
x11_browser Normal file
View File

@ -0,0 +1,59 @@
#!/bin/bash
#
# Call appropriate brower
#
# Copyright (c) 2001 Philipp Thomas <pthomas@suse.de>
#
# Borrowed heavily from url_handler.sh by Werner Fink <werner@suse.de>
#
url="$1"
method="${1%%:*}"
if test "$url" = "$method" ; then
case "${url}" in
*/*.htm|*/*.html) method=http ;;
*/*.htmls) method=https ;;
/*) if test -r "${url}" ; then
method=file
fi ;;
*) if test -r "$PWD/${url}" ; then
method=file
url="$PWD/${url}"
fi ;;
esac
case "$method" in
file) url="${method}:$url" ;;
*) url="${method}://$url" ;;
esac
fi
shift
case "$method" in
file|http|https)
http=
type -p lynx >& /dev/null && http=lynx
type -p links >& /dev/null && http=links
type -p w3m >& /dev/null && http=w3m
test -n "$DISPLAY" && type -p netscape >& /dev/null && http=netscape
test -n "$DISPLAY" && type -p Netscape >& /dev/null && http=Netscape
test -n "$DISPLAY" && type -p opera >& /dev/null && http=opera
test -n "$DISPLAY" && type -p mozilla >& /dev/null && http=mozilla
case "$http" in
[nN]etscape|opera|mozilla) ($http -remote "openURL($url)" || $http "$url") >/dev/null 2>&1 & ;;
lynx|w3m|links) exec $http "$url" ;;
*)
echo "No HTTP browser found."
read -p "Press return to continue: "
exit 0 # No error return
;;
esac
;;
*)
echo "URL type \"$method\" not known"
read -p "Press return to continue: "
exit 0 # No error return
;;
esac