Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37757790
en ru br
ALT Linux repos
S:4.8.30-alt3
5.0: 4.6.2-alt11.pre1
4.1: 4.6.2-alt7.pre1
4.0: 4.6.1r-alt9
3.0: 4.6.1r-alt3

Group :: File tools
RPM: mc

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: mc-4.8.30-alt2.patch
Download


 .gear/rules                                        |   5 +
 .../tags/360459a9c5e53bd0d36c269fd6c07db81d938ada  |  23 +
 .gear/tags/list                                    |   1 +
 alt-files/mc-16.png                                | Bin 0 -> 548 bytes
 alt-files/mc-32.png                                | Bin 0 -> 324 bytes
 alt-files/mc-dark.color                            |   4 +
 alt-files/mc-dnlike.color                          |   6 +
 alt-files/mc-f90.syntax                            | 278 +++++++
 alt-files/mc.zsh                                   |   3 +
 alt-files/synce-mcfs/README                        |  61 ++
 alt-files/synce-mcfs/src/extfs.ini.add             |   4 +
 alt-files/synce-mcfs/src/synce                     |  88 +++
 alt-files/synce-mcfs/src/synceroot                 |  89 +++
 alt-patches/mc-4.7.0-alt-po.patch                  |  22 +
 alt-patches/mc-4.7.5.1-alt-defaults.patch          |  12 +
 alt-patches/mc-4.8.20-alt-forceexec.patch          |  72 ++
 alt-patches/mc-4.8.20-alt-menu.patch               |  20 +
 alt-patches/mc-4.8.24-alt-wrapper.patch            |  18 +
 alt-patches/mc-4.8.25-python3.patch                |  70 ++
 alt-patches/mc-4.8.30-alt-extfs-udar.patch         | 136 ++++
 alt-patches/mc-4.8.30-savannah-edit-homekey.patch  |  40 +
 mc.spec                                            | 837 +++++++++++++++++++++
 22 files changed, 1789 insertions(+)
diff --git a/.gear/rules b/.gear/rules
new file mode 100644
index 000000000..c8158d3f2
--- /dev/null
+++ b/.gear/rules
@@ -0,0 +1,5 @@
+copy: alt-patches/*.patch
+copy: alt-files/*
+tar: @version@:.
+tar: alt-files/synce-mcfs name=synce-mcfs
+diff: @version@:. .
diff --git a/.gear/tags/360459a9c5e53bd0d36c269fd6c07db81d938ada b/.gear/tags/360459a9c5e53bd0d36c269fd6c07db81d938ada
new file mode 100644
index 000000000..ebf6a46e5
--- /dev/null
+++ b/.gear/tags/360459a9c5e53bd0d36c269fd6c07db81d938ada
@@ -0,0 +1,23 @@
+object a18c8f28507cd14d7c344ab67a4f59b4e2827d4b
+type commit
+tag 4.8.30
+tagger Yury V. Zaytsev <yury@shurup.com> 1691953358 +0200
+
+Release
+-----BEGIN PGP SIGNATURE-----
+
+iQJEBAABCAAuFiEEzDfCJE4v8O1UjV3V9yLueby74O8FAmTZKNIQHHl1cnlAc2h1
+cnVwLmNvbQAKCRD3Iu55vLvg705DD/9SQ1R1Rd2KS1R9aJWQkgzNppYktNsx5/XX
+KbbjkvM+acAqAwxY13gibw/QpT2xo/BD9oLUGIEMS8aQZ6nxcvdKGBl+WPb6Wqci
+pvgXDNt/OWDbHrTm/7GlsxGoCZz9c2t4ENbbAwemW9AdYOsnMYpb2CckCqjj3Iqu
+UJo1AmXRFM137Ye30WtigNimQkGGMJCPOYimYPaCC0h04dCpepXVi8XSm06DLxJC
+F8ThR9Q81GctVyaBeakon+ZmV9MSS8bDbjNnVvvCVMHg6onXNO49d4mrxMMochge
+Ys5zBOOCIxXUwntRqJfzfDMInE7yFnBI97hINBX/A8gzs4TPQFPFFtdtiSHD2oOF
+LHYq3Lq7R76CNe/7T4CQZI5+31Fg/6SxKjX3/OsDYE10eB7PUCMYdDLsPiWQOC2d
+SWnpdrZe2+pJx0bym48+NkWGq3BW8IkwjwmCWUzJwAdtSCHo8FQc/fLrStxJ3qGp
+pZsIj681W1pMP9sn5SewFM2jATsLatqd8c3canLktRi76obV0z5WU3/MnJI0duSR
+kLECSbDaJeqeC1WKJho51tzr86a6S7olAHh3fLjUKeMTYNAQwsqCJMpbeTbwo4/t
+1qdIC11JjCd/IRMeI0PmWfVjrEFpTr7DJy8OPV+/9ACHqTDX7u/9yLmgh06rjkIV
+PTLos4ySyg==
+=LW+M
+-----END PGP SIGNATURE-----
diff --git a/.gear/tags/list b/.gear/tags/list
new file mode 100644
index 000000000..e39cd921a
--- /dev/null
+++ b/.gear/tags/list
@@ -0,0 +1 @@
+360459a9c5e53bd0d36c269fd6c07db81d938ada 4.8.30
diff --git a/alt-files/mc-16.png b/alt-files/mc-16.png
new file mode 100644
index 000000000..39225c822
--- /dev/null
+++ b/alt-files/mc-16.png
@@ -0,0 +1,6 @@
+PNG
+
+
IHDRagAMAabKGDC	pHYsd_IDAT8˅OKQu,3)	TWY(·AOM *(5P&Ҍ8OsΗs{'&޺i+@ҠW
+i4M̿zw}z|x7bҰ,1\s}l63s1˂:W:uE:`/UkvkAⅳ͂
+2fEnQ,#m9NYKa'P i;iToY[GV*bAmǔQcv\^q)t򸃎X0jm,uxaǣo.c[%º2ߣ,XkRßrR@(
+`h@OԤD/c'W.MtwO`-IENDB`
\ No newline at end of file
diff --git a/alt-files/mc-32.png b/alt-files/mc-32.png
new file mode 100644
index 000000000..592d9015b
--- /dev/null
+++ b/alt-files/mc-32.png
@@ -0,0 +1,3 @@
+PNG
+
+
IHDR  szzgAMAabKGD	pHYs~tIME
!5ȌIDATxWA Kv'wRř@@E Hdiբ:J?)*Ǫ:HipqN{:]qjFx	%pXb	m`H7?kƋh
ܥԚVz_4utNgT7rɅ
~cwv,nGjdz#JAtRIENDB`
\ No newline at end of file
diff --git a/alt-files/mc-dark.color b/alt-files/mc-dark.color
new file mode 100644
index 000000000..ab328072e
--- /dev/null
+++ b/alt-files/mc-dark.color
@@ -0,0 +1,4 @@
+
+[Colors]
+base_color=normal=,black:marked=,black:directory=white,black:link=gray,black:device=,black:special=red,black:executable=green,black:viewunderline=,black:editor=yellow,black:editnormal=lightgray,black:viewnormal=white,black:hidden=gray,black:temp=gray,black:doc=brown,black:archive=brightmagenta,black:source=cyan,black:media=green,black:graph=brightcyan,black:database=brightred,black
+
diff --git a/alt-files/mc-dnlike.color b/alt-files/mc-dnlike.color
new file mode 100644
index 000000000..a12a9dc9b
--- /dev/null
+++ b/alt-files/mc-dnlike.color
@@ -0,0 +1,6 @@
+Add this to your ~/.mc/ini file for DN-like coloration:
+
+[Colors]
+base_color=normal=green,black:marked=,black:directory=white,black:link=gray,black:device=,black:special=red,black:executable=green,black:viewunderline=,black:editor=yellow,black:editnormal=lightgray,black:viewnormal=white,black
+
+Thanks to Peter V. Chernikoff
diff --git a/alt-files/mc-f90.syntax b/alt-files/mc-f90.syntax
new file mode 100644
index 000000000..31e74bc60
--- /dev/null
+++ b/alt-files/mc-f90.syntax
@@ -0,0 +1,278 @@
+# ---------------------------------------------------
+# f90.syntax
+# FORTRAN 90/95 language freeform syntax highlighting template.
+# Provides syntax highlighting rules for the
+# FORTRAN programming language.
+#
+# Based on FORTRAN77 version fortran.syntax
+# Author: John Theal
+# Email: jtheal@renegadelinuxbox.dhs.org
+# December 7, 1999
+# ---------------------------------------------------
+
+# Heavily modified by Paul Sheer <psheer@obsidian.co.za>.
+# Adjusted to Fortran 90 by Norbert Nemec <Norbert@Nemec-online.de>.
+
+caseinsensitive
+
+context default
+# keywords at the beginning of line
+    keyword linestart \{0123456789\}\{0123456789\}\{0123456789\}\{0123456789\}\{0123456789\} brightred
+    keyword linestart \{0123456789\}\{0123456789\}\{0123456789\}\{0123456789\} brightred
+    keyword linestart \{0123456789\}\{0123456789\}\{0123456789\} brightred
+    keyword linestart \{0123456789\}\{0123456789\} brightred
+    keyword linestart \{0123456789\} brightred
+
+# structure
+    keyword whole ASSIGNMENT white black
+    keyword whole CONTAINS white black
+    keyword whole END white black
+    keyword whole FUNCTION white black
+    keyword whole INTERFACE white black
+    keyword whole INCLUDE white black
+    keyword whole MODULE white black
+    keyword whole OPERATOR white black
+    keyword whole PROGRAM white black
+    keyword whole SUBROUTINE white black
+
+# boolean and logical expressions / operators
+    keyword .and. brightred/orange
+    keyword .eq. brightred/orange
+    keyword .eqv. brightred/orange
+    keyword .false. brightred/orange
+    keyword .ge. brightred/orange
+    keyword .gt. brightred/orange
+    keyword .le. brightred/orange
+    keyword .lt. brightred/orange
+    keyword .ne. brightred/orange
+    keyword .neqv. brightred/orange
+    keyword .not. brightred/orange
+    keyword .or. brightred/orange
+    keyword .true. brightred/orange
+    keyword whole lge brightred/orange
+    keyword whole lgt brightred/orange
+    keyword whole lle brightred/orange
+    keyword whole llt brightred/orange
+
+# declarations
+    keyword whole ALLOCATABLE brightcyan
+    keyword whole BLOCK brightcyan
+    keyword whole CHARACTER brightcyan
+    keyword whole COMMON brightcyan
+    keyword whole COMPLEX brightcyan
+    keyword whole DATA brightcyan
+    keyword whole DIMENSION brightcyan
+    keyword whole DOUBLE brightcyan
+    keyword whole ELEMENTAL brightcyan
+    keyword whole EQUIVALENCE brightcyan
+    keyword whole EXTERNAL brightcyan
+    keyword whole FORMAT brightcyan
+    keyword whole IMPLICIT brightcyan
+    keyword whole INTEGER brightcyan
+    keyword whole INTENT brightcyan
+    keyword whole INTRINSIC brightcyan
+    keyword whole LOGICAL brightcyan
+    keyword whole NAMELIST brightcyan
+    keyword whole NONE brightcyan
+    keyword whole ONLY brightcyan
+    keyword whole OPTIONAL brightcyan
+    keyword whole PARAMETER brightcyan
+    keyword whole POINTER brightcyan
+    keyword whole PRECISION brightcyan
+    keyword whole PRIVATE brightcyan
+    keyword whole PUBLIC brightcyan
+    keyword whole PURE brightcyan
+    keyword whole REAL brightcyan
+    keyword whole SAVE brightcyan
+    keyword whole TYPE brightcyan
+    keyword whole USE brightcyan
+
+# general programming syntax
+    keyword whole allocate brightgreen
+    keyword whole assign brightgreen
+    keyword whole call brightgreen
+    keyword whole case brightgreen
+    keyword whole deallocate brightgreen
+    keyword whole default brightgreen
+    keyword whole continue brightgreen
+    keyword whole cycle brightgreen
+    keyword whole do brightgreen
+    keyword whole else brightgreen
+    keyword whole elseif brightgreen
+    keyword whole elsewhere brightgreen
+    keyword whole end brightgreen
+    keyword whole enddo brightgreen
+    keyword whole endif brightgreen
+    keyword whole exit brightgreen
+    keyword whole for brightgreen
+    keyword whole forall brightgreen
+    keyword whole goto brightgreen
+    keyword whole if brightgreen
+    keyword whole nullify brightgreen
+    keyword whole pause brightgreen
+    keyword whole return brightgreen
+    keyword whole select brightgreen
+    keyword whole stop brightgreen
+    keyword whole target brightgreen
+    keyword whole then brightgreen
+    keyword whole to brightgreen
+    keyword whole where brightgreen
+    keyword whole while brightgreen
+
+# headers
+    keyword whole entry brightgreen
+
+# I/O functions
+# may have optional equal signs after them: 'keyword ='
+    keyword whole access brightmagenta
+    keyword whole backspace brightmagenta
+    keyword whole blank brightmagenta
+    keyword whole close brightmagenta
+    keyword whole direct brightmagenta
+    keyword whole endfile brightmagenta
+    keyword whole err brightmagenta
+    keyword whole exist brightmagenta
+    keyword whole file brightmagenta
+    keyword whole fmt brightmagenta
+    keyword whole form brightmagenta
+    keyword whole formatted brightmagenta
+    keyword whole inquire brightmagenta
+    keyword whole iostat brightmagenta
+    keyword whole name brightmagenta
+    keyword whole named brightmagenta
+    keyword whole nextrec brightmagenta
+    keyword whole number brightmagenta
+    keyword whole open brightmagenta
+    keyword whole opened brightmagenta
+    keyword whole print brightmagenta
+    keyword whole read brightmagenta
+    keyword whole rec brightmagenta
+    keyword whole recl brightmagenta
+    keyword whole rewind brightmagenta
+    keyword whole sequential brightmagenta
+    keyword whole status brightmagenta
+    keyword whole unformatted brightmagenta
+    keyword whole unit brightmagenta
+    keyword whole write brightmagenta
+
+# mathematical functions
+    keyword whole abs yellow
+    keyword whole achar yellow
+    keyword whole acos yellow
+    keyword whole aimag yellow
+    keyword whole aint yellow
+    keyword whole alog yellow
+    keyword whole alog10 yellow
+    keyword whole amax0 yellow
+    keyword whole amax1 yellow
+    keyword whole amin0 yellow
+    keyword whole amin1 yellow
+    keyword whole amod yellow
+    keyword whole anint yellow
+    keyword whole aprime yellow
+    keyword whole asin yellow
+    keyword whole atan yellow
+    keyword whole atan2 yellow
+    keyword whole acos yellow
+    keyword whole cabs yellow
+    keyword whole ceiling yellow
+    keyword whole cexp yellow
+    keyword whole char yellow
+    keyword whole clog yellow
+    keyword whole cmplx yellow
+    keyword whole conjg yellow
+    keyword whole cos yellow
+    keyword whole cosh yellow
+    keyword whole ccos yellow
+    keyword whole csin yellow
+    keyword whole csqrt yellow
+    keyword whole dabs yellow
+    keyword whole dacos yellow
+    keyword whole dasin yellow
+    keyword whole datan yellow
+    keyword whole datan2 yellow
+    keyword whole dble yellow
+    keyword whole dcos yellow
+    keyword whole dcosh yellow
+    keyword whole dfloat yellow
+    keyword whole ddmim yellow
+    keyword whole dexp yellow
+    keyword whole dim yellow
+    keyword whole dint yellow
+    keyword whole dlog yellow
+    keyword whole dlog10 yellow
+    keyword whole dmax1 yellow
+    keyword whole dmin1 yellow
+    keyword whole dmod yellow
+    keyword whole dnint yellow
+    keyword whole dsign yellow
+    keyword whole dsin yellow
+    keyword whole dsinh yellow
+    keyword whole dsqrt yellow
+    keyword whole dtan yellow
+    keyword whole dtanh yellow
+    keyword whole exp yellow
+    keyword whole float yellow
+    keyword whole floor yellow
+    keyword whole iabs yellow
+    keyword whole iachar yellow
+    keyword whole ichar yellow
+    keyword whole idim yellow
+    keyword whole idint yellow
+    keyword whole ifix yellow
+    keyword whole index yellow
+    keyword whole int yellow
+    keyword whole isign yellow
+    keyword whole len yellow
+    keyword whole log yellow
+    keyword whole log10 yellow
+    keyword whole matmul yellow
+    keyword whole max yellow
+    keyword whole max0 yellow
+    keyword whole max1 yellow
+    keyword whole maxval yellow
+    keyword whole min yellow
+    keyword whole min0 yellow
+    keyword whole min1 yellow
+    keyword whole minval yellow
+    keyword whole mod yellow
+    keyword whole nint yellow
+    keyword whole product yellow
+    keyword whole rand yellow
+    keyword whole random_number yellow
+    keyword whole random_seed yellow
+    keyword whole sign yellow
+    keyword whole sin yellow
+    keyword whole sinh yellow
+    keyword whole sngl yellow
+    keyword whole sqrt yellow
+    keyword whole sum yellow
+    keyword whole tan yellow
+    keyword whole tanh yellow
+    keyword whole transpose yellow
+
+# operators and syntax elements
+    keyword ( brightcyan
+    keyword ) brightcyan
+    keyword : brightcyan
+    keyword , brightcyan
+    keyword ; brightcyan
+    keyword \+ yellow
+    keyword - yellow
+    keyword \* yellow
+    keyword / yellow
+    keyword = yellow
+    keyword < yellow
+    keyword > yellow
+
+# comments and quotes
+    keyword '*' green
+    keyword "*" green
+
+#context &\n \n black cyan
+    keyword &\n black cyan
+
+context format( ) green
+
+context ! \n brown
+   spellcheck
diff --git a/alt-files/mc.zsh b/alt-files/mc.zsh
new file mode 100644
index 000000000..33a68e91f
--- /dev/null
+++ b/alt-files/mc.zsh
@@ -0,0 +1,3 @@
+# define aliases for zsh
+[ -n "${ZSH_VERSION}" ] || return 0
+alias mc='. /usr/lib/mc/mc-wrapper.sh'
diff --git a/alt-files/synce-mcfs/README b/alt-files/synce-mcfs/README
new file mode 100644
index 000000000..23c0982bf
--- /dev/null
+++ b/alt-files/synce-mcfs/README
@@ -0,0 +1,61 @@
+SynCE-mcvf 0.1.1 by Michael Lashkevich, 10.06.2003
+
+
+       Midnight Commander virtual filesystem for SynCE
+
+
+INTRODUCTION
+
+The package "synce-mcvf" makes it possible to open the Windows CE
+filesystem of your Pocket PC as a Midnight Commander virtual filesystem,
+once you connected to your Pocket PC using SynCE.
+
+After installing this package you can use "cd #synce" or "cd #synceroot"
+to enter the filesystem of the Windows CE.
+
+cd #synce
+
+works faster and changes directory to "\My Documents".
+
+cd #synceroot
+
+starts much slower and enters the root directory ("\") of Windows CE.
+The last is intended for administrative use only.
+
+
+INSTALLATION
+
+Please, install SynCE package <http://synce.sourseforge.net/synce/> to
+make connection to your Pocket PC.
+
+Then follow the instructions:
+
+1. Enter your UNIX system as a root.
+
+2. Unpack the archive:
+
+tar zxvf synce-mcfs.tar.gz
+
+2. Change directory
+
+cd <prefix>/mc/extfs
+
+where <prefix> is tipically "/usr/share",  "/usr/lib",
+"/usr/local/share", or "/usr/local/lib".
+
+3. Copy the contents of the archive into this directory, e.g.:
+
+cp /root/synce-mcfs/src/* .
+
+4. Add the file "extfs.ini.add" to "extfs.ini" at the end:
+
+cat extfs.ini.add >> extfs.ini
+
+Installation is completed.
+
+
+BUG REPORTS
+
+Please, report all bugs to
+
+Michael Lashkevich <lashkevi@landau.ac.ru>
diff --git a/alt-files/synce-mcfs/src/extfs.ini.add b/alt-files/synce-mcfs/src/extfs.ini.add
new file mode 100644
index 000000000..3a8780f34
--- /dev/null
+++ b/alt-files/synce-mcfs/src/extfs.ini.add
@@ -0,0 +1,4 @@
+
+# For SynCE UNIX <-> Windows CE Pocket PC communicator
+synce
+synceroot
diff --git a/alt-files/synce-mcfs/src/synce b/alt-files/synce-mcfs/src/synce
new file mode 100755
index 000000000..cb02ee0d9
--- /dev/null
+++ b/alt-files/synce-mcfs/src/synce
@@ -0,0 +1,88 @@
+#! /usr/bin/perl -w
+#
+# External filesystem for Windows CE, using SynCE, version 0.1.1,
+# by Michael Lashkevich <lashkevi@landau.ac.ru> on 10.06.2003
+#
+# Opens the "\My Documents" directory.
+# You have to establish SynCE connection before changin directory
+# to #synce
+# 
+
+# These mtools components must be in PATH for this to work
+$pls = "pls";
+$pcp = "pcp";
+$prm = "prm";
+$pmkdir = "pmkdir";
+$prmdir = "prmdir";
+
+SWITCH: for ( $ARGV[0] ) {
+  /list/ && do {
+    @dirs = get_dirs("");
+    while ($dir = shift(@dirs)) {
+      push @dirs, get_dirs("$dir");
+    } exit 0; };
+  /mkdir/ && do {
+    shift; shift;
+    exit 1 if scalar(@ARGV) != 1;
+    system("$pmkdir \"$ARGV[0]\" >/dev/null");
+    exit 0; };
+  /rmdir/ && do {
+    shift; shift;
+    exit 1 if scalar(@ARGV) != 1;
+    system("$prmdir \"$ARGV[0]\" >/dev/null");
+    exit 0; };
+  /rm/ && do {
+    shift; shift;
+    exit 1 if scalar(@ARGV) != 1;
+    system("$prm \"$ARGV[0]\" >/dev/null");
+    exit 0; };
+  /copyout/ && do {
+    shift; shift;
+    exit 1 if scalar(@ARGV) != 2;
+    ( $src, $dest ) = @ARGV;
+    system("$pcp \":My Documents/$src\" $dest >/dev/null");
+    exit 0; };
+  /copyin/ && do {
+    shift; shift;
+    exit 1 if scalar(@ARGV) != 2;
+    ( $dest, $src ) = @ARGV;
+    system("$pcp $src \":My Documents/$dest\" >/dev/null");
+    exit 0; };
+  /.*/ && do {                               # an unfamiliar command
+    exit 1; };
+}
+
+sub get_dirs {
+  my ($path, $name, $pathname, $type0, $type2, $size, $datetime, @lst, @rv);
+
+  $path = shift(@_);
+  @rv = ();
+
+  open(FILE,"$pls -a \"/My Documents/$path\" |");
+  while ( <FILE> ) {
+    chomp();
+    /^ / && next;                            # ignore `non-file' lines
+    /^$/ && next;                            # ignore empty lines
+    /^\.\.?/ && next;                        # ignore `.' and `..'
+
+    $name = substr($_,60);
+    $pathname = $path.$name;
+    $type0 = substr($_,0,1);
+    $type2 = substr($_,2,1);
+    $datetime = substr($_,28,6).substr($_,43,5).substr($_,34,9);
+    $size = substr($_,14,8);
+
+    if ($type0 =~ 'D' or $type2 =~ 'D') {
+      printf("drwxr-xr-x   1 %-8d %-8d %-8d %s %s\n",
+        0, 0, 0, $datetime, $pathname);
+      push @rv, $pathname;
+    } else {
+      printf("-rw-r--r--   1 %-8d %-8d %s %s %s\n",
+        0, 0, $size, $datetime, $pathname);
+    }
+  }
+  close(FILE);
+  return @rv;
+}
+
+1;
diff --git a/alt-files/synce-mcfs/src/synceroot b/alt-files/synce-mcfs/src/synceroot
new file mode 100755
index 000000000..7d4d57676
--- /dev/null
+++ b/alt-files/synce-mcfs/src/synceroot
@@ -0,0 +1,89 @@
+#! /usr/bin/perl -w
+#
+# External filesystem for Windows CE, using SynCE, version 0.1.1,
+# by Michael Lashkevich <lashkevi@landau.ac.ru> on 10.06.2003
+#
+# In contrast to #synce it opens the root ("\") directory and, therefore,
+# 'cd #synceroot' works slower than 'cd #synce'.
+# You have to establish SynCE connection before changin directory
+# to #synceroot.
+# 
+
+# These mtools components must be in PATH for this to work
+$pls = "pls";
+$pcp = "pcp";
+$prm = "prm";
+$pmkdir = "pmkdir";
+$prmdir = "prmdir";
+
+SWITCH: for ( $ARGV[0] ) {
+  /list/ && do {
+    @dirs = get_dirs("");
+    while ($dir = shift(@dirs)) {
+      push @dirs, get_dirs("$dir");
+    } exit 0; };
+  /mkdir/ && do {
+    shift; shift;
+    exit 1 if scalar(@ARGV) != 1;
+    system("$pmkdir \"$ARGV[0]\" >/dev/null");
+    exit 0; };
+  /rmdir/ && do {
+    shift; shift;
+    exit 1 if scalar(@ARGV) != 1;
+    system("$prmdir \"$ARGV[0]\" >/dev/null");
+    exit 0; };
+  /rm/ && do {
+    shift; shift;
+    exit 1 if scalar(@ARGV) != 1;
+    system("$prm \"$ARGV[0]\" >/dev/null");
+    exit 0; };
+  /copyout/ && do {
+    shift; shift;
+    exit 1 if scalar(@ARGV) != 2;
+    ( $src, $dest ) = @ARGV;
+    system("$pcp \":/$src\" $dest >/dev/null");
+    exit 0; };
+  /copyin/ && do {
+    shift; shift;
+    exit 1 if scalar(@ARGV) != 2;
+    ( $dest, $src ) = @ARGV;
+    system("$pcp $src \":/$dest\" >/dev/null");
+    exit 0; };
+  /.*/ && do {                               # an unfamiliar command
+    exit 1; };
+}
+
+sub get_dirs {
+  my ($path, $name, $pathname, $type0, $type2, $size, $datetime, @lst, @rv);
+
+  $path = shift(@_);
+  @rv = ();
+
+  open(FILE,"$pls -a \"/$path\" |");
+  while ( <FILE> ) {
+    chomp();
+    /^ / && next;                            # ignore `non-file' lines
+    /^$/ && next;                            # ignore empty lines
+    /^\.\.?/ && next;                        # ignore `.' and `..'
+
+    $name = substr($_,60);
+    $pathname = $path.$name;
+    $type0 = substr($_,0,1);
+    $type2 = substr($_,2,1);
+    $datetime = substr($_,28,6).substr($_,43,5).substr($_,34,9);
+    $size = substr($_,14,8);
+
+    if ($type0 =~ 'D' or $type2 =~ 'D') {
+      printf("drwxr-xr-x   1 %-8d %-8d %-8d %s %s\n",
+        0, 0, 0, $datetime, $pathname);
+      push @rv, $pathname;
+    } else {
+      printf("-rw-r--r--   1 %-8d %-8d %s %s %s\n",
+        0, 0, $size, $datetime, $pathname);
+    }
+  }
+  close(FILE);
+  return @rv;
+}
+
+1;
diff --git a/alt-patches/mc-4.7.0-alt-po.patch b/alt-patches/mc-4.7.0-alt-po.patch
new file mode 100644
index 000000000..b0b1ce970
--- /dev/null
+++ b/alt-patches/mc-4.7.0-alt-po.patch
@@ -0,0 +1,22 @@
+diff --git a/po/ru.po b/po/ru.po
+index e3ee718..f59f7b5 100644
+--- a/po/ru.po
++++ b/po/ru.po
+@@ -1866,7 +1866,7 @@ msgid ""
+ msgstr ""
+ "\n"
+ "   Каталог не пуст.    \n"
+-"   Удалить рекурсивно? "
++"   Удалить вложенные каталоги? "
+ 
+ msgid ""
+ "\n"
+@@ -1875,7 +1875,7 @@ msgid ""
+ msgstr ""
+ "\n"
+ "   Фоновый процесс: каталог не пуст \n"
+-"   Удалить рекурсивно? "
++"   Удалить вложенные каталоги? "
+ 
+ msgid " Delete: "
+ msgstr " Удалить: "
diff --git a/alt-patches/mc-4.7.5.1-alt-defaults.patch b/alt-patches/mc-4.7.5.1-alt-defaults.patch
new file mode 100644
index 000000000..a1c2ba134
--- /dev/null
+++ b/alt-patches/mc-4.7.5.1-alt-defaults.patch
@@ -0,0 +1,12 @@
+diff -Nur mc-4.7.5.1.old/src/setup.c mc-4.7.5.1/src/setup.c
+--- mc-4.7.5.1.old/src/setup.c	2011-02-07 15:27:47.000000000 +0300
++++ mc-4.7.5.1/src/setup.c	2011-02-12 14:37:54.095355868 +0300
+@@ -138,7 +138,7 @@
+     .mark_moves_down = TRUE,
+     .reverse_files_only = TRUE,
+     .auto_save_setup = FALSE,
+-    .navigate_with_arrows = FALSE,
++    .navigate_with_arrows = TRUE,
+     .scroll_pages = TRUE,
+     .mouse_move_pages = TRUE,
+     .filetype_mode = TRUE,
diff --git a/alt-patches/mc-4.8.20-alt-forceexec.patch b/alt-patches/mc-4.8.20-alt-forceexec.patch
new file mode 100644
index 000000000..e18b55625
--- /dev/null
+++ b/alt-patches/mc-4.8.20-alt-forceexec.patch
@@ -0,0 +1,72 @@
+diff -Nur mc-4.8.20.old/po/ru.po mc-4.8.20/po/ru.po
+--- mc-4.8.20.old/po/ru.po	2017-12-11 09:30:02.279019204 +0400
++++ mc-4.8.20/po/ru.po	2017-12-11 10:28:52.633788885 +0400
+@@ -680,6 +680,9 @@
+ msgid "Disables subshell support"
+ msgstr "Отключить поддержку встроенной командной оболочки"
+ 
++msgid "Force subshell execution"
++msgstr "Принудительное выполнение во встроенной командной оболочке"
++
+ msgid "Log ftp dialog to specified file"
+ msgstr "Записывать диалог с FTP в заданный файл"
+ 
+diff -Nur mc-4.8.20.old/src/args.c mc-4.8.20/src/args.c
+--- mc-4.8.20.old/src/args.c	2017-12-11 09:30:02.297019051 +0400
++++ mc-4.8.20/src/args.c	2017-12-11 10:28:52.635788868 +0400
+@@ -43,6 +43,7 @@
+ #include "src/args.h"
+ 
+ /*** external variables **************************************************************************/
++extern int force_subshell_execution;
+ 
+ /*** global variables ****************************************************************************/
+ 
+@@ -154,6 +155,13 @@
+      N_("Disables subshell support"),
+      NULL
+     },
++
++    {
++     "forceexec", 'r', G_OPTION_FLAG_IN_MAIN, G_OPTION_ARG_NONE,
++     &force_subshell_execution,
++     N_("Force subshell execution"),
++     NULL
++    },
+ #endif
+ 
+     /* debug options */
+diff -Nur mc-4.8.20.old/src/execute.c mc-4.8.20/src/execute.c
+--- mc-4.8.20.old/src/execute.c	2017-12-11 09:30:02.301019017 +0400
++++ mc-4.8.20/src/execute.c	2017-12-11 10:31:22.850491471 +0400
+@@ -75,6 +75,8 @@
+ 
+ /* --------------------------------------------------------------------------------------------- */
+ 
++int force_subshell_execution = 0;
++
+ static void
+ edition_post_exec (void)
+ {
+@@ -431,7 +433,7 @@
+ #ifdef ENABLE_SUBSHELL
+     if (mc_global.tty.use_subshell)
+     {
+-        if (subshell_state == INACTIVE)
++        if (subshell_state == INACTIVE || force_subshell_execution)
+             do_execute (mc_global.shell->path, cmd ? cmd : command, flags | EXECUTE_AS_SHELL);
+         else
+             message (D_ERROR, MSG_ERROR, "%s", _("The shell is already running a command"));
+diff -Nur mc-4.8.20.old/src/execute.h mc-4.8.20/src/execute.h
+--- mc-4.8.20.old/src/execute.h	2016-03-21 15:56:31.000000000 +0400
++++ mc-4.8.20/src/execute.h	2017-12-11 10:28:52.638788842 +0400
+@@ -28,6 +28,9 @@
+ 
+ /*** declarations of public functions ************************************************************/
+ 
++/* If true message "The shell is already running a command" never */
++extern int force_subshell_execution;
++
+ /* Execute functions that use the shell to execute */
+ void shell_execute (const char *command, int flags);
+ 
diff --git a/alt-patches/mc-4.8.20-alt-menu.patch b/alt-patches/mc-4.8.20-alt-menu.patch
new file mode 100644
index 000000000..282a934e1
--- /dev/null
+++ b/alt-patches/mc-4.8.20-alt-menu.patch
@@ -0,0 +1,20 @@
+--- misc/mc.menu.in.orig	2017-12-11 09:44:03.969877937 +0400
++++ misc/mc.menu.in	2017-12-11 09:51:56.835862807 +0400
+@@ -242,7 +242,7 @@
+             *.gz|*.[zZ]) DECOMP=-d;;
+         esac
+         # Do *not* add quotes around $DECOMP!
+-        gzip $DECOMP -v %f
++        gzip -9 $DECOMP -v %f
+ 
+ + t t
+ Y       Gzip or gunzip tagged files
+@@ -251,7 +251,7 @@
+             case "$i" in
+                 *.gz|*.[zZ]) DECOMP=-d;;
+             esac
+-            gzip $DECOMP -v "$i"
++            gzip -9 $DECOMP -v "$i"
+         done
+ 
+ + ! t t
diff --git a/alt-patches/mc-4.8.24-alt-wrapper.patch b/alt-patches/mc-4.8.24-alt-wrapper.patch
new file mode 100644
index 000000000..7814a056e
--- /dev/null
+++ b/alt-patches/mc-4.8.24-alt-wrapper.patch
@@ -0,0 +1,18 @@
+--- mc-4.8.24/contrib/mc-wrapper.sh.in.orig	2020-01-18 21:48:22.000000000 +0000
++++ mc-4.8.24/contrib/mc-wrapper.sh.in	2020-02-28 19:55:52.000000000 +0000
+@@ -1,6 +1,8 @@
+ MC_USER=`whoami`
+-MC_PWD_FILE="${TMPDIR-/tmp}/mc-$MC_USER/mc.pwd.$$"
+-@bindir@/mc -P "$MC_PWD_FILE" "$@"
++[ ! -d ${TMPDIR-/tmp}/mc-$MC_USER ] && mkdir -p ${TMPDIR-/tmp}/mc-$MC_USER
++if MC_PWD_FILE=`mktemp ${TMPDIR-/tmp}/mc-$MC_USER/mc.pwd.XXXXXXXXXX`; then
++rm -f "$MC_PWD_FILE"
++@bindir@/mc -r -P "$MC_PWD_FILE" "$@"
+ 
+ if test -r "$MC_PWD_FILE"; then
+ 	MC_PWD="`cat "$MC_PWD_FILE"`"
+@@ -13,3 +15,4 @@
+ rm -f "$MC_PWD_FILE"
+ unset MC_PWD_FILE
+ unset MC_USER
++fi
diff --git a/alt-patches/mc-4.8.25-python3.patch b/alt-patches/mc-4.8.25-python3.patch
new file mode 100644
index 000000000..8b74e0d1b
--- /dev/null
+++ b/alt-patches/mc-4.8.25-python3.patch
@@ -0,0 +1,70 @@
+diff -up mc-4.8.24/src/vfs/extfs/helpers/uc1541.python3 mc-4.8.24/src/vfs/extfs/helpers/uc1541
+--- mc-4.8.24/src/vfs/extfs/helpers/uc1541.python3	2020-01-20 14:40:30.637996501 +0100
++++ mc-4.8.24/src/vfs/extfs/helpers/uc1541	2020-01-20 14:37:55.253442507 +0100
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/env python3
+ """
+ UC1541 Virtual filesystem
+ 
+--- a/src/vfs/extfs/helpers/s3+.in	(original)
++++ b/src/vfs/extfs/helpers/s3+.in	(refactored)
+@@ -153,16 +153,16 @@
+ 	Propagates exception safely.
+ 	"""
+ 	from threading import Thread
+-	import Queue
++	import queue
+ 
+ 	items = list(iterable)
+ 	nitems = len(items)
+ 	if nitems < 2:
+-		return map(fun, items)
++		return list(map(fun, items))
+ 
+ 	# Create and fill input queue
+-	input = Queue.Queue()
+-	output = Queue.Queue()
++	input = queue.Queue()
++	output = queue.Queue()
+ 
+ 	for i,item in enumerate(items):
+ 		input.put( (i,item) )
+@@ -181,7 +181,7 @@
+ 						output.put( (i,result) )
+ 					except:
+ 						output.put( (None,sys.exc_info()) )
+-				except Queue.Empty:
++				except queue.Empty:
+ 					return
+ 
+ 	# Start threads
+@@ -196,8 +196,8 @@
+ 		try:
+ 			i,res = output.get()
+ 			if i == None:
+-				raise res[0],res[1],res[2]
+-		except Queue.Empty:
++				raise res[0](res[1]).with_traceback(res[2])
++		except queue.Empty:
+ 			break
+ 		ret.append(res)
+ 
+@@ -241,7 +241,7 @@
+ 		b = s3.get_bucket(name, validate=False)
+ 		b.get_location() # just to raise an exception on error
+ 		return b
+-	except boto.exception.S3ResponseError, e:
++	except boto.exception.S3ResponseError as e:
+ 		# Seems this is the only proper way to switch to the bucket's region.
+ 		# Requesting of the default region for "?location" does not work unfortunately.
+ 		m = re.search(r'<Region>(.*?)</Region>', e.body)
+@@ -340,7 +340,7 @@
+ 	expr = re.compile(r'^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.\d{3}Z$')
+ 	def convDate(awsdatetime):
+ 		m = expr.match(awsdatetime)
+-		ye,mo,da,ho,mi,se = map(int,m.groups())
++		ye,mo,da,ho,mi,se = list(map(int,m.groups()))
+ 
+ 		dt = datetime.datetime(ye,mo,da,ho,mi,se, tzinfo=pytz.utc)
+ 		return dt.astimezone(tz).strftime('%m-%d-%Y %H:%M')
diff --git a/alt-patches/mc-4.8.30-alt-extfs-udar.patch b/alt-patches/mc-4.8.30-alt-extfs-udar.patch
new file mode 100644
index 000000000..5b0a82dad
--- /dev/null
+++ b/alt-patches/mc-4.8.30-alt-extfs-udar.patch
@@ -0,0 +1,136 @@
+diff -uNrBbwp mc-4.8.30/misc/mc.ext.ini.in mc-4.8.30-new/misc/mc.ext.ini.in
+--- mc-4.8.30/misc/mc.ext.ini.in	2023-08-13 18:52:25.000000000 +0000
++++ mc-4.8.30-new/misc/mc.ext.ini.in	2023-09-08 14:25:40.471441208 +0000
+@@ -1101,6 +1101,11 @@ View=%view{ascii} @EXTHELPERSDIR@/archiv
+ Type=^Parity\ Archive\ Volume\ Set
+ Open=@EXTHELPERSDIR@/archive.sh open par2
+ 
++[dar]
++Regex=/i/\.[0-9]*\.dar$
++Open=%cd %p/udar://
++View=%view{ascii} dar -l `echo %f | sed 's/\.[0-9]*\.[Dd][Aa][Rr]$//'` -N
++
+ 
+ ######### Includes #########
+ # Includes should be at end of the bindings
+diff -uNrBbwp mc-4.8.30/src/vfs/extfs/helpers/Makefile.am mc-4.8.30-new/src/vfs/extfs/helpers/Makefile.am
+--- mc-4.8.30/src/vfs/extfs/helpers/Makefile.am	2023-08-13 18:52:25.000000000 +0000
++++ mc-4.8.30-new/src/vfs/extfs/helpers/Makefile.am	2023-09-08 14:27:06.589440827 +0000
+@@ -4,7 +4,7 @@ extfsdir = $(libexecdir)/@PACKAGE@/extfs
+ EXTFS_MISC  = README README.extfs
+ 
+ # Scripts hat don't need adaptation to the local system
+-EXTFS_CONST = bpp changesetfs gitfs+ patchsetfs rpm trpm u7z uc1541
++EXTFS_CONST = bpp changesetfs gitfs+ patchsetfs rpm trpm u7z uc1541 udar
+ 
+ # Scripts that need adaptation to the local system - source files
+ EXTFS_IN    = 			\
+diff -uNrBbwp mc-4.8.30/src/vfs/extfs/helpers/udar mc-4.8.30-new/src/vfs/extfs/helpers/udar
+--- mc-4.8.30/src/vfs/extfs/helpers/udar	1970-01-01 00:00:00.000000000 +0000
++++ mc-4.8.30-new/src/vfs/extfs/helpers/udar	2023-09-08 14:28:01.732440583 +0000
+@@ -0,0 +1,105 @@
++#!/bin/sh
++
++# This is a parser for Dar archives in Midnight Commander. You need
++# the GPL dar program (version >= 2.3.0) written by Denis Corbin.
++
++# Author: Guus Jansman
++
++# Limitations:
++# - The archive file can not be changed
++# - Symbolic and hard links are not handled properly
++# - Block and character special files are not handled
++# - Files not stored in (differential) backups are not handled
++# - Dar files in archives are not handled (due filename restriction)
++
++DAR=dar
++
++# dar expects the basename (without number and extension)
++BASENAME="`echo "$2" | sed -e 's/\.[0-9]*\.[Dd][Aa][Rr]$//'`"
++
++mcdarfs_list ()
++{
++$DAR -l "$BASENAME" -N -Q -as 2>/dev/null | gawk -v uuid=${UID-0} '
++BEGIN { flag=0 }
++/^-------/ { flag++; if (flag > 1) exit 0; next }
++/^$/ { next }
++{
++    if (flag == 0) next
++    line=$0
++    split(line, record, " ")
++
++    # Do not display removed files
++    if (record[1] == "[" && record[2] == "REMOVED")
++    {
++        next
++    }
++
++    # We want "line" to start with permutation
++    # TODO: better algorithm
++    while (length(record[1]) != 10 || match(substr(record[1], 2, 1), "[r-]") == 0)
++    {
++        # line without real contents
++        if (length(line) == 0) {
++            next
++        }
++        line=substr(line, length(record[1])+1)
++        while (length(line) != 0 && substr(line, 1, 1) != " ")
++        {
++            line=substr(line, 2)
++        }
++        split(line, record, " ")
++    }
++
++    perm=record[1]
++    # Block and character special files not supported
++    # Change [bc] to [bcl] if symbolic links should not show up either
++    if (match(substr(perm, 1, 1), "[bc]") != 0)
++    {
++        next
++    }
++    uid=record[2]
++    if (match(uid, "^[0-9]*$") != 0)
++    {
++        uid=sprintf("%-8d", uid)
++    }
++    gid=record[3]
++    if (match(gid, "^[0-9]*$") != 0)
++    {
++        gid=sprintf("%-8d", gid)
++    }
++    size=record[4]
++    month=record[6]
++    day=record[7]
++    tm=substr(record[8], 1, 5)
++    year=record[9]
++    name=substr(line, index(line, sprintf("%s:", tm))+14)
++    # TODO: find symbolic link target (probably the link has to be extracted)
++    printf "%s    1 %s %s %8d %3s %02d %04d %s %s\n", perm, uid, gid, size, month, day, year, tm, name
++}'
++}
++
++mcdarfs_copyout ()
++{
++    # Dummy directory necessary since dar cannot output to stdout or named file
++    mkdir "$3.dir.tmp"
++    chmod 700 "$3.dir.tmp"
++    if [ ! -d "$3.dir.tmp" ]; then exit 1; fi
++    $DAR -x "$BASENAME" -N -O -Q -wa -g "$2" -R "$3.dir.tmp" >/dev/null 2>&1
++    if [ -e "$3.dir.tmp/$2" ]; then
++        mv "$3.dir.tmp/$2" "$3"
++        rm -rf "$3.dir.tmp"
++    else
++        rm -rf "$3.dir.tmp"
++        exit 1
++    fi
++}
++
++umask 077
++cmd="$1"
++shift
++case "$cmd" in
++    list)    mcdarfs_list    "$@" ;;
++    copyout) mcdarfs_copyout "$@" ;;
++    *)       exit 1 ;;
++esac
++exit 0
diff --git a/alt-patches/mc-4.8.30-savannah-edit-homekey.patch b/alt-patches/mc-4.8.30-savannah-edit-homekey.patch
new file mode 100644
index 000000000..8a352b3ca
--- /dev/null
+++ b/alt-patches/mc-4.8.30-savannah-edit-homekey.patch
@@ -0,0 +1,40 @@
+diff -uNrbbwp mc-4.8.30/src/editor/edit.c mc-4.8.30-new/src/editor/edit.c
+--- mc-4.8.30/src/editor/edit.c	2023-08-13 18:52:25.000000000 +0000
++++ mc-4.8.30-new/src/editor/edit.c	2023-09-08 19:10:24.686942062 +0000
+@@ -835,6 +835,26 @@ edit_end_page (WEdit * edit)
+     edit_move_down (edit, WIDGET (edit)->rect.lines - edit->curs_row - 1, FALSE);
+ }
+ 
++/* returns index of first char on line or the first nonspace char */
++long edit_bol_var (WEdit * edit, long current)
++{
++    long tmp;
++    int b;
++    
++    if (current < 0)
++	return 0;
++	
++    if (edit_get_byte (edit, current - 1) != '\n')	/* not at BOL */
++	return edit_bol (edit, current);
++
++    if (edit_get_byte (edit, current) == '\n')		/* on an empty line */
++	return current;
++
++    for (tmp = current; (b = edit_get_byte (edit, tmp)) != '\n'; tmp++)
++	if (b != ' ' && b != '\t')
++	    return tmp;
++    return current;
++}
+ 
+ /* --------------------------------------------------------------------------------------------- */
+ /** goto beginning of text */
+@@ -874,7 +894,8 @@ edit_move_to_bottom (WEdit * edit)
+ static void
+ edit_cursor_to_bol (WEdit * edit)
+ {
+-    edit_cursor_move (edit, edit_buffer_get_current_bol (&edit->buffer) - edit->buffer.curs1);
++    edit_cursor_move (edit, edit_bol_var (edit, edit->curs1) - edit->curs1);
++//    edit_cursor_move (edit, edit_buffer_get_current_bol (&edit->buffer) - edit->buffer.curs1);
+     edit->search_start = edit->buffer.curs1;
+     edit->prev_col = edit_get_col (edit);
+     edit->over_col = 0;
diff --git a/mc.spec b/mc.spec
new file mode 100644
index 000000000..547bf77ab
--- /dev/null
+++ b/mc.spec
@@ -0,0 +1,837 @@
+%def_without smb
+%def_with    gpm
+%define fullname MidnightCommander
+
+Name: mc
+Version: 4.8.30
+Release: alt2
+
+# '-gitYYYYMMDD' or ''
+%define ver_date ''
+
+License: %gpl3plus
+Summary: An user-friendly file manager and visual shell
+Group: File tools
+Url: http://midnight-commander.org/
+
+Source0: %name-%version.tar
+Source1: synce-mcfs.tar
+Source2: mc-dnlike.color
+Source3: mc-dark.color
+Source4: mc-16.png
+Source5: mc-32.png
+Source6: mc.zsh
+
+%add_findreq_skiplist */lib/mc/ext.d/*
+%add_findreq_skiplist */lib/mc/extfs.d/*
+
+Patch0: %name-%version-%release.patch
+
+Patch1: mc-4.8.24-alt-wrapper.patch
+Patch2: mc-4.7.5.1-alt-defaults.patch
+Patch3: mc-4.8.20-alt-menu.patch
+
+# Misc
+
+# a part of http://www.midnight-commander.org/ticket/1480
+Patch101: mc-4.8.30-savannah-edit-homekey.patch
+
+# http://www.midnight-commander.org/ticket/2496
+Patch102: mc-4.8.20-alt-forceexec.patch
+
+# http://www.midnight-commander.org/ticket/34
+Patch103: mc-4.8.30-alt-extfs-udar.patch
+
+# https://src.fedoraproject.org/rpms/mc/raw/rawhide/f/mc-python3.patch
+# https://github.com/MidnightCommander/mc/pull/149
+Patch104: mc-4.8.25-python3.patch
+
+Conflicts: %name-data
+Conflicts: %name-locales
+Conflicts: %name-doc
+
+Obsoletes: %name-data
+Obsoletes: %name-locales
+Obsoletes: %name-doc
+
+Requires: rpm >= 4.13
+
+BuildRequires(pre): rpm-build-licenses
+
+BuildRequires: rpm-build-python3
+BuildPreReq: glib2-devel libe2fs-devel
+BuildPreReq: groff-base libX11-devel unzip
+BuildPreReq: libslang2-devel libmount-devel
+%if_with gpm
+BuildPreReq: libgpm-devel
+%endif
+
+%add_findreq_skiplist %_sysconfdir/mc/edit.indent.rc
+%add_findreq_skiplist %_sysconfdir/mc/edit.spell.rc
+%add_findreq_skiplist %_libexecdir/mc/extfs.d/*
+
+# Polish translations (*.pl) recognized as Perl code
+%add_findreq_skiplist %_datadir/mc/mc.hlp*
+%add_findreq_skiplist %_datadir/mc/mc.hint*
+
+%description
+Midnight Commander is a visual shell much like a file manager, only
+with way more features. It is text mode, but also includes mouse
+support if you are running GPM. Its coolest feature is the ability
+to ftp or ssh files access, view various archive files (include cpio),
+poke into RPMs and DEBs for specific files and more others.
+
+%package full
+Summary: Meta package for install Midnight Commander with packages which possible needed.
+Group: File tools
+BuildArch: noarch
+Obsoletes: %name-complete
+Requires: %name
+Requires: cdrkit-utils sqlite3
+
+%description full
+This package pulls Midnight Commander with packages which can be
+needed for working additional components (some vfs for example).
+
+%package desktop
+Summary: Dektop file to %name
+Group: Editors
+License: %gpl3plus
+Requires: %name >= %version
+
+%description desktop
+Dektop file to %name
+
+%prep
+%setup -a1
+%patch0 -p1
+
+# ALT
+%patch1 -p1
+%patch2 -p1
+%patch3 -p0
+
+# Misc
+#patch101 -p1 // Old Patch
+%patch102 -p1
+
+%patch103 -p1
+%patch104 -p1
+
+%build
+cat <<EOF > mc-version.h
+#ifndef MC_CURRENT_VERSION
+#define MC_CURRENT_VERSION "@@VERSION@@"
+#endif
+EOF
+
+sed 's|@@VERSION@@|%version-%release%ver_date|' -i mc-version.h
+
+#%%autoreconf
+./autogen.sh
+
+%configure %{?_with_smb:--enable-vfs-smb --with-smb-configdir=%_sysconfdir/samba} \
+	PYTHON=%__python3 \
+	--enable-extcharset \
+	--enable-vfs-undelfs
+
+%make_build
+
+%install
+%makeinstall_std
+
+install -d %buildroot%_sysconfdir/{profile.d,bashrc.d}
+mv %buildroot%_libexecdir/mc/mc.csh %buildroot%_sysconfdir/profile.d/
+mv %buildroot%_libexecdir/mc/mc.sh %buildroot%_sysconfdir/bashrc.d/
+install -m755 %SOURCE6 %buildroot%_sysconfdir/profile.d/mc.sh
+# Install DosNavigator color scheme
+install -m644 %SOURCE2 .
+# Install Dark color scheme
+install -m644 %SOURCE3 .
+
+# Install SynCE VFS ( http://www.midnight-commander.org/ticket/2905 )
+install -m755 synce-mcfs/src/synce* %buildroot%_libexecdir/%name/extfs.d/
+
+# http://www.midnight-commander.org/ticket/2314
+# mc.desktop
+cat <<__EOF__>%name.desktop
+[Desktop Entry]
+Version=1.0
+Type=Application
+Name=Midnight Commander
+Comment=Visual shell and file manager
+Comment[ru]=Визуальная оболочка и диспетчер файлов 
+Icon=%fullname
+Exec=%name
+Terminal=true
+Categories=ConsoleOnly;System;FileTools;FileManager;
+__EOF__
+install -pD -m644 %name.desktop %buildroot%_desktopdir/%name.desktop
+# mcedit.desktop
+cat <<__EOF__>mcedit.desktop
+[Desktop Entry]
+Version=1.0
+Type=Application
+Name=mcedit
+GenericName=Text Editor
+GenericName[ru]=Текстовый редактор
+Comment=Internal file editor of GNU Midnight Commander
+Comment[ru]=Встроенный текстовый редактор GNU Midnight Commander
+Icon=%fullname
+Exec=mcedit
+Terminal=true
+Categories=ConsoleOnly;Utility;TextEditor;
+__EOF__
+install -pD -m644 mcedit.desktop %buildroot%_desktopdir/mcedit.desktop
+
+# icons
+install -pD -m644 %SOURCE4 %buildroot%_miconsdir/%fullname.png
+install -pD -m644 %SOURCE5 %buildroot%_niconsdir/%fullname.png
+
+%find_lang --with-man %name
+
+%files -f %name.lang
+%_bindir/mc
+%_bindir/mcedit
+%_bindir/mcview
+%_bindir/mcdiff
+%_libexecdir/mc/
+%config(noreplace) %_sysconfdir/bashrc.d/*
+%config(noreplace) %_sysconfdir/profile.d/*
+%dir %_sysconfdir/mc
+%config(noreplace) %_sysconfdir/mc/*edit*
+%config(noreplace) %_sysconfdir/mc/filehighlight.ini
+%config(noreplace) %_sysconfdir/mc/mc.ext.ini
+%config(noreplace) %_sysconfdir/mc/mc.keymap
+%config(noreplace) %_sysconfdir/mc/mc.default.keymap
+%config(noreplace) %_sysconfdir/mc/mc.emacs.keymap
+%config(noreplace) %_sysconfdir/mc/mc.menu
+%config(noreplace) %_sysconfdir/mc/sfs.ini
+
+%_man1dir/*
+
+%_datadir/mc/
+
+%doc AUTHORS doc/FAQ doc/HACKING doc/MAINTAINERS doc/NEWS doc/README
+%doc doc/README.QNX doc/TODO doc/filehighlight.txt contrib/README.xterm
+%doc mc-dnlike.color mc-dark.color
+
+%files desktop
+%_desktopdir/%name.desktop
+%_desktopdir/mcedit.desktop
+%_niconsdir/%fullname.png
+%_miconsdir/%fullname.png
+
+
+%files full
+
+%changelog
+* Mon Sep 11 2023 Sergey Y. Afonin <asy@altlinux.org> 4.8.30-alt2
+- fixed mc-4.8.30-alt-extfs-udar.patch
+
+* Fri Sep 08 2023 Hihin Ruslan <ruslandh@altlinux.ru> 4.8.30-alt1
+- 4.8.30
+
+* Fri Apr 29 2022 Sergey Y. Afonin <asy@altlinux.org> 4.8.28-alt1
+- 4.8.28
+- removed build dependency of the cvs package
+
+* Tue Dec 21 2021 Sergey Y. Afonin <asy@altlinux.org> 4.8.27-alt1
+- 4.8.27 (CVE-2021-36370; ALT #40217)
+
+* Tue May 25 2021 Slava Aseev <ptrnine@altlinux.org> 4.8.25-alt3
+- use python3 for python scripts (particularly for uc1541 and s3+)
+
+* Fri Nov 06 2020 Michael Shigorin <mike@altlinux.org> 4.8.25-alt2
+- srpm_cleanup related ftbfs fixup
+
+* Tue Jul 28 2020 Sergey Y. Afonin <asy@altlinux.org> 4.8.25-alt1
+- 4.8.25 (ALT #38737, ALT #38454)
+- updated License tag to SPDX syntax
+
+* Sat Feb 29 2020 Sergey Y. Afonin <asy@altlinux.org> 4.8.24-alt1
+- 4.8.24 (updated to 20200215 git snapshot, ALT #37545)
+
+* Thu Jul 04 2019 Sergey Y. Afonin <asy@altlinux.ru> 4.8.23-alt1
+- 4.8.23
+
+* Sun Jan 13 2019 Sergey Y. Afonin <asy@altlinux.ru> 4.8.22-alt1
+- 4.8.22
+- added mc-4.8.22-syntax.patch (ALT #35799)
+
+* Tue Nov 13 2018 Ivan Razzhivin <underwit@altlinux.org> 4.8.21-alt4
+- changed the name of the icons to avoid conflicts (ALT #34346)
+
+* Thu Nov 01 2018 Pavel Moseev <mars@altlinux.org> 4.8.21-alt3
+- Updated hint translation
+
+* Mon Aug 20 2018 Sergey Y. Afonin <asy@altlinux.ru> 4.8.21-alt2
+- updated to 20180819 git snapshot (ALT #35188)
+- rebuilt with S-Lang 2.3.2 (ALT #34343)
+- removed alt-rpm-select.patch, added "Requires: rpm >= 4.13"
+
+* Wed Jun 20 2018 Sergey Y. Afonin <asy@altlinux.ru> 4.8.21-alt1
+- 4.8.21 (updated to 20180620 git snapshot)
+
+* Sun Mar 04 2018 Sergey Y. Afonin <asy@altlinux.ru> 4.8.20-alt2
+- updated to 20180224 git snapshot (ALT #34573)
+
+* Mon Dec 11 2017 Sergey Y. Afonin <asy@altlinux.ru> 4.8.20-alt1
+- 4.8.20
+- added mcedit.desktop (ALT #32528)
+- updated patches:
+  + alt-menu.patch
+  + alt-forceexec.patch
+
+* Thu Mar 09 2017 Sergey Y. Afonin <asy@altlinux.ru> 4.8.19-alt2
+- added mc-4.8.19-alt-rpm-select.patch,
+  removed "Requires: rpm >= 4.13"
+
+* Tue Mar 07 2017 Sergey Y. Afonin <asy@altlinux.ru> 4.8.19-alt1
+- 4.8.19 (updated to 20170306 git snapshot)
+- added "Requires: rpm >= 4.13"
+
+* Wed Nov 30 2016 Sergey Y. Afonin <asy@altlinux.ru> 4.8.18-alt1
+- 4.8.18 (updated to 20161130 git snapshot)
+
+* Mon May 23 2016 Sergey Y. Afonin <asy@altlinux.ru> 4.8.17-alt1
+- 4.8.17 (with MC tickets #3643, #3637, #3648 of 4.8.18 roadmap)
+- added sqlite3 to requires of mc-full
+  (http://forum.altlinux.org/index.php?topic=34864.msg285786#msg285786)
+- updated descriptions in spec
+
+* Fri Mar 18 2016 Sergey Y. Afonin <asy@altlinux.ru> 4.8.16-alt2
+- merged with git://github.com/MidnightCommander/mc:
+  + MC Ticket #3606 (fix segfault due to incorrect value of SHELL environment variable)
+  + MC Ticket #3618 (update f90 syntax)
+  + MC Ticket #3620 (patchfs: fix syntax error)
+- added mc-4.8.16-3621_cpio_segfault.patch (MC Ticket #3621)
+
+* Mon Mar 14 2016 Sergey Y. Afonin <asy@altlinux.ru> 4.8.16-alt1
+- 4.8.16
+- droped fix for MC Ticket #3574 (fixed in upstream)
+- added fix for fish ls helper (MC Ticket #3611)
+- updated patches:
+  + alt-wrapper.patch
+  + alt-menu.patch
+  + alt-forceexec.patch
+
+* Mon Nov 30 2015 Sergey Y. Afonin <asy@altlinux.ru> 4.8.15-alt2
+- Fixed handling of MC_XDG_OPEN in ext.d/*.sh (MC Ticket #3574)
+
+* Sun Nov 29 2015 Sergey Y. Afonin <asy@altlinux.ru> 4.8.15-alt1
+- 4.8.15
+- replaced f90.syntax (ALT #31520)
+
+* Thu Apr 02 2015 Sergey Y. Afonin <asy@altlinux.ru> 4.8.14-alt2
+- rebuilt without smb vfs (http://bugzilla.altlinux.org/30649#c10)
+- fixed incorrect merge with tag '4.8.14'
+- added libmount-devel to BuildPreReq
+
+* Mon Mar 23 2015 Sergey Y. Afonin <asy@altlinux.ru> 4.8.14-alt1
+- 4.8.14
+- built with enable-vfs-smb (ALT #30649)
+
+* Sun Apr 06 2014 Sergey Y. Afonin <asy@altlinux.ru> 4.8.12-alt1
+- 4.8.12
+
+* Wed Dec 04 2013 Sergey Y. Afonin <asy@altlinux.ru> 4.8.11-alt1
+- 4.8.11
+- diabled savannah-edit-homekey.patch (many changes in mcedit)
+
+* Tue Apr 09 2013 Sergey Y. Afonin <asy@altlinux.ru> 4.8.8-alt3
+- applied patch for MC Ticket #3003 (ALT #28817)
+
+* Mon Apr 08 2013 Sergey Y. Afonin <asy@altlinux.ru> 4.8.8-alt2
+- merged with git://github.com/MidnightCommander/mc.git
+  (MC Ticket #2991 closed)
+
+* Sun Apr 07 2013 Sergey Y. Afonin <asy@altlinux.ru> 4.8.8-alt1
+- 4.8.8
+
+* Tue Jan 08 2013 Sergey Y. Afonin <asy@altlinux.ru> 4.8.7-alt1
+- 4.8.7
+- removed xdg-open-quickdisable.patch (moved to upstream)
+
+* Fri Dec 14 2012 Sergey Y. Afonin <asy@altlinux.ru> 4.8.6-alt7
+- merged with git://github.com/MidnightCommander/mc.git
+  (CVE-2012-4463)
+- changed the metod of disabling xdg-open
+  + you can use MC_XDG_OPEN="/bin/false" for disable xdg-open in
+  + scripts in lib/mc/ext.d/*
+  removed mc-4.8.6-alt-video.sh.patch
+  added mc-4.8.6-alt-xdg-open-quickdisable.patch
+
+* Tue Nov 20 2012 Sergey Y. Afonin <asy@altlinux.ru> 4.8.6-alt6
+- added mc-4.8.6-alt-video.sh.patch
+  (you can use MCVIDEOPLAYER="legacy" for disable xdg-open usage)
+
+* Sun Nov 11 2012 Sergey Y. Afonin <asy@altlinux.ru> 4.8.6-alt5
+- merged with git://github.com/MidnightCommander/mc.git
+
+* Tue Oct 23 2012 Sergey Y. Afonin <asy@altlinux.ru> 4.8.6-alt4
+- added lib/mc/ext.d and lib/mc/extfs.d to findreq_skiplist
+
+* Mon Oct 22 2012 Sergey Y. Afonin <asy@altlinux.ru> 4.8.6-alt3
+- merged with git://github.com/MidnightCommander/mc.git
+- adapted alt-extfs-udar.patch for 4.8.6
+- added alt-extfs-rpm.patch (ALT #27357)
+
+* Sun Oct 14 2012 Sergey Y. Afonin <asy@altlinux.ru> 4.8.6-alt2
+- merged with git://github.com/MidnightCommander/mc.git
+  (MC Ticket #2897 closed)
+
+* Sat Sep 22 2012 Sergey Y. Afonin <asy@altlinux.ru> 4.8.6-alt1
+- 4.8.6 (License changed to GPLv3+)
+- removed ALT patches which subject of metaticket
+  http://www.midnight-commander.org/ticket/2897 (Milestone: 4.8.7)
+  + mc-4.7.5-alt-filetypes.patch
+  + mc-4.7.0-debian-mc.ext-use-arj.patch
+- removed mc-4.7.5.3-alt-extf*s-udar.patch
+  http://www.midnight-commander.org/ticket/34
+
+* Sat Jan 07 2012 Sergey Y. Afonin <asy@altlinux.ru> 4.7.5.6-alt1
+- 4.7.5.6
+
+* Sat Oct 22 2011 Sergey Y. Afonin <asy@altlinux.ru> 4.7.5.5-alt3
+- applied fix from MC Ticket #2635
+
+* Thu Oct 20 2011 Sergey Y. Afonin <asy@altlinux.ru> 4.7.5.5-alt2
+- fixed output of version string (typo in spec of 4.7.5.5-alt1)
+
+* Wed Oct 19 2011 Sergey Y. Afonin <asy@altlinux.ru> 4.7.5.5-alt1
+- 4.7.5.5
+- disabled rollback for MC Ticket #81
+
+* Tue Aug 23 2011 Sergey Y. Afonin <asy@altlinux.ru> 4.7.5.3-alt3
+- moved mc.sh back to bashrc.d (ALT #25703/c#3)
+- added alias definition for zsh in profile.d (ALT #25703)
+- rollback fix for MC Ticket #81 (new problem described in MC Ticket #2594)
+
+* Tue Aug 09 2011 Sergey Y. Afonin <asy@altlinux.ru> 4.7.5.3-alt2
+- moved mc.sh from bashrc.d to profile.d (ALT #25703)
+
+* Mon Aug 08 2011 Sergey Y. Afonin <asy@altlinux.ru> 4.7.5.3-alt1
+- 4.7.5.3
+
+* Sat Feb 12 2011 Sergey Y. Afonin <asy@altlinux.ru> 4.7.5.1-alt2
+- adapted for 4.7.5.1 and reenabled patches:
+  + mc-4.7.5.1-alt-forceexec.patch
+  + mc-4.7.5.1-alt-defaults.patch
+- added find_content_enable_by_default.patch from Andrew Borodin
+- added "Obsoletes" for mc-data, mc-locales, mc-doc subpackages
+
+* Mon Feb 07 2011 Sergey Y. Afonin <asy@altlinux.ru> 4.7.5.1-alt1
+- 4.7.5.1
+- removed iso9660-semicolon.patch (MC Ticket #2471)
+- disabled patches:
+  + mc-4.7.0.2-alt-forceexec.patch
+  + mc-4.7.0-alt-po.patch
+  + mc-4.7.0-alt-defaults.patch
+
+* Tue Dec 21 2010 Sergey Y. Afonin <asy@altlinux.ru> 4.7.0.10-alt5
+- fixed processing of ";1" in some ISO images (ALT #12299)
+
+* Mon Dec 13 2010 Sergey Y. Afonin <asy@altlinux.ru> 4.7.0.10-alt4
+- Merged branch '4.7.0-stable' of git://midnight-commander.org/git/mc
+  + MC Ticket #2437: mcedit: selection length trouble
+  + MC Ticket #1963: use grep instead of awk in iso9660 extfs plugin.
+- updated mc-4.7.0-alt-filetypes.patch for libreoffice support
+- rollback splitting of package
+- renamed %name-complete to %name-full
+
+* Mon Dec 06 2010 Sergey Y. Afonin <asy@altlinux.ru> 4.7.0.10-alt3
+- Merged branch '4.7.0-stable' of git://midnight-commander.org/git/mc
+  + MC Ticket #2415: keep active state of editor before final decision about quit.)
+
+* Thu Dec 02 2010 Sergey Y. Afonin <asy@altlinux.ru> 4.7.0.10-alt2
+- splitted package to %name, %name-data, %name-doc and %name-locales
+- removed "Packager" field
+- added meta package %name-complete
+
+* Wed Dec 01 2010 Sergey Y. Afonin <asy@altlinux.ru> 4.7.0.10-alt1
+- 4.7.0.10-165-gaf432f2
+- removed mc-4.7.0.2-alt-extfs-urar-fix.patch (in upstream now)
+- adapted mc-4.7.0.2-alt-extfs-udar.patch for 4.7.0.10 (and renamed)
+- disabled mc-4.7.0.2-alt-esc.patch (not needed now)
+- added cdrkit-utils to "Requires" (ALT #24662)
+
+* Thu Feb 25 2010 Andrey Rahmatullin <wrar@altlinux.ru> 4.7.0.2-alt2
+- 4.7.0.2-37-ge0030fd (closes: #22979)
+
+* Wed Feb 03 2010 Andrey Rahmatullin <wrar@altlinux.ru> 4.7.0.2-alt1
+- 4.7.0.2
+
+* Wed Jan 20 2010 Andrey Rahmatullin <wrar@altlinux.ru> 4.7.0.1-alt2
+- 4.7.0.1-51-g79346ec
+
+* Mon Jan 04 2010 Andrey Rahmatullin <wrar@altlinux.ru> 4.7.0.1-alt1
+- 4.7.0.1
+
+* Sun Dec 27 2009 Andrey Rahmatullin <wrar@altlinux.ru> 4.7.0-alt9
+- 4.7.0 (closes: #892)
+
+* Sat Dec 26 2009 Anton Farygin <rider@altlinux.ru> 4.7.0-alt8.pre4
+- show dotfiles by default (closes: #22625)
+
+* Sun Dec 20 2009 Andrey Rahmatullin <wrar@altlinux.ru> 4.7.0-alt7.pre4
+- 4.7.0-pre4-206-g8791773
+
+* Thu Dec 10 2009 Andrey Rahmatullin <wrar@altlinux.ru> 4.7.0-alt6.pre4
+- 4.7.0-pre4-151-g3d8938a
+- don't show dotfiles by default (closes: #22495)
+
+* Sun Dec 06 2009 Andrey Rahmatullin <wrar@altlinux.ru> 4.7.0-alt5.pre4
+- 4.7.0-pre4-136-g2c7f684
+- fix pixmap location
+
+* Sun Nov 15 2009 Andrey Rahmatullin <wrar@altlinux.ru> 4.7.0-alt4.pre4
+- 4.7.0-pre4-42-gd36c635
+- apply the rpm extfs fix to the srpm extfs too (closes: #22293)
+
+* Wed Nov 04 2009 Andrey Rahmatullin <wrar@altlinux.ru> 4.7.0-alt3.pre4
+- 4.7.0-pre4-3-g299b04b
+- Sisyphus build (closes: #6944, #10772, #13820, #21092)
+
+* Tue Oct 13 2009 Andrey Rahmatullin <wrar@altlinux.ru> 4.7.0-alt3.pre3
+- 4.7.0-pre3-57-gc492abe
+
+* Sun Oct 11 2009 Andrey Rahmatullin <wrar@altlinux.ru> 4.7.0-alt2.pre3
+- 4.7.0-pre3-50-ge2e549d
+- remove obsolete iso9660 patch (see #13820)
+- add unzip to buildreqs
+- update Url:
+
+* Fri Oct 02 2009 Andrey Rahmatullin <wrar@altlinux.ru> 4.7.0-alt1.pre3
+- 4.7.0-pre3
+- disable autoreq for the extfs modules
+- change Esc timeout to 25ms, enable old_esc_mode by default (Patch451
+  which adds a configuration dialog for that options no longer applies)
+
+* Mon Jun 22 2009 Andrey Rahmatullin <wrar@altlinux.ru> 4.6.2-alt12.pre1
+- extfs:
+  + add udar extfs (closes: #11019)
+  + don't set C locale in urar (closes: #18492, yurifil@etersoft.ru)
+  + fix display of files in subdirs in ucab (closes: #18619, yurifil@etersoft.ru)
+
+* Sun Nov 23 2008 Andrey Rahmatullin <wrar@altlinux.ru> 4.6.2-alt11.pre1
+- remove obsolete macros
+- replace menu file with .desktop
+- try to load libX11.so.6 if libX11.so didn't load (SuSe)
+- make whitespace highlighting configurable through menu (RH)
+
+* Thu Aug 28 2008 Andrey Rahmatullin <wrar@altlinux.ru> 4.6.2-alt10.pre1
+- add configuration dialog for Esc key timeout (Arch, upstream #13733)
+- mcedit: second press of Home key jumps to first non-space character (upstream
+  patch #4211)
+- fix extension in mc-4.6.1-mdv-lzma.patch (RH)
+- update mc-4.6.2-debian-recode.patch from 4.6.2~git20080311-3
+- fix u7z list mode (RH; closes: #14099)
+- mc.ext
+  + use 7z instead of 7za
+  + remove .fli patch (merged upstream)
+
+* Sat Aug 09 2008 Andrey Rahmatullin <wrar@altlinux.ru> 4.6.2-alt9.pre1
+- update to upstream 05069a72
+- sync Debian patches with 4.6.2~git20080311-1
+- mc.ext:
+  + recognize .cl as Lisp source (damned@; closes: #15971)
+  + use arj instead of unarj (Debian)
+- syntax:
+  + enhance: mail (Debian)
+  + add: asm, procmail (Debian)
+- extfs:
+  + add .cab extfs (yurifil@etersoft.ru; closes: #16361)
+- fix config file names in the manpage (Debian)
+- correctly view tar files with colons in their names (Debian)
+- fix smb.conf path (Debian)
+
+* Sun May 11 2008 Andrey Rahmatullin <wrar@altlinux.ru> 4.6.2-alt8.pre1
+- mc.ext:
+  + recognize .3gp as video, not manpage (#14982, hiddenman@)
+  + don't show exif(1) error if file doesn't contain EXIF data
+  + recognize all mailboxes, not only ASCII ones
+  + use fbv instead of zgv for viewing images without X
+- syntax:
+  + update ebuild.syntax
+  + recognize .mak as Makefiles (#15589, led@)
+- move global configs to /etc (RH)
+- build with X events support
+- 51 patch applied so far
+
+* Wed Apr 02 2008 Andrey Rahmatullin <wrar@altlinux.ru> 4.6.2-alt7.pre1
+- syntax:
+  + recognize .hh and .hpp as c++ again (#15177, was lost during adaptation
+    of Debian patches)
+  + recognize man pages with additional suffixes other than 'x', such as
+    write.3p (Debian)
+- add recoding support to panels, FTP and copy/move operations (Debian)
+- make visible_tabs and visible_tws mcedit options configurable through config
+  file (Debian)
+- (un)escape weird folder names in the command line (Debian)
+- use more aggressive colors in warning boxes for superuser (UHU)
+
+* Sat Mar 29 2008 Andrey Rahmatullin <wrar@altlinux.ru> 4.6.2-alt6.pre1
+- build with slang2
+- build with system libpopt
+- fix mcview with slang2 in 8-bit locales (RH)
+- fix segfault when no hint files available (RH)
+- fix segfault when trying to display invalid timestamp (Gentoo)
+- remove chkconfig from Requires
+- convert all help files to UTF-8 to be viewable in all locales (Debian)
+- fix displaying link count and mode columns in UTF-8 locale (Debian)
+- fix bottom button widths in UTF-8 locale (UHU)
+- fix selection width in the hotlist and quick search in UTF-8 locale (UHU)
+- fix off-by-one misbehavior of Ctrl-Left and Alt-Backspace in line edit
+  widget (UHU)
+- fix line edit widget behavior with literal newline entered (UHU)
+- syntax:
+  + add ebuild (Gentoo)
+- mc.ext:
+  + use djview for .djvu files
+
+* Tue Mar 18 2008 Andrey Rahmatullin <wrar@altlinux.ru> 4.6.2-alt5.pre1
+- add option to build with libslang2 (#10591)
+- mc.ext:
+  + open chm files with kchmviewer || xchm
+- disable mc-4.6.2-rh-delcheck.patch
+- fix memleak in mc-4.6.1-alt-vfs.patch (#14849)
+- fix unpacking of archives with spaces (#12626)
+
+* Wed Mar 12 2008 Andrey Rahmatullin <wrar@altlinux.ru> 4.6.2-alt4.pre1
+- build with slang2
+- Daedalus build
+
+* Wed Mar 05 2008 Andrey Rahmatullin <wrar@altlinux.ru> 4.6.2-alt3.pre1
+- fix x86_64 build (damir@)
+- mc.ext:
+  + show EXIF for JPEG images (Debian)
+  + use msgunfmt to view .mo message catalogs (Debian)
+  + add .mkv and .rm to video file extensions (Mandriva)
+  + add .asm to assembler file extensions (RH)
+  + add JNG and MNG to image file types (RH)
+  + add .flic to video file extensions (RH)
+  + use mplayer -identify to 'view' video files (RH)
+  + use OO.o for all MSO files (RH)
+
+* Thu Feb 28 2008 Andrey Rahmatullin <wrar@altlinux.ru> 4.6.2-alt2.pre1
+- enable lynx-style navigation by default (#8046)
+- package /etc/profile.d/mc.csh
+- compress ChangeLog
+- Debian patches:
+  + syntax enhance: c++, sh
+  + syntax add: debian/{control,changelog,rules}, dsc, named,
+    sources.list, strace
+- RH patches:
+  + update panels before showing copy/move dialog
+  + allow exit command on non-local filesystems
+  + disable support of dirs with embedded newline
+  + fix 'Preserve attributes' copy/move option
+  + handle resizing during file operation
+  + show free space on the current device
+  + add vertical scrollbars to panels and other widgets
+- PLD patches:
+  + syntax enhance: rpm spec
+  + syntax add: vhdl
+- Mandriva patches:
+  + extfs: add lzma
+- Misc patches:
+  + extfs: 7z improvements
+
+* Sun Feb 24 2008 Andrey Rahmatullin <wrar@altlinux.ru> 4.6.2-alt1.pre1
+- 4.6.2-pre1
+- spec cleanup
+- take utf8 patch from Debian mc 1:4.6.2~pre1-3 (includes
+  mc-4.6.1-alt-promptfix.patch)
+
+* Fri Jan 05 2007 Igor Zubkov <icesik@altlinux.org> 4.6.1r-alt9
+- fix not readable help when utf-8 locale is used (#9727)
+
+* Mon Oct 23 2006 Igor Zubkov <icesik@altlinux.org> 4.6.1r-alt8
+- use unrar instead rar in mc.ext (#8028)
+
+* Mon Oct 16 2006 Igor Zubkov <icesik@altlinux.ru> 4.6.1r-alt7
+- added mc-4.6.1-alt-menu.patch (fixed mc.menu scripts)
+
+* Mon Oct 16 2006 Igor Zubkov <icesik@altlinux.ru> 4.6.1r-alt6
+- revert mc-4.6.1a-rh-promptfix.patch (buggy)
+- fix promt (mc-4.6.1-alt-promptfix.patch) (#8310)
+
+* Mon Oct 16 2006 Igor Zubkov <icesik@altlinux.ru> 4.6.1r-alt5
+- add catdoc as RTF viewer (#4443)
+
+* Mon Oct 16 2006 Igor Zubkov <icesik@altlinux.ru> 4.6.1r-alt4
+- add nemerle syntax (#10104)
+
+* Thu Sep 15 2005 Kachalov Anton <mouse@altlinux.ru> 4.6.1r-alt3
+- Updated file-type coloring (X-Stranger)
+- Bugfixes:
+    + Menu-file fix (#5007)
+    + PO translation (#7582, patch from php-coder@)
+    + 7zip extension support (#7962)
+
+* Sat Aug 13 2005 Kachalov Anton <mouse@altlinux.ru> 4.6.1r-alt2
+- Added file-type coloring (thanks to X-Stranger <x@interfax.by>)
+
+* Mon Aug 01 2005 Kachalov Anton <mouse@altlinux.ru> 4.6.1r-alt1
+- Release 4.6.1
+
+* Mon Jul 11 2005 Kachalov Anton <mouse@altlinux.ru> 4.6.1a.20050606-alt1
+- 4.6.1a
+- New patches (RH):
+    + updated UTF8
+    + fish upload
+    + command prompt fix
+
+* Wed Jun 01 2005 Kachalov Anton <mouse@altlinux.ru> 4.6.1.20050601-alt1
+- Bugfixes:
+    + force subshell execution, forwardport (#6952)
+    + question symbols in xterm title bar (#6945)
+    + partially fixed codepage conversion (#6944)
+
+* Thu May 19 2005 Kachalov Anton <mouse@altlinux.ru> 4.6.1.20050518-alt1
+- 4.6.1 from CVS: 18 May 2005
+- Bugfixes:
+    + aterm generates symbols instead of cursor movement (#4548)
+    + big files from zip archive doesn't show (#5428)
+    + files copy failed via remote shell (#6806)
+    + play video with mplayer or xine (#5052)
+    + broken Grey Enter key (#1214)
+    + missed menu entry (#5007)
+- Added:
+    + UTF-8 support
+    + SynCE VFS
+
+* Tue Jun 29 2004 Kachalov Anton <mouse@altlinux.ru> 4.6.0-alt9
+- fix iso extension (#4366, #4536)
+- additional file types handling (#3334, #4443)
+- fix date parsing in vfs (#4545)
+
+* Wed Apr 07 2004 Kachalov Anton <mouse@altlinux.ru> 4.6.0-alt8
+- fix security bugs (buffer overflow) and backport from CVS version.
+
+* Mon Jan 19 2004 Stanislav Ievlev <inger@altlinux.org> 4.6.0-alt7.1
+- fix security bugs.
+
+* Mon Nov 03 2003 Kachalov Anton <mouse@altlinux.ru> 4.6.0-alt7
+- added .hh and .hpp files to Syntax highlight
+
+* Wed Sep 03 2003 Kachalov Anton <mouse@altlinux.ru> 4.6.0-alt6
+- removed requires for cdrecord, cdparanoia and wget
+
+* Mon Jul 21 2003 Kachalov Anton <mouse@altlinux.ru> 4.6.0-alt5
+- using links instead of lynx for viewing html
+- added help file in cp1251 (#0002685)
+- added DN-like coloration (thanks to Peter V. Chernikoff)
+
+* Tue Apr 29 2003 Kachalov Anton <mouse@altlinux.ru> 4.6.0-alt4
+- added ISO extfs
+
+* Tue Feb 18 2003 Kachalov Anton <mouse@altlinux.ru> 4.6.0-alt3
+- bugfix:
+    + russian char in cp1251 locale not displayed (#000271)
+    + problem with cp866 (#0002023)
+
+* Mon Feb 10 2003 Kachalov Anton <mouse@altlinux.ru> 4.6.0-alt2
+- bugfix: mc doesn't give hostname to the terminal
+- proper recognition of man pages
+- wrapper creation temp dir on first startup fix
+
+* Thu Jan 06 2003 Kachalov Anton <mouse@altlinux.ru> 4.6.0-alt1
+- new version
+- remove mcserv
+- remove smbfs
+- bugfix:
+    + Eterm is considered to be a dumb terminal (#0000851)
+    + doen't look inside ~/.terminfo (#0000907)
+    + mc crashes on linux console when gpm server closes connection (#0001123)
+    + not copyied russian char to command line (#0001208)
+    + locale error (#0001550)
+    + hostname resolve (#0002010)
+
+* Thu Dec 26 2002 Konstantin Volckov <goldhead@altlinux.ru> 4.6.0-alt0.5.5
+- Fixed wrapper
+
+* Thu Nov 28 2002 Konstantin Volckov <goldhead@altlinux.ru> 4.6.0-alt0.5
+- Rebuilt with latest CVS changes
+
+* Thu Oct 31 2002 Konstantin Volckov <goldhead@altlinux.ru> 4.6.0-alt0.4
+- Rebuilt back with slang library
+
+* Mon Oct 28 2002 Konstantin Volckov <goldhead@altlinux.ru> 4.6.0-alt0.3
+- Fixed gpm bug
+- Rebuilt with latest CVS changes
+- Rebuilt with ncurses library
+- Turn on smbfs support
+
+* Tue Sep 03 2002 Konstantin Volckov <goldhead@altlinux.ru> 4.6.0-alt0.2
+- Rebuild with latest CVS changes
+- Fixed restoring mouse events under xterm
+
+* Wed Aug 27 2002 Konstantin Volckov <goldhead@altlinux.ru> 4.6.0-alt0.1
+- Rebuild with latest CVS changes
+- Fixed some bugs
+- Version now 4.6.0pre1a
+
+* Thu Aug 15 2002 Konstantin Volckov <goldhead@altlinux.ru> 4.5.99a-alt3
+- Rebuild with latest CVS changes
+
+* Wed Jul 17 2002 Konstantin Volckov <goldhead@altlinux.ru> 4.5.99a-alt2
+- Rebuild with fixed libgpm
+
+* Tue Jul 16 2002 Konstantin Volckov <goldhead@altlinux.ru> 4.5.99a-alt1
+- Build from snapshot
+- Package gmc now removed
+- Some spec cleanup
+
+* Tue Apr 16 2002 Konstantin Volckov <goldhead@altlinux.ru> 4.5.55-alt7
+- Added --enable-largefile, thnx to sav
+
+* Mon Apr 15 2002 Konstantin Volckov <goldhead@altlinux.ru> 4.5.55-alt6
+- Removed umask patch
+
+* Thu Feb 07 2002 AEN <aen@logic.ru> 4.5.55-alt5
+- LANGUAGE variable not used anymore
+- belarussian translation added
+- build requires regenerated
+- uk_UA.CP1251 tips added
+
+* Tue Sep 24 2001 Kachalov Anton <mouse@altlinux.ru> 4.5.55-alt4
+- Updated Russian translation - thanx to Andrew Borodin
+
+* Tue Sep 11 2001 Konstantin Volckov <goldhead@altlinux.ru> 4.5.55-alt3
+- Updated Russian translation - thanx to Andrew Borodin
+
+* Sun Sep 09 2001 Konstantin Volckov <goldhead@altlinux.ru> 4.5.55-alt2
+- Fix mc.hint for CP1251 locle
+- Now we call links when view html's
+
+* Tue Sep 04 2001 Konstantin Volckov <goldhead@altlinux.ru> 4.5.55-alt1
+- 4.5.55
+- Use recoding support fom mc
+- Fixed Requires
+- Show backup files by default now is on
+
+* Thu Jun 21 2001 Konstantin Volckov <goldhead@linux.ru.net> 4.5.54-alt3.1
+- Updated recode patch - added editor support & view search support
+
+* Mon Jun 18 2001 Konstantin Volckov <goldhead@linux.ru.net> 4.5.54-alt3
+- Fix Full 8 bit input to be on by default
+
+* Thu Jun 14 2001 Konstantin Volckov <goldhead@linux.ru.net> 4.5.54-alt2
+- Fixed cdparanoia requires
+- Some spec cleanup
+
+* Mon Jun 4 2001 Konstantin Volckov <goldhead@linux.ru.net> 4.5.54-alt1
+- New mc version - 4.5.54
+- Some new Cooker patches
+- Fixed sources (bzip2 -> gz)
+- Fixed recode patch
+- Removed all entries in changelog before 01012001
+- Added umask settings
+
+* Thu Mar 15 2001 Konstantin Volckov <goldhead@linux.ru.net> 4.5.51-ipl11mdk
+- Added recode patch
+- Fix build with glibc-2.2.2 (time patch)
+- Fixed name of po file
+- Fixed build with new gtk
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin