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://ftp.midnight-commander.org/%{name}-%{version}.tar.xz
29 # Source0-md5: 14231665535fc80cc654b6ccfd070995
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: %{name}-home_etc2.patch
36 Patch2: %{name}-no-ws-visible.patch
37 Patch3: %{name}-noperl-vfs.patch
38 # at now syntax highligthing for PLD-update-TODO and CVSROOT/users
39 Patch4: %{name}-pld-developerfriendly.patch
40 URL: http://www.midnight-commander.org/
41 BuildRequires: autoconf >= 2.60
42 BuildRequires: automake >= 1.5
43 %{?with_ext2undel:BuildRequires: e2fsprogs-devel}
44 BuildRequires: gettext-devel >= 0.14.3
45 BuildRequires: glib2-devel >= 2.8
47 BuildRequires: gpm-devel
49 BuildRequires: libtool
50 BuildRequires: pam-devel
51 BuildRequires: pcre-devel
52 BuildRequires: pkgconfig
53 BuildRequires: rpm-pythonprov
54 BuildRequires: rpmbuild(macros) >= 1.268
55 BuildRequires: sed >= 4.0
56 BuildRequires: slang-devel >= 2.2.1
57 %{?with_x:BuildRequires: xorg-lib-libX11-devel}
59 Requires: pam >= 0.77.3
61 Requires: setup >= 2.4.6-2
64 Suggests: cdrtools-utils
77 Suggests: p7zip-standalone
78 Suggests: perl-tools-pod
92 Conflicts: bash < 2.05b
94 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
96 %define specflags_ia32 -fomit-frame-pointer
99 Midnight Commander is a visual shell much like a file manager, only
100 with way more features. It is text mode, but also includes mouse
101 support if you are running GPM. Its coolest feature is the ability to
102 FTP, view tar, zip files, and poke into RPMs for specific files. :-)
104 %description -l de.UTF-8
105 Midnight Commander ist ein Visual-Shell, ähnlich einem Dateimanager,
106 aber mit zusätzlichen Funktionen. Es läuft im Textmodus, kann jedoch
107 eine Maus unterstützen, wenn GPM betrieben wird. Seine coolsten
108 Fähigkeiten sind die FTP-Option, das Einsehen von tar- und zip-Dateien
109 und das Herausfischen von spezifischen Dateien aus RPMs.
111 %description -l es.UTF-8
112 Midnight Commander es un interpretador de comandos visual que más
113 parece un administrador de archivos, solamente con varias
114 características a más. Es un programa en modo texto, pero incluye
115 soporte para ratón, si estuviera ejecutando GPM o en una ventana
116 xterm. Su característica más genial es la habilidad de cotillear en
117 RPMs buscando archivos específicos. :-)
119 %description -l fr.UTF-8
120 Midnight Commander est une interface pour la ligne de commande qui
121 tient beaucoup du gestionnaire de fichiers, mais est bien plus
122 puissant. Il fonctionne en mode console (texte), mais peut être
123 contrôlé à la souris si GPM est présent. Ses caractéristiques les plus
124 remarquables sont la possibilité de se connecter à un serveur FTP, de
125 visualiser des archives tar, de compresser des fichiers avec zip, de
126 récupérer des fichiers dans les packages RPM, et tout ceci simplement.
128 %description -l hu.UTF-8
129 Midnight Commander egy vizuális shell, lényegében egy fájlkezelő
130 sok-sok lehetőséggel. Szöveges módú, de az egeret is támogatja, ha fut
131 a GPM. A legjobb lehetőség az FTP elérése, tar, zip és RPM fájlok
134 %description -l ja.UTF-8
135 Midnight Commander はいろいろな機能を持ったファイルマネージャ兼
136 ビジュアルシェルです。これはテキストモードのアプリケーションですが、 GPM を使っている場合、マウスが使えます。 Midnight
137 Commander には、 FTP に接続できたり、 tar や zip や RPM の中が見えるなど、クールな機能 があります。
139 %description -l pl.UTF-8
140 Midnight Commander jest wizualną powłoką podobną do Norton Commandera.
141 Pracuje w trybie tekstowym, ale ma także obsługę myszki. Jest super ;)
142 MC ma wbudowanego klienta FTP, może zaglądać do skompresowanych
143 archiwów tar i zip, a także oglądać pliki w pakietach RPM.
145 %description -l pt_BR.UTF-8
146 Midnight Commander é um interpretador de comandos visual que mais
147 parece um gerenciador de arquivos, somente com várias características
148 a mais. Ele é um programa de modo texto, mas inclui suporte para mouse
149 se você estiver rodando GPM ou em uma janela xterm. Sua característica
150 mais legal é a habilidade de bisbilhotar em RPMs procurando arquivos
153 %description -l tr.UTF-8
154 Midnight Commander bir dosya yöneticisine çok benzeyen ancak daha
155 yetenekli bir görsel kabuktur. Metin ekranda çalışır ve GPM
156 çalışıyorsa fare desteği vardır. En hoş özellikleri FTP yapabilmesi,
157 tar, zip ve RPM dosyalarının içeriklerini gösterebilmesidir.
162 # doesn't apply, makes no sense (now mc complies to XDG by default)
165 %{!?with_perl_vfs:%patch3 -p1}
170 %{__sed} -i 's:|hxx|:|hh|hpp|hxx|tcc|:' misc/syntax/Syntax.in
179 export X11_WWW="xdg-open"
181 %{?with_ext2undel:--enable-vfs-undelfs} \
182 %{?with_samba:--enable-vfs-smb} \
183 --with-smb-configdir=/etc/samba \
184 --with-smb-codepagedir=/etc/samba/codepages \
185 --with%{!?with_x:out}-x \
188 --with-screen=slang \
189 --disable-silent-rules
194 rm -rf $RPM_BUILD_ROOT
195 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_pixmapsdir},%{_desktopdir}} \
196 $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,shrc.d,sysconfig} \
197 $RPM_BUILD_ROOT%{_mandir}/man8
200 DESTDIR=$RPM_BUILD_ROOT
202 install %{SOURCE7} $RPM_BUILD_ROOT%{_desktopdir}
203 install %{SOURCE8} $RPM_BUILD_ROOT%{_pixmapsdir}
206 for b in man1 man8 ; do
207 install -d $RPM_BUILD_ROOT%{_mandir}/{$a,$a/$b}
208 for c in man/$a/$b/* ; do
209 install $c $RPM_BUILD_ROOT%{_mandir}/$a/$b
214 install contrib/{mc.sh,mc.csh} $RPM_BUILD_ROOT/etc/shrc.d
216 %{__rm} $RPM_BUILD_ROOT%{_mandir}/*/man8/mcserv.8
218 # fi_FI is currently (i.e. in 4.7.5.2) more complete
219 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/fi
220 mv -f $RPM_BUILD_ROOT%{_datadir}/locale/{fi_FI,fi}
223 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/it_IT
228 rm -rf $RPM_BUILD_ROOT
230 %files -f %{name}.lang
231 %defattr(644,root,root,755)
232 %doc NEWS README doc/keybind-migration.txt
233 %config /etc/shrc.d/*
234 %attr(755,root,root) %{_bindir}/mc*
236 %attr(755,root,root) %{_libdir}/mc/cons.saver
237 %attr(755,root,root) %{_libdir}/mc/*.sh
238 %attr(755,root,root) %{_libdir}/mc/*.csh
243 %{_datadir}/mc/syntax
245 %dir %{_datadir}/mc/help
246 %{_datadir}/mc/help/mc.hlp
247 %lang(es) %{_datadir}/mc/help/mc.hlp.es
248 %lang(hu) %{_datadir}/mc/help/mc.hlp.hu
249 %lang(it) %{_datadir}/mc/help/mc.hlp.it
250 %lang(pl) %{_datadir}/mc/help/mc.hlp.pl
251 %lang(ru) %{_datadir}/mc/help/mc.hlp.ru
252 %lang(sr) %{_datadir}/mc/help/mc.hlp.sr
253 %dir %{_datadir}/mc/hints
254 %{_datadir}/mc/hints/mc.hint
255 %lang(az) %{_datadir}/mc/hints/mc.hint.az
256 %lang(be) %{_datadir}/mc/hints/mc.hint.be
257 %lang(bg) %{_datadir}/mc/hints/mc.hint.bg
258 %lang(ca) %{_datadir}/mc/hints/mc.hint.ca
259 %lang(cs) %{_datadir}/mc/hints/mc.hint.cs
260 %lang(da) %{_datadir}/mc/hints/mc.hint.da
261 %lang(de) %{_datadir}/mc/hints/mc.hint.de
262 %lang(de_CH) %{_datadir}/mc/hints/mc.hint.de_CH
263 %lang(el) %{_datadir}/mc/hints/mc.hint.el
264 %lang(eo) %{_datadir}/mc/hints/mc.hint.eo
265 %lang(es) %{_datadir}/mc/hints/mc.hint.es
266 %lang(eu) %{_datadir}/mc/hints/mc.hint.eu
267 %lang(fa) %{_datadir}/mc/hints/mc.hint.fa
268 %lang(fi) %{_datadir}/mc/hints/mc.hint.fi
269 %lang(fi) %{_datadir}/mc/hints/mc.hint.fi_FI
270 %lang(fr) %{_datadir}/mc/hints/mc.hint.fr
271 %lang(gl) %{_datadir}/mc/hints/mc.hint.gl
272 %lang(hr) %{_datadir}/mc/hints/mc.hint.hr
273 %lang(hu) %{_datadir}/mc/hints/mc.hint.hu
274 %lang(ia) %{_datadir}/mc/hints/mc.hint.ia
275 %lang(id) %{_datadir}/mc/hints/mc.hint.id
276 %lang(it) %{_datadir}/mc/hints/mc.hint.it
277 %lang(it) %{_datadir}/mc/hints/mc.hint.it_IT
278 %lang(ja) %{_datadir}/mc/hints/mc.hint.ja
279 %lang(ka) %{_datadir}/mc/hints/mc.hint.ka
280 %lang(ko) %{_datadir}/mc/hints/mc.hint.ko
281 %lang(lt) %{_datadir}/mc/hints/mc.hint.lt
282 %lang(nl) %{_datadir}/mc/hints/mc.hint.nl
283 %lang(pl) %{_datadir}/mc/hints/mc.hint.pl
284 %lang(pt) %{_datadir}/mc/hints/mc.hint.pt
285 %lang(pt_BR) %{_datadir}/mc/hints/mc.hint.pt_BR
286 %lang(ro) %{_datadir}/mc/hints/mc.hint.ro
287 %lang(ru) %{_datadir}/mc/hints/mc.hint.ru
288 %lang(sk) %{_datadir}/mc/hints/mc.hint.sk
289 %lang(sl) %{_datadir}/mc/hints/mc.hint.sl
290 %lang(sr) %{_datadir}/mc/hints/mc.hint.sr
291 %lang(sv) %{_datadir}/mc/hints/mc.hint.sv
292 %lang(sv) %{_datadir}/mc/hints/mc.hint.sv_SE
293 %lang(tr) %{_datadir}/mc/hints/mc.hint.tr
294 %lang(uk) %{_datadir}/mc/hints/mc.hint.uk
295 %lang(zh) %{_datadir}/mc/hints/mc.hint.zh
296 %lang(zh_CN) %{_datadir}/mc/hints/mc.hint.zh_CN
298 %dir %{_libdir}/mc/ext.d
299 %attr(755,root,root) %{_libdir}/mc/ext.d/archive.sh
300 %attr(755,root,root) %{_libdir}/mc/ext.d/doc.sh
301 %attr(755,root,root) %{_libdir}/mc/ext.d/image.sh
302 %attr(755,root,root) %{_libdir}/mc/ext.d/misc.sh
303 %attr(755,root,root) %{_libdir}/mc/ext.d/package.sh
304 %attr(755,root,root) %{_libdir}/mc/ext.d/sound.sh
305 %attr(755,root,root) %{_libdir}/mc/ext.d/text.sh
306 %attr(755,root,root) %{_libdir}/mc/ext.d/video.sh
307 %attr(755,root,root) %{_libdir}/mc/ext.d/web.sh
309 %dir %{_libdir}/mc/extfs.d
310 %{_libdir}/mc/extfs.d/README*
312 %attr(755,root,root) %{_libdir}/mc/extfs.d/a+
313 %attr(755,root,root) %{_libdir}/mc/extfs.d/apt+
314 %attr(755,root,root) %{_libdir}/mc/extfs.d/deb*
315 %attr(755,root,root) %{_libdir}/mc/extfs.d/dpkg+
316 %attr(755,root,root) %{_libdir}/mc/extfs.d/mailfs
317 %attr(755,root,root) %{_libdir}/mc/extfs.d/patchfs
318 %attr(755,root,root) %{_libdir}/mc/extfs.d/rpms+
319 %attr(755,root,root) %{_libdir}/mc/extfs.d/ulib
320 %attr(755,root,root) %{_libdir}/mc/extfs.d/uzip
322 %attr(755,root,root) %{_libdir}/mc/extfs.d/audio
323 %attr(755,root,root) %{_libdir}/mc/extfs.d/bpp
324 %attr(755,root,root) %{_libdir}/mc/extfs.d/changesetfs
325 %attr(755,root,root) %{_libdir}/mc/extfs.d/gitfs+
326 %attr(755,root,root) %{_libdir}/mc/extfs.d/hp48+
327 %attr(755,root,root) %{_libdir}/mc/extfs.d/iso9660
328 %attr(755,root,root) %{_libdir}/mc/extfs.d/lslR
329 %attr(755,root,root) %{_libdir}/mc/extfs.d/patchsetfs
330 %attr(755,root,root) %{_libdir}/mc/extfs.d/rpm
331 %attr(755,root,root) %{_libdir}/mc/extfs.d/s3+
332 %attr(755,root,root) %{_libdir}/mc/extfs.d/trpm
333 %attr(755,root,root) %{_libdir}/mc/extfs.d/u7z
334 %attr(755,root,root) %{_libdir}/mc/extfs.d/uace
335 %attr(755,root,root) %{_libdir}/mc/extfs.d/ualz
336 %attr(755,root,root) %{_libdir}/mc/extfs.d/uar*
337 %attr(755,root,root) %{_libdir}/mc/extfs.d/uc1541
338 %attr(755,root,root) %{_libdir}/mc/extfs.d/ucab
339 %attr(755,root,root) %{_libdir}/mc/extfs.d/uha
340 %attr(755,root,root) %{_libdir}/mc/extfs.d/ulha
341 %attr(755,root,root) %{_libdir}/mc/extfs.d/urar
342 %attr(755,root,root) %{_libdir}/mc/extfs.d/uzoo
343 %dir %{_libdir}/mc/fish
344 %{_libdir}/mc/fish/README.fish
345 %attr(755,root,root) %{_libdir}/mc/fish/[a-z]*
346 %{_desktopdir}/mc.desktop
347 %{_pixmapsdir}/mc.png
349 %{_mandir}/man1/mc.1*
350 %{_mandir}/man1/mcedit.1*
351 %{_mandir}/man1/mcview.1*
352 %lang(es) %{_mandir}/es/man1/*
353 %lang(hu) %{_mandir}/hu/man1/*
354 %lang(it) %{_mandir}/it/man1/*
355 %lang(pl) %{_mandir}/pl/man1/*
356 %lang(ru) %{_mandir}/ru/man1/*
357 %lang(sr) %{_mandir}/sr/man1/*
359 %dir %{_sysconfdir}/mc
360 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mc/*.*