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