2 # - check spec-syntax,mo patches
5 %bcond_with ext2undel # with ext2 undelete fs
6 %bcond_without perl_vfs # without perl depending vfs'es -- to avoid perl autoreq
7 %bcond_with samba # with SAMBA vfs support
8 %bcond_without x # without text edit in X support
10 Summary: A user-friendly file manager and visual shell
11 Summary(de.UTF-8): Visuelle Shell Midnight Commander
12 Summary(es.UTF-8): Interpretador de comandos visual Midnight Commander
13 Summary(fr.UTF-8): Un gestionnaire de fichiers puissant et agréable en mode console
14 Summary(hu.UTF-8): Egy felhasználóbarát fájlkezelő és vizuális shell
15 Summary(ja.UTF-8): 使いやすいファイルマネージャとビジュアルシェル
16 Summary(pl.UTF-8): Midnight Commander - powłoka wizualna
17 Summary(pt_BR.UTF-8): Interpretador de comandos visual Midnight Commander
18 Summary(ru.UTF-8): Диспетчер файлов Midnight Commander
19 Summary(tr.UTF-8): Midnight Commander görsel kabuğu
20 Summary(uk.UTF-8): Диспетчер файлів Midnight Commander
21 Summary(zh_CN.UTF-8): 一个方便实用的文件管理器和虚拟Shell
27 Group: Applications/Shells
28 Source0: http://www.midnight-commander.org/downloads/%{name}-%{version}.tar.bz2
29 # Source0-md5: 4eb2438b168fb0f93b748889a9294f54
30 Source3: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
31 # Source3-md5: 17d7b574e1b85ad6f8ddceda9e841f19
32 Source7: %{name}.desktop
34 Patch0: %{name}-rpmfs.patch
35 Patch1: slang-8bit_xterm.patch
36 Patch4: %{name}-home_etc2.patch
37 Patch5: %{name}-pl.patch
38 Patch6: %{name}-no-ws-visible.patch
39 Patch11: %{name}-noperl-vfs.patch
40 # at now syntax highligthing for PLD-update-TODO and CVSROOT/users
41 Patch12: %{name}-pld-developerfriendly.patch
42 Patch24: %{name}-find_options.patch
43 URL: http://www.midnight-commander.org/
44 BuildRequires: autoconf
45 BuildRequires: automake
46 %{?with_ext2undel:BuildRequires: e2fsprogs-devel}
47 BuildRequires: gettext-devel
48 BuildRequires: glib2-devel >= 2.8
50 BuildRequires: gpm-devel
52 BuildRequires: libtool
53 BuildRequires: pam-devel
54 # Needed? %%{?with_perl_vfs:Requires: perl-base}
55 BuildRequires: pkgconfig
56 BuildRequires: rpm-pythonprov
57 BuildRequires: rpmbuild(macros) >= 1.268
58 BuildRequires: sed >= 4.0
59 BuildRequires: slang-devel >= 2.2.1
60 %{?with_x:BuildRequires: xorg-lib-libX11-devel}
62 Requires: pam >= 0.77.3
64 Requires: setup >= 2.4.6-2
67 Suggests: cdrtools-utils
80 Suggests: p7zip-standalone
81 Suggests: perl-tools-pod
95 Conflicts: bash < 2.05b
97 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
99 %define specflags_ia32 -fomit-frame-pointer
102 Midnight Commander is a visual shell much like a file manager, only
103 with way more features. It is text mode, but also includes mouse
104 support if you are running GPM. Its coolest feature is the ability to
105 FTP, view tar, zip files, and poke into RPMs for specific files. :-)
107 %description -l de.UTF-8
108 Midnight Commander ist ein Visual-Shell, ähnlich einem Dateimanager,
109 aber mit zusätzlichen Funktionen. Es läuft im Textmodus, kann jedoch
110 eine Maus unterstützen, wenn GPM betrieben wird. Seine coolsten
111 Fähigkeiten sind die FTP-Option, das Einsehen von tar- und zip-Dateien
112 und das Herausfischen von spezifischen Dateien aus RPMs.
114 %description -l es.UTF-8
115 Midnight Commander es un interpretador de comandos visual que más
116 parece un administrador de archivos, solamente con varias
117 características a más. Es un programa en modo texto, pero incluye
118 soporte para ratón, si estuviera ejecutando GPM o en una ventana
119 xterm. Su característica más genial es la habilidad de cotillear en
120 RPMs buscando archivos específicos. :-)
122 %description -l fr.UTF-8
123 Midnight Commander est une interface pour la ligne de commande qui
124 tient beaucoup du gestionnaire de fichiers, mais est bien plus
125 puissant. Il fonctionne en mode console (texte), mais peut être
126 contrôlé à la souris si GPM est présent. Ses caractéristiques les plus
127 remarquables sont la possibilité de se connecter à un serveur FTP, de
128 visualiser des archives tar, de compresser des fichiers avec zip, de
129 récupérer des fichiers dans les packages RPM, et tout ceci simplement.
131 %description -l hu.UTF-8
132 Midnight Commander egy vizuális shell, lényegében egy fájlkezelő
133 sok-sok lehetőséggel. Szöveges módú, de az egeret is támogatja, ha fut
134 a GPM. A legjobb lehetőség az FTP elérése, tar, zip és RPM fájlok
137 %description -l ja.UTF-8
138 Midnight Commander はいろいろな機能を持ったファイルマネージャ兼
139 ビジュアルシェルです。これはテキストモードのアプリケーションですが、 GPM を使っている場合、マウスが使えます。 Midnight
140 Commander には、 FTP に接続できたり、 tar や zip や RPM の中が見えるなど、クールな機能 があります。
142 %description -l pl.UTF-8
143 Midnight Commander jest wizualną powłoką podobną do Norton Commandera.
144 Pracuje w trybie tekstowym, ale ma także obsługę myszki. Jest super ;)
145 MC ma wbudowanego klienta FTP, może zaglądać do skompresowanych
146 archiwów tar i zip, a także oglądać pliki w pakietach RPM.
148 %description -l pt_BR.UTF-8
149 Midnight Commander é um interpretador de comandos visual que mais
150 parece um gerenciador de arquivos, somente com várias características
151 a mais. Ele é um programa de modo texto, mas inclui suporte para mouse
152 se você estiver rodando GPM ou em uma janela xterm. Sua característica
153 mais legal é a habilidade de bisbilhotar em RPMs procurando arquivos
156 %description -l tr.UTF-8
157 Midnight Commander bir dosya yöneticisine çok benzeyen ancak daha
158 yetenekli bir görsel kabuktur. Metin ekranda çalışır ve GPM
159 çalışıyorsa fare desteği vardır. En hoş özellikleri FTP yapabilmesi,
160 tar, zip ve RPM dosyalarının içeriklerini gösterebilmesidir.
164 #rpm wrapper rewritten
172 %{!?with_perl_vfs:%patch11 -p1}
174 %if "%{pld_release}" == "ti"
180 sed -i 's:|hxx|:|hh|hpp|hxx|tcc|:' misc/syntax/Syntax
189 export X11_WWW="xdg-open"
191 %{?with_ext2undel:--enable-vfs-undelfs} \
192 %{?with_samba:--enable-vfs-smb} \
193 --with-smb-configdir=/etc/samba \
194 --with-smb-codepagedir=/etc/samba/codepages \
195 --with%{!?with_x:out}-x \
202 rm -rf $RPM_BUILD_ROOT
203 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_pixmapsdir},%{_desktopdir}} \
204 $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,shrc.d,sysconfig} \
205 $RPM_BUILD_ROOT%{_mandir}/man8
208 DESTDIR=$RPM_BUILD_ROOT
210 install %{SOURCE7} $RPM_BUILD_ROOT%{_desktopdir}
211 install %{SOURCE8} $RPM_BUILD_ROOT%{_pixmapsdir}
214 for b in man1 man8 ; do
215 install -d $RPM_BUILD_ROOT%{_mandir}/{$a,$a/$b}
216 for c in man/$a/$b/* ; do
217 install $c $RPM_BUILD_ROOT%{_mandir}/$a/$b
222 install contrib/{mc.sh,mc.csh} $RPM_BUILD_ROOT/etc/shrc.d
227 rm -rf $RPM_BUILD_ROOT
229 %files -f %{name}.lang
230 %defattr(644,root,root,755)
232 %config /etc/shrc.d/*
233 %attr(755,root,root) %{_bindir}/mc*
235 %attr(755,root,root) %{_libdir}/mc/cons.saver
236 %attr(755,root,root) %{_libdir}/mc/*.sh
237 %attr(755,root,root) %{_libdir}/mc/*.csh
242 %{_datadir}/mc/syntax
244 %dir %{_datadir}/mc/help
245 %{_datadir}/mc/help/mc.hlp
246 %lang(es) %{_datadir}/mc/help/mc.hlp.es
247 %lang(hu) %{_datadir}/mc/help/mc.hlp.hu
248 %lang(it) %{_datadir}/mc/help/mc.hlp.it
249 %lang(pl) %{_datadir}/mc/help/mc.hlp.pl
250 %lang(ru) %{_datadir}/mc/help/mc.hlp.ru
251 %lang(sr) %{_datadir}/mc/help/mc.hlp.sr
252 %dir %{_datadir}/mc/hints
253 %{_datadir}/mc/hints/mc.hint
254 %lang(cs) %{_datadir}/mc/hints/mc.hint.cs
255 %lang(es) %{_datadir}/mc/hints/mc.hint.es
256 %lang(hu) %{_datadir}/mc/hints/mc.hint.hu
257 %lang(it) %{_datadir}/mc/hints/mc.hint.it
258 %lang(nl) %{_datadir}/mc/hints/mc.hint.nl
259 %lang(pl) %{_datadir}/mc/hints/mc.hint.pl
260 %lang(ru) %{_datadir}/mc/hints/mc.hint.ru
261 %lang(sr) %{_datadir}/mc/hints/mc.hint.sr
262 %lang(uk) %{_datadir}/mc/hints/mc.hint.uk
263 %lang(zh) %{_datadir}/mc/hints/mc.hint.zh
265 %dir %{_libdir}/mc/extfs.d
266 %{_libdir}/mc/extfs.d/README*
268 %attr(755,root,root) %{_libdir}/mc/extfs.d/a+
269 %attr(755,root,root) %{_libdir}/mc/extfs.d/apt+
270 %attr(755,root,root) %{_libdir}/mc/extfs.d/deb*
271 %attr(755,root,root) %{_libdir}/mc/extfs.d/dpkg+
272 %attr(755,root,root) %{_libdir}/mc/extfs.d/mailfs
273 %attr(755,root,root) %{_libdir}/mc/extfs.d/patchfs
274 %attr(755,root,root) %{_libdir}/mc/extfs.d/rpms+
275 %attr(755,root,root) %{_libdir}/mc/extfs.d/uzip
277 %attr(755,root,root) %{_libdir}/mc/extfs.d/audio
278 %attr(755,root,root) %{_libdir}/mc/extfs.d/bpp
279 %attr(755,root,root) %{_libdir}/mc/extfs.d/hp48+
280 %attr(755,root,root) %{_libdir}/mc/extfs.d/iso9660
281 %attr(755,root,root) %{_libdir}/mc/extfs.d/lslR
282 %attr(755,root,root) %{_libdir}/mc/extfs.d/rpm
283 %attr(755,root,root) %{_libdir}/mc/extfs.d/s3+
284 %attr(755,root,root) %{_libdir}/mc/extfs.d/trpm
285 %attr(755,root,root) %{_libdir}/mc/extfs.d/u7z
286 %attr(755,root,root) %{_libdir}/mc/extfs.d/uace
287 %attr(755,root,root) %{_libdir}/mc/extfs.d/ualz
288 %attr(755,root,root) %{_libdir}/mc/extfs.d/uar*
289 %attr(755,root,root) %{_libdir}/mc/extfs.d/uc1541
290 %attr(755,root,root) %{_libdir}/mc/extfs.d/ucab
291 %attr(755,root,root) %{_libdir}/mc/extfs.d/uha
292 %attr(755,root,root) %{_libdir}/mc/extfs.d/ulha
293 %attr(755,root,root) %{_libdir}/mc/extfs.d/urar
294 %attr(755,root,root) %{_libdir}/mc/extfs.d/uzoo
295 %dir %{_libdir}/mc/fish
296 %{_libdir}/mc/fish/README.fish
297 %attr(755,root,root) %{_libdir}/mc/fish/[a-z]*
298 %{_desktopdir}/mc.desktop
299 %{_pixmapsdir}/mc.png
302 %lang(es) %{_mandir}/es/man1/*
303 %lang(hu) %{_mandir}/hu/man1/*
304 %lang(it) %{_mandir}/it/man1/*
305 %lang(pl) %{_mandir}/pl/man1/*
306 %lang(ru) %{_mandir}/ru/man1/*
307 %lang(sr) %{_mandir}/sr/man1/*
309 %dir %{_sysconfdir}/mc
310 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mc/*.*