From 4d8e02c38b06838692bdfb8868eaeb9a6e714a4b Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Mon, 7 Jul 2014 17:50:18 +0000 Subject: [PATCH] - from PLD --- mc-no-ws-visible.patch | 12 ++ mc-nolibs.patch | 11 + mc-noperl-vfs.patch | 190 +++++++++++++++++ mc-pld-developerfriendly.patch | 67 ++++++ mc.desktop | 20 ++ mc.png | Bin 0 -> 860 bytes mc.spec | 368 +++++++++++++++++++++++++++++++++ 7 files changed, 668 insertions(+) create mode 100644 mc-no-ws-visible.patch create mode 100644 mc-nolibs.patch create mode 100644 mc-noperl-vfs.patch create mode 100644 mc-pld-developerfriendly.patch create mode 100644 mc.desktop create mode 100644 mc.png create mode 100644 mc.spec diff --git a/mc-no-ws-visible.patch b/mc-no-ws-visible.patch new file mode 100644 index 0000000..dc5fe63 --- /dev/null +++ b/mc-no-ws-visible.patch @@ -0,0 +1,12 @@ +diff -urNp mc-4.6.2-pre1.orig/edit/editdraw.c mc-4.6.2-pre1/edit/editdraw.c +--- mc-4.6.2-pre1.orig/src/editor/editdraw.c 2007-08-27 14:06:03.000000000 +0200 ++++ mc-4.6.2-pre1/src/editor/editdraw.c 2008-05-05 12:00:49.000000000 +0200 +@@ -296,7 +296,7 @@ + } + } + +-int visible_tabs = 1, visible_tws = 1; ++int visible_tabs = 0, visible_tws = 0; + + /* b is a pointer to the beginning of the line */ + static void diff --git a/mc-nolibs.patch b/mc-nolibs.patch new file mode 100644 index 0000000..f940772 --- /dev/null +++ b/mc-nolibs.patch @@ -0,0 +1,11 @@ +--- mc-4.7.0-pre2/m4.include/mc-vfs.m4~ 2009-08-04 23:36:33.000000000 +0200 ++++ mc-4.7.0-pre2/m4.include/mc-vfs.m4 2009-09-06 18:44:17.955791270 +0200 +@@ -40,7 +40,7 @@ + dnl FIXME: network checks should probably be in their own macro. + AC_SEARCH_LIBS(socket, [xnet bsd socket inet], [have_socket=yes]) + if test x"$have_socket" = xyes; then +- AC_SEARCH_LIBS(gethostbyname, [bsd socket inet netinet]) ++ AC_SEARCH_LIBS(gethostbyname, [bsd socket inet netinet nsl]) + AC_CHECK_MEMBERS([struct linger.l_linger], , , [ + #include + #include diff --git a/mc-noperl-vfs.patch b/mc-noperl-vfs.patch new file mode 100644 index 0000000..613b3b6 --- /dev/null +++ b/mc-noperl-vfs.patch @@ -0,0 +1,190 @@ +diff -urN mc-4.6.0-orig/configure.in mc-4.6.0/configure.in +--- mc-4.6.0-orig/configure.in 2004-02-06 21:06:20.000000000 +0100 ++++ mc-4.6.0/configure.in 2004-02-06 21:09:06.553523944 +0100 +@@ -571,24 +571,14 @@ + + lib/mc.ext + +-vfs/extfs/a +-vfs/extfs/apt + vfs/extfs/audio +-vfs/extfs/deb +-vfs/extfs/deba +-vfs/extfs/debd +-vfs/extfs/dpkg + vfs/extfs/hp48 + vfs/extfs/lslR +-vfs/extfs/mailfs +-vfs/extfs/patchfs +-vfs/extfs/rpms + vfs/extfs/uar + vfs/extfs/uarj + vfs/extfs/uha + vfs/extfs/ulha + vfs/extfs/urar +-vfs/extfs/uzip + vfs/extfs/uzoo + + doc/mc.1 doc/mcedit.1 doc/mcview.1 doc/mcserv.8 +diff -urN mc-4.6.0-orig/vfs/extfs/Makefile.am mc-4.6.0/vfs/extfs/Makefile.am +--- mc-4.6.0-orig/vfs/extfs/Makefile.am 2004-02-06 21:06:20.000000000 +0100 ++++ mc-4.6.0/vfs/extfs/Makefile.am 2004-02-06 21:11:58.898323552 +0100 +@@ -8,46 +8,26 @@ + + # Scripts that need adaptation to the local system - source files + EXTFS_IN = \ +- a.in \ +- apt.in \ + audio.in \ +- deb.in \ +- deba.in \ +- debd.in \ +- dpkg.in \ + hp48.in \ + lslR.in \ +- mailfs.in \ +- patchfs.in \ +- rpms.in \ + uar.in \ + uarj.in \ + uha.in \ + ulha.in \ + urar.in \ +- uzip.in \ + uzoo.in + + # Scripts that need adaptation to the local system - files to install + EXTFS_OUT = \ +- a \ +- apt \ + audio \ +- deb \ +- deba \ +- debd \ +- dpkg \ + hp48 \ + lslR \ +- mailfs \ +- patchfs \ +- rpms \ + uar \ + uarj \ + uha \ + ulha \ + urar \ +- uzip \ + uzoo + + if USE_VFS +diff -urN mc-4.6.0-orig/vfs/extfs/Makefile.in mc-4.6.0/vfs/extfs/Makefile.in +--- mc-4.6.0-orig/vfs/extfs/Makefile.in 2003-02-05 19:09:10.000000000 +0100 ++++ mc-4.6.0/vfs/extfs/Makefile.in 2004-02-06 21:14:28.548573256 +0100 +@@ -193,47 +193,26 @@ + + # Scripts that need adaptation to the local system - source files + EXTFS_IN = \ +- a.in \ +- apt.in \ + audio.in \ +- deb.in \ +- deba.in \ +- debd.in \ +- dpkg.in \ + hp48.in \ + lslR.in \ +- mailfs.in \ +- patchfs.in \ +- rpms.in \ + uar.in \ + uarj.in \ + uha.in \ + ulha.in \ + urar.in \ +- uzip.in \ + uzoo.in + + + # Scripts that need adaptation to the local system - files to install + EXTFS_OUT = \ +- a \ +- apt \ + audio \ +- deb \ +- deba \ +- debd \ +- dpkg \ +- hp48 \ + lslR \ +- mailfs \ +- patchfs \ +- rpms \ + uar \ + uarj \ + uha \ + ulha \ + urar \ +- uzip \ + uzoo + + +@@ -244,17 +223,14 @@ + subdir = vfs/extfs + mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs + CONFIG_HEADER = $(top_builddir)/config.h +-CONFIG_CLEAN_FILES = a apt audio deb deba debd dpkg hp48 lslR mailfs \ +- patchfs rpms uar uarj uha ulha urar uzip uzoo ++CONFIG_CLEAN_FILES = audio hp48 lslR uar uarj uha ulha urar uzoo + SCRIPTS = $(extfs_SCRIPTS) + + DIST_SOURCES = + DATA = $(extfs_DATA) + +-DIST_COMMON = README Makefile.am Makefile.in a.in apt.in audio.in \ +- deb.in deba.in debd.in dpkg.in hp48.in lslR.in mailfs.in \ +- patchfs.in rpms.in uar.in uarj.in uha.in ulha.in urar.in \ +- uzip.in uzoo.in ++DIST_COMMON = README Makefile.am Makefile.in audio.in hp48.in \ ++ lslR.in uar.in uarj.in uha.in ulha.in urar.in uzoo.in + all: all-am + + .SUFFIXES: +@@ -263,30 +239,12 @@ + $(AUTOMAKE) --gnu vfs/extfs/Makefile + Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) +-a: $(top_builddir)/config.status a.in +- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ +-apt: $(top_builddir)/config.status apt.in +- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ + audio: $(top_builddir)/config.status audio.in + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ +-deb: $(top_builddir)/config.status deb.in +- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ +-deba: $(top_builddir)/config.status deba.in +- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ +-debd: $(top_builddir)/config.status debd.in +- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ +-dpkg: $(top_builddir)/config.status dpkg.in +- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ + hp48: $(top_builddir)/config.status hp48.in + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ + lslR: $(top_builddir)/config.status lslR.in + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ +-mailfs: $(top_builddir)/config.status mailfs.in +- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ +-patchfs: $(top_builddir)/config.status patchfs.in +- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ +-rpms: $(top_builddir)/config.status rpms.in +- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ + uar: $(top_builddir)/config.status uar.in + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ + uarj: $(top_builddir)/config.status uarj.in +@@ -297,8 +255,6 @@ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ + urar: $(top_builddir)/config.status urar.in + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ +-uzip: $(top_builddir)/config.status uzip.in +- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ + uzoo: $(top_builddir)/config.status uzoo.in + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ + extfsSCRIPT_INSTALL = $(INSTALL_SCRIPT) diff --git a/mc-pld-developerfriendly.patch b/mc-pld-developerfriendly.patch new file mode 100644 index 0000000..1eff213 --- /dev/null +++ b/mc-pld-developerfriendly.patch @@ -0,0 +1,67 @@ +diff -urN mc-2006-02-24-22.org/syntax/cvs-userlist.syntax mc-2006-02-24-22/syntax/cvs-userlist.syntax +--- mc-2006-02-24-22.org/misc/syntax/cvs-userlist.syntax 1970-01-01 01:00:00.000000000 +0100 ++++ mc-2006-02-24-22/misc/syntax/cvs-userlist.syntax 2006-02-28 17:37:11.801898000 +0100 +@@ -0,0 +1,20 @@ ++wholechars abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789._- ++ ++context default ++ keyword : yellow black ++# people ++ keyword whole linestart ac-admin black white ++ keyword whole linestart ra-admin black white ++ keyword whole linestart nest-admin black white ++ keyword whole linestart cvsadmin black white ++ keyword whole linestart distfilesadmin black white ++# machines (hm... people vs machines... like in the Matrix ;)) ++ keyword wholeleft linestart builder gray white ++ keyword wholeleft linestart buildlogs gray white ++ keyword wholeleft linestart cia gray white ++ keyword wholeleft linestart distfiles gray white ++ ++context exclusive : : cyan ++ keyword , yellow black ++ ++ +diff -urN mc-2006-02-24-22.org/syntax/Makefile.am mc-2006-02-24-22/syntax/Makefile.am +--- mc-2006-02-24-22.org/misc/syntax/Makefile.am 2006-01-30 18:01:58.000000000 +0100 ++++ mc-2006-02-24-22/misc/syntax/Makefile.am 2006-02-28 17:38:02.617073750 +0100 +@@ -11,6 +11,7 @@ + debian-sources-list.syntax \ + cs.syntax \ + css.syntax \ ++ cvs-userlist.syntax \ + cxx.syntax \ + d.syntax \ + diff.syntax \ +@@ -35,6 +36,7 @@ + pascal.syntax \ + perl.syntax \ + php.syntax \ ++ pld-update-todo.syntax \ + po.syntax \ + povray.syntax \ + python.syntax \ +diff -urN mc-2006-02-24-22.org/syntax/pld-update-todo.syntax mc-2006-02-24-22/syntax/pld-update-todo.syntax +--- mc-2006-02-24-22.org/misc/syntax/pld-update-todo.syntax 1970-01-01 01:00:00.000000000 +0100 ++++ mc-2006-02-24-22/misc/syntax/pld-update-todo.syntax 2006-02-28 17:37:11.805898250 +0100 +@@ -0,0 +1,5 @@ ++context default ++ keyword wholeleft [OLD]\s*\s brightred ++ keyword wholeleft [NEW]\s*\n green ++ keyword wholeright (*) white black ++ +diff -urN mc-2006-02-24-22.org/syntax/Syntax.in mc-2006-02-24-22/syntax/Syntax.in +--- mc-2006-02-24-22.org/misc/syntax/Syntax.in 2005-10-31 22:15:34.000000000 +0100 ++++ mc-2006-02-24-22/misc/syntax/Syntax.in 2006-02-28 17:37:11.805898250 +0100 +@@ -145,5 +145,11 @@ + file Don_t_match_me Mail\sfolder ^From\s + include mail.syntax + ++file PLD-update-TODO PLD\sTODO ++include pld-update-todo.syntax ++ ++file users CVS\suser\slist ++include cvs-userlist.syntax ++ + file .\* unknown + include unknown.syntax diff --git a/mc.desktop b/mc.desktop new file mode 100644 index 0000000..24bdbc5 --- /dev/null +++ b/mc.desktop @@ -0,0 +1,20 @@ +[Desktop Entry] +Name=Midnight Commander +Name[af]=Middernag Kommandeur +Name[eo]=Meznokta komandanto +Name[fa]=فرمان‌دار نیمه شب +Name[ko]=미드나잇 커멘더 +Name[lv]=Pusnakts Komandieris +Name[nso]=Molaedi wa Bosegogare +Name[th]=มิดไนท์คอมมานเดอร์ +Name[ve]=Muhulwane wa vhukati ha vhusiku +Name[xh]=Umyaleli Waphakathi kobusuku +Name[zu]=Umyaleli waphakathi nobusuku +Comment=File manager +Comment[pl]=Menedżer plików +Exec=mc +Icon=mc +Terminal=true +Type=Application +Categories=ConsoleOnly;Utility;FileManager; +# vi: encoding=utf-8 diff --git a/mc.png b/mc.png new file mode 100644 index 0000000000000000000000000000000000000000..a6b910f260cb37193ab1e667717a53a0ac14db68 GIT binary patch literal 860 zcmV-i1Ec(jP)+AtJ`zhszEDmuIJR-`hAfQ}0UE|89NTp-(}qYH;v?*-_>9TqCwxmtHr zxKawqvAoD&8+%zM{%1Vc=)GTlqhHTY65KgH0U)ISJV4y^ZK@#wqMm;6fF&@v-TPEV z2rSY71Tf$aLpBv@9AFA;!Rk8#hCl$s4RVeF5WQT(26)sQPK@K&drT5R6nP|x0ACYs zK>SMZya*wZ%m$%e=r^zfAu^k*I8^}T128b12F&LxYg-r&SS*%=VP0{b7qMI}7!1P9 zhGLs0I12;V?R=h}zggQ}UtJD|{>lG`L!b3}g6qDPvT2GFr1X*Ug-0o&;^j-pi0DWKre7(>Sn$Yab z^xXsNH}*a-YnJmgfCyLsUoLcn?#LV|)Ay*KO$6BU`W2kTBTz>|rmsyxL#j*Y0%s?o zPC{35b`tu(BotGwq&E9bP?diH-d92`;C&_30^V0bEufRo$CJ>7S$~2G8KVu{{eq?o z;MV8@xHY-}ZjHMSApap70Y57;xcVyc9qINT|U)yeu44jTE82 z)J<_ZY=K#R1OmXmAzdGHRDrjkxiVv}FWyQhtu8NZEvBXN5Vg)t??)D!7**Kq$z;(4 zC$<2fTsfVV%D%Qu?`IYp6XzE7H96~*(`l(3Xu|Y= 2.60 +BuildRequires: automake >= 1.5 +%{?with_ext2undel:BuildRequires: e2fsprogs-devel} +BuildRequires: gettext-devel >= 0.14.3 +BuildRequires: glib2-devel >= 2.8 +%ifnarch s390 s390x +BuildRequires: gpm-devel +%endif +BuildRequires: libtool +BuildRequires: pam-devel +BuildRequires: pcre-devel +BuildRequires: pkgconfig +BuildRequires: rpm-pythonprov +BuildRequires: rpmbuild(macros) >= 1.268 +BuildRequires: sed >= 4.0 +BuildRequires: slang-devel >= 2.2.1 +%{?with_x:BuildRequires: xorg-lib-libX11-devel} +Requires: file +Requires: pam >= 0.77.3 +Requires: sed +Requires: setup >= 2.4.6-2 +Suggests: bzip2 +Suggests: cabextract +Suggests: cdrtools-utils +Suggests: cpio +Suggests: dvi2tty +Suggests: enca +Suggests: file +Suggests: ghostscript +Suggests: groff +Suggests: gzip +Suggests: lha +Suggests: links +Suggests: lynx +Suggests: lzma +Suggests: odt2txt +Suggests: p7zip-standalone +Suggests: perl-tools-pod +Suggests: rar +Suggests: rpm-utils +Suggests: tar +Suggests: unarj +Suggests: unzip +Suggests: xdg-utils +Suggests: xpdf-tools +Suggests: xz +Suggests: zoo +Obsoletes: mc46 +Obsoletes: mc46serv +Obsoletes: mcserv +Obsoletes: tkmc +Conflicts: bash < 2.05b +Conflicts: rpm < 4.0 +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%define specflags_ia32 -fomit-frame-pointer + +%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, view tar, zip files, and poke into RPMs for specific files. :-) + +%description -l de.UTF-8 +Midnight Commander ist ein Visual-Shell, ähnlich einem Dateimanager, +aber mit zusätzlichen Funktionen. Es läuft im Textmodus, kann jedoch +eine Maus unterstützen, wenn GPM betrieben wird. Seine coolsten +Fähigkeiten sind die FTP-Option, das Einsehen von tar- und zip-Dateien +und das Herausfischen von spezifischen Dateien aus RPMs. + +%description -l es.UTF-8 +Midnight Commander es un interpretador de comandos visual que más +parece un administrador de archivos, solamente con varias +características a más. Es un programa en modo texto, pero incluye +soporte para ratón, si estuviera ejecutando GPM o en una ventana +xterm. Su característica más genial es la habilidad de cotillear en +RPMs buscando archivos específicos. :-) + +%description -l fr.UTF-8 +Midnight Commander est une interface pour la ligne de commande qui +tient beaucoup du gestionnaire de fichiers, mais est bien plus +puissant. Il fonctionne en mode console (texte), mais peut être +contrôlé à la souris si GPM est présent. Ses caractéristiques les plus +remarquables sont la possibilité de se connecter à un serveur FTP, de +visualiser des archives tar, de compresser des fichiers avec zip, de +récupérer des fichiers dans les packages RPM, et tout ceci simplement. + +%description -l hu.UTF-8 +Midnight Commander egy vizuális shell, lényegében egy fájlkezelő +sok-sok lehetőséggel. Szöveges módú, de az egeret is támogatja, ha fut +a GPM. A legjobb lehetőség az FTP elérése, tar, zip és RPM fájlok +kezelése. + +%description -l ja.UTF-8 +Midnight Commander はいろいろな機能を持ったファイルマネージャ兼 +ビジュアルシェルです。これはテキストモードのアプリケーションですが、 +GPM を使っている場合、マウスが使えます。 Midnight Commander には、 FTP +に接続できたり、 tar や zip や RPM の中が見えるなど、クールな機能 +があります。 + +%description -l pl.UTF-8 +Midnight Commander jest wizualną powłoką podobną do Norton Commandera. +Pracuje w trybie tekstowym, ale ma także obsługę myszki. Jest super ;) +MC ma wbudowanego klienta FTP, może zaglądać do skompresowanych +archiwów tar i zip, a także oglądać pliki w pakietach RPM. + +%description -l pt_BR.UTF-8 +Midnight Commander é um interpretador de comandos visual que mais +parece um gerenciador de arquivos, somente com várias características +a mais. Ele é um programa de modo texto, mas inclui suporte para mouse +se você estiver rodando GPM ou em uma janela xterm. Sua característica +mais legal é a habilidade de bisbilhotar em RPMs procurando arquivos +específicos. :-) + +%description -l tr.UTF-8 +Midnight Commander bir dosya yöneticisine çok benzeyen ancak daha +yetenekli bir görsel kabuktur. Metin ekranda çalışır ve GPM +çalışıyorsa fare desteği vardır. En hoş özellikleri FTP yapabilmesi, +tar, zip ve RPM dosyalarının içeriklerini gösterebilmesidir. + +%prep +%setup -q -a3 +%patch2 -p1 +%{!?with_perl_vfs:%patch3 -p1} +%patch4 -p1 + +%{__rm} po/stamp-po + +%{__sed} -i 's:|hxx|:|hh|hpp|hxx|tcc|:' misc/syntax/Syntax.in + +%build +%{__gettextize} +%{__libtoolize} +%{__aclocal} -I m4 +%{__autoconf} +%{__automake} + +export X11_WWW="xdg-open" +%configure \ + %{?with_ext2undel:--enable-vfs-undelfs} \ + %{?with_samba:--enable-vfs-smb} \ + --with-smb-configdir=/etc/samba \ + --with-smb-codepagedir=/etc/samba/codepages \ + --with%{!?with_x:out}-x \ + --with-gpm-mouse \ + --with-pcre \ + --with-screen=slang \ + --disable-silent-rules + +%{__make} + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT{%{_sbindir},%{_pixmapsdir},%{_desktopdir}} \ + $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,shrc.d,sysconfig} \ + $RPM_BUILD_ROOT%{_mandir}/man8 + +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT + +install %{SOURCE7} $RPM_BUILD_ROOT%{_desktopdir} +install %{SOURCE8} $RPM_BUILD_ROOT%{_pixmapsdir} + +for a in es pl ; do + for b in man1 man8 ; do + install -d $RPM_BUILD_ROOT%{_mandir}/{$a,$a/$b} + for c in man/$a/$b/* ; do + install $c $RPM_BUILD_ROOT%{_mandir}/$a/$b + done + done +done + +install contrib/{mc.sh,mc.csh} $RPM_BUILD_ROOT/etc/shrc.d + +%{__rm} $RPM_BUILD_ROOT%{_mandir}/*/man8/mcserv.8 + +# just a copy of sv +%{__rm} $RPM_BUILD_ROOT%{_datadir}/mc/hints/mc.hint.sv_SE +# another variant of it +%{__rm} $RPM_BUILD_ROOT%{_datadir}/mc/hints/mc.hint.it_IT +# enhanced version +%{__mv} $RPM_BUILD_ROOT%{_datadir}/mc/hints/mc.hint.{zh,zh_CN} + +# outdated version of fi +%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/fi_FI +# empty version of sv +%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/sv_SE + +%find_lang %{name} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files -f %{name}.lang +%defattr(644,root,root,755) +%doc NEWS README doc/keybind-migration.txt +%config /etc/shrc.d/* +%attr(755,root,root) %{_bindir}/mc* +%dir %{_libdir}/mc +%attr(755,root,root) %{_libdir}/mc/cons.saver +%attr(755,root,root) %{_libdir}/mc/*.sh +%attr(755,root,root) %{_libdir}/mc/*.csh +%dir %{_datadir}/mc + +%{_datadir}/mc/mc.* +%{_datadir}/mc/skins +%{_datadir}/mc/syntax + +%dir %{_datadir}/mc/help +%{_datadir}/mc/help/mc.hlp +%lang(es) %{_datadir}/mc/help/mc.hlp.es +%lang(hu) %{_datadir}/mc/help/mc.hlp.hu +%lang(it) %{_datadir}/mc/help/mc.hlp.it +%lang(pl) %{_datadir}/mc/help/mc.hlp.pl +%lang(ru) %{_datadir}/mc/help/mc.hlp.ru +%lang(sr) %{_datadir}/mc/help/mc.hlp.sr +%dir %{_datadir}/mc/hints +%{_datadir}/mc/hints/mc.hint +# only English messages inside (as for 4.8.12) +#%lang(az) %{_datadir}/mc/hints/mc.hint.az +%lang(be) %{_datadir}/mc/hints/mc.hint.be +# only English messages inside (as for 4.8.12) +#%lang(bg) %{_datadir}/mc/hints/mc.hint.bg +#%lang(ca) %{_datadir}/mc/hints/mc.hint.ca +%lang(cs) %{_datadir}/mc/hints/mc.hint.cs +# only English messages inside (as for 4.8.12) +#%lang(da) %{_datadir}/mc/hints/mc.hint.da +#%lang(de) %{_datadir}/mc/hints/mc.hint.de +#%lang(de_CH) %{_datadir}/mc/hints/mc.hint.de_CH +%lang(el) %{_datadir}/mc/hints/mc.hint.el +%lang(en_GB) %{_datadir}/mc/hints/mc.hint.en_GB +%lang(eo) %{_datadir}/mc/hints/mc.hint.eo +%lang(es) %{_datadir}/mc/hints/mc.hint.es +%lang(et) %{_datadir}/mc/hints/mc.hint.et +%lang(eu) %{_datadir}/mc/hints/mc.hint.eu +%lang(fa) %{_datadir}/mc/hints/mc.hint.fa +# only English messages inside (as for 4.8.12) +#%lang(fi) %{_datadir}/mc/hints/mc.hint.fi +%lang(fr) %{_datadir}/mc/hints/mc.hint.fr +%lang(gl) %{_datadir}/mc/hints/mc.hint.gl +# only English messages inside (as for 4.8.12) +#%lang(hr) %{_datadir}/mc/hints/mc.hint.hr +%lang(hu) %{_datadir}/mc/hints/mc.hint.hu +# only English messages inside (as for 4.8.12) +#%lang(ia) %{_datadir}/mc/hints/mc.hint.ia +%lang(id) %{_datadir}/mc/hints/mc.hint.id +%lang(it) %{_datadir}/mc/hints/mc.hint.it +# only English messages inside (as for 4.8.12) +#%lang(ja) %{_datadir}/mc/hints/mc.hint.ja +#%lang(ka) %{_datadir}/mc/hints/mc.hint.ka +#%lang(kk) %{_datadir}/mc/hints/mc.hint.kk +#%lang(ko) %{_datadir}/mc/hints/mc.hint.ko +#%lang(lt) %{_datadir}/mc/hints/mc.hint.lt +%lang(nl) %{_datadir}/mc/hints/mc.hint.nl +%lang(pl) %{_datadir}/mc/hints/mc.hint.pl +%lang(pt) %{_datadir}/mc/hints/mc.hint.pt +%lang(pt_BR) %{_datadir}/mc/hints/mc.hint.pt_BR +%lang(ro) %{_datadir}/mc/hints/mc.hint.ro +%lang(ru) %{_datadir}/mc/hints/mc.hint.ru +# only English messages inside (as for 4.8.12) +#%lang(sk) %{_datadir}/mc/hints/mc.hint.sk +#%lang(sl) %{_datadir}/mc/hints/mc.hint.sl +#%lang(sr) %{_datadir}/mc/hints/mc.hint.sr +#%lang(sv) %{_datadir}/mc/hints/mc.hint.sv +#%lang(szl) %{_datadir}/mc/hints/mc.hint.szl +#%lang(tr) %{_datadir}/mc/hints/mc.hint.tr +%lang(uk) %{_datadir}/mc/hints/mc.hint.uk +%lang(zh_CN) %{_datadir}/mc/hints/mc.hint.zh_CN + +%dir %{_libdir}/mc/ext.d +%attr(755,root,root) %{_libdir}/mc/ext.d/archive.sh +%attr(755,root,root) %{_libdir}/mc/ext.d/doc.sh +%attr(755,root,root) %{_libdir}/mc/ext.d/image.sh +%attr(755,root,root) %{_libdir}/mc/ext.d/misc.sh +%attr(755,root,root) %{_libdir}/mc/ext.d/package.sh +%attr(755,root,root) %{_libdir}/mc/ext.d/sound.sh +%attr(755,root,root) %{_libdir}/mc/ext.d/text.sh +%attr(755,root,root) %{_libdir}/mc/ext.d/video.sh +%attr(755,root,root) %{_libdir}/mc/ext.d/web.sh + +%dir %{_libdir}/mc/extfs.d +%{_libdir}/mc/extfs.d/README* +%if %{with perl_vfs} +%attr(755,root,root) %{_libdir}/mc/extfs.d/a+ +%attr(755,root,root) %{_libdir}/mc/extfs.d/apt+ +%attr(755,root,root) %{_libdir}/mc/extfs.d/deb* +%attr(755,root,root) %{_libdir}/mc/extfs.d/dpkg+ +%attr(755,root,root) %{_libdir}/mc/extfs.d/mailfs +%attr(755,root,root) %{_libdir}/mc/extfs.d/patchfs +%attr(755,root,root) %{_libdir}/mc/extfs.d/rpms+ +%attr(755,root,root) %{_libdir}/mc/extfs.d/ulib +%attr(755,root,root) %{_libdir}/mc/extfs.d/uzip +%endif +%attr(755,root,root) %{_libdir}/mc/extfs.d/audio +%attr(755,root,root) %{_libdir}/mc/extfs.d/bpp +%attr(755,root,root) %{_libdir}/mc/extfs.d/changesetfs +%attr(755,root,root) %{_libdir}/mc/extfs.d/gitfs+ +%attr(755,root,root) %{_libdir}/mc/extfs.d/hp48+ +%attr(755,root,root) %{_libdir}/mc/extfs.d/iso9660 +%attr(755,root,root) %{_libdir}/mc/extfs.d/lslR +%attr(755,root,root) %{_libdir}/mc/extfs.d/patchsetfs +%attr(755,root,root) %{_libdir}/mc/extfs.d/rpm +%attr(755,root,root) %{_libdir}/mc/extfs.d/s3+ +%attr(755,root,root) %{_libdir}/mc/extfs.d/trpm +%attr(755,root,root) %{_libdir}/mc/extfs.d/u7z +%attr(755,root,root) %{_libdir}/mc/extfs.d/uace +%attr(755,root,root) %{_libdir}/mc/extfs.d/ualz +%attr(755,root,root) %{_libdir}/mc/extfs.d/uar* +%attr(755,root,root) %{_libdir}/mc/extfs.d/uc1541 +%attr(755,root,root) %{_libdir}/mc/extfs.d/ucab +%attr(755,root,root) %{_libdir}/mc/extfs.d/uha +%attr(755,root,root) %{_libdir}/mc/extfs.d/ulha +%attr(755,root,root) %{_libdir}/mc/extfs.d/urar +%attr(755,root,root) %{_libdir}/mc/extfs.d/uzoo +%dir %{_libdir}/mc/fish +%{_libdir}/mc/fish/README.fish +%attr(755,root,root) %{_libdir}/mc/fish/[a-z]* +%{_desktopdir}/mc.desktop +%{_pixmapsdir}/mc.png + +%{_mandir}/man1/mc.1* +%{_mandir}/man1/mcedit.1* +%{_mandir}/man1/mcview.1* +%lang(es) %{_mandir}/es/man1/* +%lang(hu) %{_mandir}/hu/man1/* +%lang(it) %{_mandir}/it/man1/* +%lang(pl) %{_mandir}/pl/man1/* +%lang(ru) %{_mandir}/ru/man1/* +%lang(sr) %{_mandir}/sr/man1/* + +%dir %{_sysconfdir}/mc +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mc/*.* -- 2.46.0