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