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
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(ja.UTF-8): 使いやすいファイルマネージャとビジュアルシェル
17 Summary(pl.UTF-8): Midnight Commander - powłoka wizualna
18 Summary(pt_BR.UTF-8): Interpretador de comandos visual Midnight Commander
19 Summary(ru.UTF-8): Диспетчер файлов Midnight Commander
20 Summary(tr.UTF-8): Midnight Commander görsel kabuğu
21 Summary(uk.UTF-8): Диспетчер файлів Midnight Commander
22 Summary(zh_CN.UTF-8): 一个方便实用的文件管理器和虚拟Shell
27 Group: Applications/Shells
28 Source0: http://www.midnight-commander.org/downloads/%{name}-%{version}-%{snap}.tar.bz2
29 # Source0-md5: 7bdc0ac4fe57c19a6bf2fd3e8894a073
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 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 BuildRequires: gettext-devel
50 BuildRequires: glib2-devel
52 BuildRequires: libtool
53 BuildRequires: pam-devel
54 BuildRequires: pkgconfig
55 BuildRequires: rpm-perlprov
56 BuildRequires: rpmbuild(macros) >= 1.268
57 BuildRequires: sed >= 4.0
58 BuildRequires: slang-devel >= 2.2.1
60 BuildRequires: gpm-devel
62 # Needed? %%{?with_perl_vfs:Requires: perl-base}
63 %{?with_x:BuildRequires: xorg-lib-libX11-devel}
64 %{?with_ext2undel:BuildRequires: e2fsprogs-devel}
66 Requires: pam >= 0.77.3
68 Requires: setup >= 2.4.6-2
72 Suggests: p7zip-standalone
77 Conflicts: bash < 2.05b
79 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
81 %define specflags_ia32 -fomit-frame-pointer
84 Midnight Commander is a visual shell much like a file manager, only
85 with way more features. It is text mode, but also includes mouse
86 support if you are running GPM. Its coolest feature is the ability to
87 FTP, view tar, zip files, and poke into RPMs for specific files. :-)
89 %description -l de.UTF-8
90 Midnight Commander ist ein Visual-Shell, ähnlich einem Dateimanager,
91 aber mit zusätzlichen Funktionen. Es läuft im Textmodus, kann jedoch
92 eine Maus unterstützen, wenn GPM betrieben wird. Seine coolsten
93 Fähigkeiten sind die FTP-Option, das Einsehen von tar- und zip-Dateien
94 und das Herausfischen von spezifischen Dateien aus RPMs.
96 %description -l es.UTF-8
97 Midnight Commander es un interpretador de comandos visual que más
98 parece un administrador de archivos, solamente con varias
99 características a más. Es un programa en modo texto, pero incluye
100 soporte para ratón, si estuviera ejecutando GPM o en una ventana
101 xterm. Su característica más genial es la habilidad de cotillear en
102 RPMs buscando archivos específicos. :-)
104 %description -l fr.UTF-8
105 Midnight Commander est une interface pour la ligne de commande qui
106 tient beaucoup du gestionnaire de fichiers, mais est bien plus
107 puissant. Il fonctionne en mode console (texte), mais peut être
108 contrôlé à la souris si GPM est présent. Ses caractéristiques les plus
109 remarquables sont la possibilité de se connecter à un serveur FTP, de
110 visualiser des archives tar, de compresser des fichiers avec zip, de
111 récupérer des fichiers dans les packages RPM, et tout ceci simplement.
113 %description -l ja.UTF-8
114 Midnight Commander はいろいろな機能を持ったファイルマネージャ兼
115 ビジュアルシェルです。これはテキストモードのアプリケーションですが、
116 GPM を使っている場合、マウスが使えます。 Midnight Commander には、 FTP
117 に接続できたり、 tar や zip や RPM の中が見えるなど、クールな機能
120 %description -l pl.UTF-8
121 Midnight Commander jest wizualną powłoką podobną do Norton Commandera.
122 Pracuje w trybie tekstowym, ale ma także obsługę myszki. Jest super ;)
123 MC ma wbudowanego klienta FTP, może zaglądać do skompresowanych
124 archiwów tar i zip, a także oglądać pliki w pakietach RPM.
126 %description -l pt_BR.UTF-8
127 Midnight Commander é um interpretador de comandos visual que mais
128 parece um gerenciador de arquivos, somente com várias características
129 a mais. Ele é um programa de modo texto, mas inclui suporte para mouse
130 se você estiver rodando GPM ou em uma janela xterm. Sua característica
131 mais legal é a habilidade de bisbilhotar em RPMs procurando arquivos
134 %description -l tr.UTF-8
135 Midnight Commander bir dosya yöneticisine çok benzeyen ancak daha
136 yetenekli bir görsel kabuktur. Metin ekranda çalışır ve GPM
137 çalışıyorsa fare desteği vardır. En hoş özellikleri FTP yapabilmesi,
138 tar, zip ve RPM dosyalarının içeriklerini gösterebilmesidir.
141 Summary: Server for the Midnight Commander network file management system
142 Summary(de.UTF-8): Midnight Commander File-Server
143 Summary(es.UTF-8): Servidor de archivos del Midnight Commander
144 Summary(fr.UTF-8): Serveur réseau pour le gestionnaire de fichiers Midnight Commander
145 Summary(ja.UTF-8): Midnight Commander でネットワークファイルマネージメントを行うサーバ
146 Summary(pl.UTF-8): Serwer plików Midnight Commandera
147 Summary(pt_BR.UTF-8): Servidor de arquivos do Midnight Commander
148 Summary(ru.UTF-8): Midnight Commander файл-сервер
149 Summary(tr.UTF-8): Midnight Commander dosya sunucusu
150 Summary(uk.UTF-8): Midnight Commander файл-сервер
151 Summary(zh_CN.UTF-8): mc 网络文件管理系统的服务器。
153 Requires(post,preun): /sbin/chkconfig
154 Requires: pam >= 0.99.7.1-1
156 Requires: rc-scripts >= 0.4.1.5
158 %description -n mcserv
159 The Midnight Commander file management system will allow you to
160 manipulate the files on a remote machine as if they were local. This
161 is only possible if the remote machine is running the mcserv server
162 program. Mcserv provides clients running Midnight Commander with
163 access to the host's file systems.
165 %description -n mcserv -l de.UTF-8
166 mcserv ist das Server-Programm für das Netzwerkdateisystem Midnight
167 Commander. Es ermöglicht den Zugriff auf das Host-Dateisystem für
168 Clients, die das Midnight-Dateisystem ausführen (z.Zt. nur Midnight
169 Commander file manager).
171 %description -n mcserv -l es.UTF-8
172 Mcserv es un servidor para el sistema de archivos en red del Midnight
173 Commander. Permite que clientes usando el mc accedan remotamente al
174 sistema de archivos de la máquina en que está ejecutando.
176 %description -n mcserv -l fr.UTF-8
177 Le système de gestion de fichier Midnight Commander vous permet de
178 manipuler des fichiers sur une machine distante comme si ils étaient
179 sur votre propre machine. Ceci est possible seulement si la machine
180 distante possède le programme mcserv et que celui-ci est activé.
181 Mcserv apporte aux machines clientes qui font tourner Midnight
182 Commander un accès aux fichiers situés sur l'hôte.
184 %description -n mcserv -l ja.UTF-8
186 のファイル管理システムは、リモートマシンにあるファイルを
187 ローカルにあるかのように扱うことができます。この機能は mcserv
188 プログラムを 実行しているリモートマシンに対してのみ働きます。 Mcserv
190 クライアントに対して、このホストのファイルシステムを提供します。
192 %description -n mcserv -l pl.UTF-8
193 Mcserv jest aplikacją dla sieciowego systemu plików Midnight
194 Commandera. Pozwala na dostęp do systemu plików dla klienta
195 pracującego pod MC i używającego jego systemu plików.
197 %description -n mcserv -l pt_BR.UTF-8
198 Mcserv é um servidor para o sistema de arquivos em rede do Midnight
199 Commander. Ele permite que clientes usando o mc acessem remotamente o
200 sistema de arquivos da máquina em que está rodando.
202 %description -n mcserv -l ru.UTF-8
203 mcserv - это серверная программа для сетевой файловой системы Midnight
204 Commander. Она обеспечивает доступ к удаленной файловой системе
205 клиентам, поддерживающим файловую систему Midnight Commander (в
206 настоящее время только собственно Midnight Commander).
208 %description -n mcserv -l tr.UTF-8
209 mcserv, Midnight Commander ağ dosya sisteminin sunucu programıdır.
210 Midnight dosya sistemini çalıştıran istemcilerin sunucu dosya
211 sistemine erişimini sağlar.
213 %description -n mcserv -l uk.UTF-8
214 mcserv - це серверна програма для мережевої файлової системи Midnight
215 Commander. Вона забезпечує доступ до віддаленої файлової системи
216 клієнтам, що підтримують файлову систему Midnight Commander (наразі
217 тільки власне Midnight Commander).
220 %setup -q -a3 -n %{name}-%{version}-%{snap}
222 cp -f vfs/extfs/{rpm,srpm}
228 %{!?with_perl_vfs:%patch11 -p1}
231 %if "%{pld_release}" == "ti"
237 sed -i 's:|hxx|:|hh|hpp|hxx|tcc|:' syntax/Syntax
246 if [ -f /usr/bin/iceweasel ]; then
249 if [ -f /usr/bin/galeon ]; then
252 if [ -f /usr/bin/mozilla ]; then
261 --enable-dependency-tracking \
263 --with%{!?debug:out}-debug \
264 --with%{!?with_ext2undel:out}-ext2undel \
265 --with%{!?with_x:out}-x \
269 %{?with_samba:--with-samba} \
270 --with-configdir=/etc/samba \
271 --with-codepagedir=/etc/samba/codepages \
273 --with-screen=slang \
279 rm -rf $RPM_BUILD_ROOT
280 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_pixmapsdir},%{_desktopdir}} \
281 $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,shrc.d,sysconfig} \
282 $RPM_BUILD_ROOT%{_mandir}/man8
285 DESTDIR=$RPM_BUILD_ROOT
287 install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/mcserv
288 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/mcserv
289 install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/mcserv
290 install %{SOURCE7} $RPM_BUILD_ROOT%{_desktopdir}
291 install %{SOURCE8} $RPM_BUILD_ROOT%{_pixmapsdir}
294 for b in man1 man8 ; do
295 install -d $RPM_BUILD_ROOT%{_mandir}/{$a,$a/$b}
296 for c in man/$a/$b/* ; do
297 install $c $RPM_BUILD_ROOT%{_mandir}/$a/$b
302 install contrib/{mc.sh,mc.csh} $RPM_BUILD_ROOT/etc/shrc.d
304 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/be-tarask
309 rm -rf $RPM_BUILD_ROOT
312 /sbin/chkconfig --add mcserv
313 %service mcserv restart "mcserv daemon"
316 if [ "$1" = "0" ]; then
318 /sbin/chkconfig --del mcserv
321 %files -f %{name}.lang
322 %defattr(644,root,root,755)
324 %attr(755,root,root) %{_bindir}/mc*
325 %config /etc/shrc.d/*
326 %attr(755,root,root) %{_libdir}/mc/cons.saver
328 %attr(755,root,root) %{_libdir}/mc/*.sh
329 %attr(755,root,root) %{_libdir}/mc/*.csh
333 %{_datadir}/mc/syntax
335 %{_datadir}/mc/mc.hlp
336 %lang(es) %{_datadir}/mc/mc.hlp.es
337 %lang(hu) %{_datadir}/mc/mc.hlp.hu
338 %lang(it) %{_datadir}/mc/mc.hlp.it
339 %lang(pl) %{_datadir}/mc/mc.hlp.pl
340 %lang(ru) %{_datadir}/mc/mc.hlp.ru
341 %lang(sr) %{_datadir}/mc/mc.hlp.sr
342 %{_datadir}/mc/mc.hint
343 %lang(cs) %{_datadir}/mc/mc.hint.cs
344 %lang(es) %{_datadir}/mc/mc.hint.es
345 %lang(hu) %{_datadir}/mc/mc.hint.hu
346 %lang(it) %{_datadir}/mc/mc.hint.it
347 %lang(nl) %{_datadir}/mc/mc.hint.nl
348 %lang(pl) %{_datadir}/mc/mc.hint.pl
349 %lang(ru) %{_datadir}/mc/mc.hint.ru
350 %lang(sr) %{_datadir}/mc/mc.hint.sr
351 %lang(uk) %{_datadir}/mc/mc.hint.uk
352 %lang(zh) %{_datadir}/mc/mc.hint.zh
354 %dir %{_datadir}/mc/extfs
355 %{_datadir}/mc/extfs/README
357 %attr(755,root,root) %{_datadir}/mc/extfs/a
358 %attr(755,root,root) %{_datadir}/mc/extfs/apt
359 %attr(755,root,root) %{_datadir}/mc/extfs/deb*
360 %attr(755,root,root) %{_datadir}/mc/extfs/dpkg
361 %attr(755,root,root) %{_datadir}/mc/extfs/mailfs
362 %attr(755,root,root) %{_datadir}/mc/extfs/patchfs
363 %attr(755,root,root) %{_datadir}/mc/extfs/rpms
364 %attr(755,root,root) %{_datadir}/mc/extfs/uzip
366 %attr(755,root,root) %{_datadir}/mc/extfs/audio
367 %attr(755,root,root) %{_datadir}/mc/extfs/bpp
368 %attr(755,root,root) %{_datadir}/mc/extfs/hp48
369 %attr(755,root,root) %{_datadir}/mc/extfs/iso9660
370 %attr(755,root,root) %{_datadir}/mc/extfs/lslR
371 %attr(755,root,root) %{_datadir}/mc/extfs/rpm
372 %attr(755,root,root) %{_datadir}/mc/extfs/trpm
373 %attr(755,root,root) %{_datadir}/mc/extfs/u7z
374 %attr(755,root,root) %{_datadir}/mc/extfs/ualz
375 %attr(755,root,root) %{_datadir}/mc/extfs/uar*
376 %attr(755,root,root) %{_datadir}/mc/extfs/uace
377 %attr(755,root,root) %{_datadir}/mc/extfs/uc1541
378 %attr(755,root,root) %{_datadir}/mc/extfs/ucab
379 %attr(755,root,root) %{_datadir}/mc/extfs/uha
380 %attr(755,root,root) %{_datadir}/mc/extfs/ulha
381 %attr(755,root,root) %{_datadir}/mc/extfs/urar
382 %attr(755,root,root) %{_datadir}/mc/extfs/uzoo
383 %attr(755,root,root) %{_datadir}/mc/extfs/srpm
384 %{_desktopdir}/mc.desktop
385 %{_pixmapsdir}/mc.png
388 %lang(es) %{_mandir}/es/man1/*
389 %lang(hu) %{_mandir}/hu/man1/*
390 %lang(it) %{_mandir}/it/man1/*
391 %lang(pl) %{_mandir}/pl/man1/*
392 %lang(ru) %{_mandir}/ru/man1/*
393 %lang(sr) %{_mandir}/sr/man1/*
395 %dir %{_sysconfdir}/mc
396 %config(noreplace) %verify(not md5 mtime size) /etc/mc/Syntax
397 %config(noreplace) %verify(not md5 mtime size) /etc/mc/*.*
398 %dir %{_sysconfdir}/mc/extfs
399 %config(noreplace) %verify(not md5 mtime size) /etc/mc/extfs/*.*
402 %defattr(644,root,root,755)
403 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/*
404 %attr(754,root,root) /etc/rc.d/init.d/mcserv
405 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mcserv
406 %{_mandir}/man8/mcserv.8*
407 %lang(es) %{_mandir}/es/man8/mcserv.8*
408 %lang(pl) %{_mandir}/pl/man8/mcserv.8*
409 %lang(sr) %{_mandir}/sr/man8/mcserv.8*
410 %attr(755,root,root) %{_sbindir}/mcserv