]> git.pld-linux.org Git - packages/mc.git/blob - mc.spec
- upgraded to 4.7.1
[packages/mc.git] / mc.spec
1 # TODO:
2 # - check spec-syntax,mo patches
3 #
4 # Conditional build:
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
9 #
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
22 Name:           mc
23 Version:        4.7.1
24 Release:        1
25 License:        GPL v2+
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
35 Source8:        %{name}.png
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
52 %ifnarch s390 s390x
53 BuildRequires:  gpm-devel
54 %endif
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}
64 Requires:       file
65 Requires:       pam >= 0.77.3
66 Requires:       sed
67 Requires:       setup >= 2.4.6-2
68 Suggests:       bzip2
69 Suggests:       gzip
70 Suggests:       lynx
71 Suggests:       p7zip-standalone
72 Suggests:       rpm-utils
73 Suggests:       tar
74 Suggests:       unzip
75 Suggests:       xdg-utils
76 Obsoletes:      mc46
77 Obsoletes:      tkmc
78 Conflicts:      bash < 2.05b
79 Conflicts:      rpm < 4.0
80 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
81
82 %define         specflags_ia32  -fomit-frame-pointer
83
84 %description
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. :-)
89
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.
96
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. :-)
104
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.
113
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
118 kezelése.
119
120 %description -l ja.UTF-8
121 Midnight Commander はいろいろな機能を持ったファイルマネージャ兼
122 ビジュアルシェルです。これはテキストモードのアプリケーションですが、 GPM を使っている場合、マウスが使えます。 Midnight
123 Commander には、 FTP に接続できたり、 tar や zip や RPM の中が見えるなど、クールな機能 があります。
124
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.
130
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
137 específicos. :-)
138
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.
144
145 %package -n mcserv
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 网络文件管理系统的服务器。
158 Group:          Daemons
159 Requires(post,preun):   /sbin/chkconfig
160 Requires:       pam >= 0.99.7.1-1
161 Requires:       portmap
162 Requires:       rc-scripts >= 0.4.1.5
163 Obsoletes:      mc46serv
164
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.
171
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).
177
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.
182
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.
190
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.
196
197 %description -n mcserv -l ja.UTF-8
198 Midnight Commander
199 のファイル管理システムは、リモートマシンにあるファイルを
200 ローカルにあるかのように扱うことができます。この機能は mcserv
201 プログラムを 実行しているリモートマシンに対してのみ働きます。 Mcserv
202 は Midnight Commander
203 クライアントに対して、このホストのファイルシステムを提供します。
204
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.
209
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.
214
215 %description -n mcserv -l ru.UTF-8
216 mcserv - это серверная программа для сетевой файловой системы Midnight
217 Commander. Она обеспечивает доступ к удаленной файловой системе
218 клиентам, поддерживающим файловую систему Midnight Commander (в
219 настоящее время только собственно Midnight Commander).
220
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.
225
226 %description -n mcserv -l uk.UTF-8
227 mcserv - це серверна програма для мережевої файлової системи Midnight
228 Commander. Вона забезпечує доступ до віддаленої файлової системи
229 клієнтам, що підтримують файлову систему Midnight Commander (наразі
230 тільки власне Midnight Commander).
231
232 %prep
233 %setup -q -a3
234 #rpm wrapper rewritten
235 #%patch0 -p1
236 %patch1 -p1
237 # doesn't apply
238 #%patch4 -p1
239 # doesn't apply
240 #%patch5 -p1
241 %patch6 -p1
242 %{!?with_perl_vfs:%patch11 -p1}
243 %patch12 -p1
244 %patch17 -p1
245 %if "%{pld_release}" == "ti"
246 %patch24 -p1
247 %endif
248
249 rm -f po/stamp-po
250
251 sed -i 's:|hxx|:|hh|hpp|hxx|tcc|:' misc/syntax/Syntax
252
253 %build
254 %{__gettextize}
255 %{__libtoolize}
256 %{__aclocal} -I m4
257 %{__autoconf}
258 %{__automake}
259
260 export X11_WWW="xdg-open"
261 %configure \
262         --enable-dependency-tracking \
263         --enable-charset \
264         --with%{!?debug:out}-debug \
265         --with%{!?with_ext2undel:out}-ext2undel \
266         --with%{!?with_x:out}-x \
267         --with-vfs \
268         --enable-vfs-mcfs \
269         --enable-mcserver \
270         %{?with_samba:--with-samba} \
271         --with-configdir=/etc/samba \
272         --with-codepagedir=/etc/samba/codepages \
273         --with-gpm-mouse \
274         --with-screen=slang \
275         --with-edit
276
277 %{__make}
278
279 %install
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
284
285 %{__make} install \
286         DESTDIR=$RPM_BUILD_ROOT
287
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}
293
294 for a in es pl ; do
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
299                 done
300         done
301 done
302
303 install contrib/{mc.sh,mc.csh} $RPM_BUILD_ROOT/etc/shrc.d
304
305 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/be-tarask
306
307 %find_lang %{name}
308
309 %clean
310 rm -rf $RPM_BUILD_ROOT
311
312 %post -n mcserv
313 /sbin/chkconfig --add mcserv
314 %service mcserv restart "mcserv daemon"
315
316 %preun -n mcserv
317 if [ "$1" = "0" ]; then
318         %service mcserv stop
319         /sbin/chkconfig --del mcserv
320 fi
321
322 %files -f %{name}.lang
323 %defattr(644,root,root,755)
324 %doc NEWS README
325 %attr(755,root,root) %{_bindir}/mc*
326 %config /etc/shrc.d/*
327 %attr(755,root,root) %{_libdir}/mc/cons.saver
328 %dir %{_libdir}/mc
329 %attr(755,root,root) %{_libdir}/mc/*.sh
330 %attr(755,root,root) %{_libdir}/mc/*.csh
331 %dir %{_datadir}/mc
332
333 %{_datadir}/mc/skins
334 %{_datadir}/mc/syntax
335
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
354
355 %dir %{_libdir}/mc/extfs.d
356 %{_libdir}/mc/extfs.d/README*
357 %if %{with perl_vfs}
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
366 %endif
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
387
388 %{_mandir}/man1/*
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/*
395
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/*.*
399
400 %files -n mcserv
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
This page took 0.060392 seconds and 4 git commands to generate.