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