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: 5bd69a47b4a0bd6904623a50863b1eeb
30 Source1: %{name}serv.pamd
31 Source2: %{name}serv.init
32 Source3: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
33 # Source3-md5: 17d7b574e1b85ad6f8ddceda9e841f19
34 Source6: %{name}serv.sysconfig
35 Source7: %{name}.desktop
37 Patch0: %{name}-rpmfs.patch
38 Patch1: slang-8bit_xterm.patch
39 Patch4: %{name}-home_etc2.patch
40 Patch5: %{name}-pl.patch
41 Patch6: %{name}-no-ws-visible.patch
42 Patch11: %{name}-noperl-vfs.patch
43 # at now syntax highligthing for PLD-update-TODO and CVSROOT/users
44 Patch12: %{name}-pld-developerfriendly.patch
45 Patch17: %{name}-nolibs.patch
46 Patch24: %{name}-find_options.patch
47 Patch25: %{name}-case_sensitive_quick_search.patch
48 URL: http://www.midnight-commander.org/
49 BuildRequires: autoconf
50 BuildRequires: automake
51 %{?with_ext2undel:BuildRequires: e2fsprogs-devel}
52 BuildRequires: gettext-devel
53 BuildRequires: glib2-devel >= 2.8
55 BuildRequires: gpm-devel
57 BuildRequires: libtool
58 BuildRequires: pam-devel
59 # Needed? %%{?with_perl_vfs:Requires: perl-base}
60 BuildRequires: pkgconfig
61 BuildRequires: rpm-pythonprov
62 BuildRequires: rpmbuild(macros) >= 1.268
63 BuildRequires: sed >= 4.0
64 BuildRequires: slang-devel >= 2.2.1
65 %{?with_x:BuildRequires: xorg-lib-libX11-devel}
67 Requires: pam >= 0.77.3
69 Requires: setup >= 2.4.6-2
84 Suggests: p7zip-standalone
98 Conflicts: bash < 2.05b
100 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
102 %define specflags_ia32 -fomit-frame-pointer
105 Midnight Commander is a visual shell much like a file manager, only
106 with way more features. It is text mode, but also includes mouse
107 support if you are running GPM. Its coolest feature is the ability to
108 FTP, view tar, zip files, and poke into RPMs for specific files. :-)
110 %description -l de.UTF-8
111 Midnight Commander ist ein Visual-Shell, ähnlich einem Dateimanager,
112 aber mit zusätzlichen Funktionen. Es läuft im Textmodus, kann jedoch
113 eine Maus unterstützen, wenn GPM betrieben wird. Seine coolsten
114 Fähigkeiten sind die FTP-Option, das Einsehen von tar- und zip-Dateien
115 und das Herausfischen von spezifischen Dateien aus RPMs.
117 %description -l es.UTF-8
118 Midnight Commander es un interpretador de comandos visual que más
119 parece un administrador de archivos, solamente con varias
120 características a más. Es un programa en modo texto, pero incluye
121 soporte para ratón, si estuviera ejecutando GPM o en una ventana
122 xterm. Su característica más genial es la habilidad de cotillear en
123 RPMs buscando archivos específicos. :-)
125 %description -l fr.UTF-8
126 Midnight Commander est une interface pour la ligne de commande qui
127 tient beaucoup du gestionnaire de fichiers, mais est bien plus
128 puissant. Il fonctionne en mode console (texte), mais peut être
129 contrôlé à la souris si GPM est présent. Ses caractéristiques les plus
130 remarquables sont la possibilité de se connecter à un serveur FTP, de
131 visualiser des archives tar, de compresser des fichiers avec zip, de
132 récupérer des fichiers dans les packages RPM, et tout ceci simplement.
134 %description -l hu.UTF-8
135 Midnight Commander egy vizuális shell, lényegében egy fájlkezelő
136 sok-sok lehetőséggel. Szöveges módú, de az egeret is támogatja, ha fut
137 a GPM. A legjobb lehetőség az FTP elérése, tar, zip és RPM fájlok
140 %description -l ja.UTF-8
141 Midnight Commander はいろいろな機能を持ったファイルマネージャ兼
142 ビジュアルシェルです。これはテキストモードのアプリケーションですが、 GPM を使っている場合、マウスが使えます。 Midnight
143 Commander には、 FTP に接続できたり、 tar や zip や RPM の中が見えるなど、クールな機能 があります。
145 %description -l pl.UTF-8
146 Midnight Commander jest wizualną powłoką podobną do Norton Commandera.
147 Pracuje w trybie tekstowym, ale ma także obsługę myszki. Jest super ;)
148 MC ma wbudowanego klienta FTP, może zaglądać do skompresowanych
149 archiwów tar i zip, a także oglądać pliki w pakietach RPM.
151 %description -l pt_BR.UTF-8
152 Midnight Commander é um interpretador de comandos visual que mais
153 parece um gerenciador de arquivos, somente com várias características
154 a mais. Ele é um programa de modo texto, mas inclui suporte para mouse
155 se você estiver rodando GPM ou em uma janela xterm. Sua característica
156 mais legal é a habilidade de bisbilhotar em RPMs procurando arquivos
159 %description -l tr.UTF-8
160 Midnight Commander bir dosya yöneticisine çok benzeyen ancak daha
161 yetenekli bir görsel kabuktur. Metin ekranda çalışır ve GPM
162 çalışıyorsa fare desteği vardır. En hoş özellikleri FTP yapabilmesi,
163 tar, zip ve RPM dosyalarının içeriklerini gösterebilmesidir.
166 Summary: Server for the Midnight Commander network file management system
167 Summary(de.UTF-8): Midnight Commander File-Server
168 Summary(es.UTF-8): Servidor de archivos del Midnight Commander
169 Summary(fr.UTF-8): Serveur réseau pour le gestionnaire de fichiers Midnight Commander
170 Summary(hu.UTF-8): Midnight Commander Fájlszerver
171 Summary(ja.UTF-8): Midnight Commander でネットワークファイルマネージメントを行うサーバ
172 Summary(pl.UTF-8): Serwer plików Midnight Commandera
173 Summary(pt_BR.UTF-8): Servidor de arquivos do Midnight Commander
174 Summary(ru.UTF-8): Midnight Commander файл-сервер
175 Summary(tr.UTF-8): Midnight Commander dosya sunucusu
176 Summary(uk.UTF-8): Midnight Commander файл-сервер
177 Summary(zh_CN.UTF-8): mc 网络文件管理系统的服务器。
179 Requires(post,preun): /sbin/chkconfig
180 Requires: pam >= 0.99.7.1-1
182 Requires: rc-scripts >= 0.4.1.5
185 %description -n mcserv
186 The Midnight Commander file management system will allow you to
187 manipulate the files on a remote machine as if they were local. This
188 is only possible if the remote machine is running the mcserv server
189 program. Mcserv provides clients running Midnight Commander with
190 access to the host's file systems.
192 %description -n mcserv -l de.UTF-8
193 mcserv ist das Server-Programm für das Netzwerkdateisystem Midnight
194 Commander. Es ermöglicht den Zugriff auf das Host-Dateisystem für
195 Clients, die das Midnight-Dateisystem ausführen (z.Zt. nur Midnight
196 Commander file manager).
198 %description -n mcserv -l es.UTF-8
199 Mcserv es un servidor para el sistema de archivos en red del Midnight
200 Commander. Permite que clientes usando el mc accedan remotamente al
201 sistema de archivos de la máquina en que está ejecutando.
203 %description -n mcserv -l fr.UTF-8
204 Le système de gestion de fichier Midnight Commander vous permet de
205 manipuler des fichiers sur une machine distante comme si ils étaient
206 sur votre propre machine. Ceci est possible seulement si la machine
207 distante possède le programme mcserv et que celui-ci est activé.
208 Mcserv apporte aux machines clientes qui font tourner Midnight
209 Commander un accès aux fichiers situés sur l'hôte.
211 %description -n mcserv -l hu.UTF-8
212 A Midnight Commander fájlkezelő rendszer lehetőséget nyújt a távoli
213 gépen fájlok módosításához. Ez akkor lehetséges, ha a távoli gépen fut
214 az mcserv szerver program. Az mcserv-vel a futó Midnight Commander
215 kliensként csatlakozik a távoli gép fájlrendszeréhez.
217 %description -n mcserv -l ja.UTF-8
219 のファイル管理システムは、リモートマシンにあるファイルを
220 ローカルにあるかのように扱うことができます。この機能は mcserv
221 プログラムを 実行しているリモートマシンに対してのみ働きます。 Mcserv
223 クライアントに対して、このホストのファイルシステムを提供します。
225 %description -n mcserv -l pl.UTF-8
226 Mcserv jest aplikacją dla sieciowego systemu plików Midnight
227 Commandera. Pozwala na dostęp do systemu plików dla klienta
228 pracującego pod MC i używającego jego systemu plików.
230 %description -n mcserv -l pt_BR.UTF-8
231 Mcserv é um servidor para o sistema de arquivos em rede do Midnight
232 Commander. Ele permite que clientes usando o mc acessem remotamente o
233 sistema de arquivos da máquina em que está rodando.
235 %description -n mcserv -l ru.UTF-8
236 mcserv - это серверная программа для сетевой файловой системы Midnight
237 Commander. Она обеспечивает доступ к удаленной файловой системе
238 клиентам, поддерживающим файловую систему Midnight Commander (в
239 настоящее время только собственно Midnight Commander).
241 %description -n mcserv -l tr.UTF-8
242 mcserv, Midnight Commander ağ dosya sisteminin sunucu programıdır.
243 Midnight dosya sistemini çalıştıran istemcilerin sunucu dosya
244 sistemine erişimini sağlar.
246 %description -n mcserv -l uk.UTF-8
247 mcserv - це серверна програма для мережевої файлової системи Midnight
248 Commander. Вона забезпечує доступ до віддаленої файлової системи
249 клієнтам, що підтримують файлову систему Midnight Commander (наразі
250 тільки власне Midnight Commander).
254 #rpm wrapper rewritten
262 %{!?with_perl_vfs:%patch11 -p1}
265 %if "%{pld_release}" == "ti"
272 sed -i 's:|hxx|:|hh|hpp|hxx|tcc|:' misc/syntax/Syntax
281 export X11_WWW="xdg-open"
283 --enable-dependency-tracking \
285 --with%{!?debug:out}-debug \
286 --with%{!?with_ext2undel:out}-ext2undel \
287 --with%{!?with_x:out}-x \
291 %{?with_samba:--with-samba} \
292 --with-configdir=/etc/samba \
293 --with-codepagedir=/etc/samba/codepages \
295 --with-screen=slang \
301 rm -rf $RPM_BUILD_ROOT
302 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_pixmapsdir},%{_desktopdir}} \
303 $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,shrc.d,sysconfig} \
304 $RPM_BUILD_ROOT%{_mandir}/man8
307 DESTDIR=$RPM_BUILD_ROOT
309 install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/mcserv
310 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/mcserv
311 install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/mcserv
312 install %{SOURCE7} $RPM_BUILD_ROOT%{_desktopdir}
313 install %{SOURCE8} $RPM_BUILD_ROOT%{_pixmapsdir}
316 for b in man1 man8 ; do
317 install -d $RPM_BUILD_ROOT%{_mandir}/{$a,$a/$b}
318 for c in man/$a/$b/* ; do
319 install $c $RPM_BUILD_ROOT%{_mandir}/$a/$b
324 install contrib/{mc.sh,mc.csh} $RPM_BUILD_ROOT/etc/shrc.d
326 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/be-tarask
331 rm -rf $RPM_BUILD_ROOT
334 /sbin/chkconfig --add mcserv
335 %service mcserv restart "mcserv daemon"
338 if [ "$1" = "0" ]; then
340 /sbin/chkconfig --del mcserv
343 %files -f %{name}.lang
344 %defattr(644,root,root,755)
346 %attr(755,root,root) %{_bindir}/mc*
347 %config /etc/shrc.d/*
348 %attr(755,root,root) %{_libdir}/mc/cons.saver
350 %attr(755,root,root) %{_libdir}/mc/*.sh
351 %attr(755,root,root) %{_libdir}/mc/*.csh
355 %{_datadir}/mc/syntax
357 %{_datadir}/mc/mc.hlp
358 %lang(es) %{_datadir}/mc/mc.hlp.es
359 %lang(hu) %{_datadir}/mc/mc.hlp.hu
360 %lang(it) %{_datadir}/mc/mc.hlp.it
361 %lang(pl) %{_datadir}/mc/mc.hlp.pl
362 %lang(ru) %{_datadir}/mc/mc.hlp.ru
363 %lang(sr) %{_datadir}/mc/mc.hlp.sr
364 %{_datadir}/mc/mc.hint
365 %lang(cs) %{_datadir}/mc/mc.hint.cs
366 %lang(es) %{_datadir}/mc/mc.hint.es
367 %lang(hu) %{_datadir}/mc/mc.hint.hu
368 %lang(it) %{_datadir}/mc/mc.hint.it
369 %lang(nl) %{_datadir}/mc/mc.hint.nl
370 %lang(pl) %{_datadir}/mc/mc.hint.pl
371 %lang(ru) %{_datadir}/mc/mc.hint.ru
372 %lang(sr) %{_datadir}/mc/mc.hint.sr
373 %lang(uk) %{_datadir}/mc/mc.hint.uk
374 %lang(zh) %{_datadir}/mc/mc.hint.zh
376 %dir %{_libdir}/mc/extfs.d
377 %{_libdir}/mc/extfs.d/README*
379 %attr(755,root,root) %{_libdir}/mc/extfs.d/a+
380 %attr(755,root,root) %{_libdir}/mc/extfs.d/apt+
381 %attr(755,root,root) %{_libdir}/mc/extfs.d/deb*
382 %attr(755,root,root) %{_libdir}/mc/extfs.d/dpkg+
383 %attr(755,root,root) %{_libdir}/mc/extfs.d/mailfs
384 %attr(755,root,root) %{_libdir}/mc/extfs.d/patchfs
385 %attr(755,root,root) %{_libdir}/mc/extfs.d/rpms+
386 %attr(755,root,root) %{_libdir}/mc/extfs.d/uzip
388 %attr(755,root,root) %{_libdir}/mc/extfs.d/audio
389 %attr(755,root,root) %{_libdir}/mc/extfs.d/bpp
390 %attr(755,root,root) %{_libdir}/mc/extfs.d/hp48+
391 %attr(755,root,root) %{_libdir}/mc/extfs.d/iso9660
392 %attr(755,root,root) %{_libdir}/mc/extfs.d/lslR
393 %attr(755,root,root) %{_libdir}/mc/extfs.d/rpm
394 %attr(755,root,root) %{_libdir}/mc/extfs.d/s3+
395 %attr(755,root,root) %{_libdir}/mc/extfs.d/trpm
396 %attr(755,root,root) %{_libdir}/mc/extfs.d/u7z
397 %attr(755,root,root) %{_libdir}/mc/extfs.d/uace
398 %attr(755,root,root) %{_libdir}/mc/extfs.d/ualz
399 %attr(755,root,root) %{_libdir}/mc/extfs.d/uar*
400 %attr(755,root,root) %{_libdir}/mc/extfs.d/uc1541
401 %attr(755,root,root) %{_libdir}/mc/extfs.d/ucab
402 %attr(755,root,root) %{_libdir}/mc/extfs.d/uha
403 %attr(755,root,root) %{_libdir}/mc/extfs.d/ulha
404 %attr(755,root,root) %{_libdir}/mc/extfs.d/urar
405 %attr(755,root,root) %{_libdir}/mc/extfs.d/uzoo
406 %{_desktopdir}/mc.desktop
407 %{_pixmapsdir}/mc.png
410 %lang(es) %{_mandir}/es/man1/*
411 %lang(hu) %{_mandir}/hu/man1/*
412 %lang(it) %{_mandir}/it/man1/*
413 %lang(pl) %{_mandir}/pl/man1/*
414 %lang(ru) %{_mandir}/ru/man1/*
415 %lang(sr) %{_mandir}/sr/man1/*
417 %dir %{_sysconfdir}/mc
418 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mc/Syntax
419 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mc/*.*
422 %defattr(644,root,root,755)
423 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/*
424 %attr(754,root,root) /etc/rc.d/init.d/mcserv
425 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mcserv
426 %{_mandir}/man8/mcserv.8*
427 %lang(es) %{_mandir}/es/man8/mcserv.8*
428 %lang(pl) %{_mandir}/pl/man8/mcserv.8*
429 %lang(sr) %{_mandir}/sr/man8/mcserv.8*
430 %attr(755,root,root) %{_sbindir}/mcserv