]> TLD Linux GIT Repositories - packages/mc.git/blob - mc.spec
- updated to 4.8.13
[packages/mc.git] / mc.spec
1 #
2 # Conditional build:
3 %bcond_with     ext2undel       # with ext2 undelete fs
4 %bcond_without  perl_vfs        # without perl depending vfs'es -- to avoid perl autoreq
5 %bcond_with     samba           # with SAMBA vfs support
6 %bcond_without  x               # without text edit in X support
7 #
8 Summary:        A user-friendly file manager and visual shell
9 Summary(de.UTF-8):      Visuelle Shell Midnight Commander
10 Summary(es.UTF-8):      Interpretador de comandos visual Midnight Commander
11 Summary(fr.UTF-8):      Un gestionnaire de fichiers puissant et agréable en mode console
12 Summary(hu.UTF-8):      Egy felhasználóbarát fájlkezelő és vizuális shell
13 Summary(ja.UTF-8):      使いやすいファイルマネージャとビジュアルシェル
14 Summary(pl.UTF-8):      Midnight Commander - powłoka wizualna
15 Summary(pt_BR.UTF-8):   Interpretador de comandos visual Midnight Commander
16 Summary(ru.UTF-8):      Диспетчер файлов Midnight Commander
17 Summary(tr.UTF-8):      Midnight Commander görsel kabuğu
18 Summary(uk.UTF-8):      Диспетчер файлів Midnight Commander
19 Summary(zh_CN.UTF-8):   一个方便实用的文件管理器和虚拟Shell
20 Name:           mc
21 Version:        4.8.13
22 Release:        1
23 Epoch:          1
24 License:        GPL v3+
25 Group:          Applications/Shells
26 Source0:        http://ftp.midnight-commander.org/%{name}-%{version}.tar.xz
27 # Source0-md5:  d967caa12765eb86e52a6a63ca202500
28 Source3:        http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
29 # Source3-md5:  17d7b574e1b85ad6f8ddceda9e841f19
30 Source7:        %{name}.desktop
31 Source8:        %{name}.png
32 Patch1:         %{name}-no-ws-visible.patch
33 Patch2:         %{name}-no-compute-totals.patch
34 Patch3:         %{name}-file-find-case-insensitive.patch
35 Patch4:         %{name}-confirm-exit.patch
36 Patch5:         %{name}-noperl-vfs.patch
37 # at now syntax highligthing for PLD-update-TODO and CVSROOT/users
38 Patch6:         %{name}-pld-developerfriendly.patch
39 URL:            http://www.midnight-commander.org/
40 BuildRequires:  autoconf >= 2.60
41 BuildRequires:  automake >= 1.5
42 %{?with_ext2undel:BuildRequires:        e2fsprogs-devel}
43 BuildRequires:  gettext-devel >= 0.14.3
44 BuildRequires:  glib2-devel >= 2.8
45 %ifnarch s390 s390x
46 BuildRequires:  gpm-devel
47 %endif
48 BuildRequires:  libtool
49 BuildRequires:  pam-devel
50 BuildRequires:  pcre-devel
51 BuildRequires:  pkgconfig
52 BuildRequires:  rpm-pythonprov
53 BuildRequires:  rpmbuild(macros) >= 1.268
54 BuildRequires:  sed >= 4.0
55 BuildRequires:  slang-devel >= 2.2.1
56 %{?with_x:BuildRequires:        xorg-lib-libX11-devel}
57 Requires:       file
58 Requires:       pam >= 0.77.3
59 Requires:       sed
60 Requires:       setup >= 2.4.6-2
61 Suggests:       bzip2
62 Suggests:       cabextract
63 Suggests:       cdrtools-utils
64 Suggests:       cpio
65 Suggests:       dvi2tty
66 Suggests:       enca
67 Suggests:       file
68 Suggests:       ghostscript
69 Suggests:       groff
70 Suggests:       gzip
71 Suggests:       lha
72 Suggests:       links
73 Suggests:       lynx
74 Suggests:       lzma
75 Suggests:       odt2txt
76 Suggests:       p7zip-standalone
77 Suggests:       perl-tools-pod
78 Suggests:       rar
79 Suggests:       rpm-utils
80 Suggests:       tar
81 Suggests:       unarj
82 Suggests:       unzip
83 Suggests:       xdg-utils
84 Suggests:       xpdf-tools
85 Suggests:       xz
86 Suggests:       zoo
87 Obsoletes:      mc46
88 Obsoletes:      mc46serv
89 Obsoletes:      mcserv
90 Obsoletes:      tkmc
91 Conflicts:      bash < 2.05b
92 Conflicts:      rpm < 4.0
93 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
94
95 %define         specflags_ia32  -fomit-frame-pointer
96
97 %description
98 Midnight Commander is a visual shell much like a file manager, only
99 with way more features. It is text mode, but also includes mouse
100 support if you are running GPM. Its coolest feature is the ability to
101 FTP, view tar, zip files, and poke into RPMs for specific files. :-)
102
103 %description -l de.UTF-8
104 Midnight Commander ist ein Visual-Shell, ähnlich einem Dateimanager,
105 aber mit zusätzlichen Funktionen. Es läuft im Textmodus, kann jedoch
106 eine Maus unterstützen, wenn GPM betrieben wird. Seine coolsten
107 Fähigkeiten sind die FTP-Option, das Einsehen von tar- und zip-Dateien
108 und das Herausfischen von spezifischen Dateien aus RPMs.
109
110 %description -l es.UTF-8
111 Midnight Commander es un interpretador de comandos visual que más
112 parece un administrador de archivos, solamente con varias
113 características a más. Es un programa en modo texto, pero incluye
114 soporte para ratón, si estuviera ejecutando GPM o en una ventana
115 xterm. Su característica más genial es la habilidad de cotillear en
116 RPMs buscando archivos específicos. :-)
117
118 %description -l fr.UTF-8
119 Midnight Commander est une interface pour la ligne de commande qui
120 tient beaucoup du gestionnaire de fichiers, mais est bien plus
121 puissant. Il fonctionne en mode console (texte), mais peut être
122 contrôlé à la souris si GPM est présent. Ses caractéristiques les plus
123 remarquables sont la possibilité de se connecter à un serveur FTP, de
124 visualiser des archives tar, de compresser des fichiers avec zip, de
125 récupérer des fichiers dans les packages RPM, et tout ceci simplement.
126
127 %description -l hu.UTF-8
128 Midnight Commander egy vizuális shell, lényegében egy fájlkezelő
129 sok-sok lehetőséggel. Szöveges módú, de az egeret is támogatja, ha fut
130 a GPM. A legjobb lehetőség az FTP elérése, tar, zip és RPM fájlok
131 kezelése.
132
133 %description -l ja.UTF-8
134 Midnight Commander はいろいろな機能を持ったファイルマネージャ兼
135 ビジュアルシェルです。これはテキストモードのアプリケーションですが、
136 GPM を使っている場合、マウスが使えます。 Midnight Commander には、 FTP
137 に接続できたり、 tar や zip や RPM の中が見えるなど、クールな機能
138 があります。
139
140 %description -l pl.UTF-8
141 Midnight Commander jest wizualną powłoką podobną do Norton Commandera.
142 Pracuje w trybie tekstowym, ale ma także obsługę myszki. Jest super ;)
143 MC ma wbudowanego klienta FTP, może zaglądać do skompresowanych
144 archiwów tar i zip, a także oglądać pliki w pakietach RPM.
145
146 %description -l pt_BR.UTF-8
147 Midnight Commander é um interpretador de comandos visual que mais
148 parece um gerenciador de arquivos, somente com várias características
149 a mais. Ele é um programa de modo texto, mas inclui suporte para mouse
150 se você estiver rodando GPM ou em uma janela xterm. Sua característica
151 mais legal é a habilidade de bisbilhotar em RPMs procurando arquivos
152 específicos. :-)
153
154 %description -l tr.UTF-8
155 Midnight Commander bir dosya yöneticisine çok benzeyen ancak daha
156 yetenekli bir görsel kabuktur. Metin ekranda çalışır ve GPM
157 çalışıyorsa fare desteği vardır. En hoş özellikleri FTP yapabilmesi,
158 tar, zip ve RPM dosyalarının içeriklerini gösterebilmesidir.
159
160 %prep
161 %setup -q -a3
162 %patch1 -p1
163 %patch2 -p1
164 %patch3 -p1
165 %patch4 -p1
166 %{!?with_perl_vfs:%patch5 -p1}
167 %patch6 -p1
168
169 %{__rm} po/stamp-po
170
171 %{__sed} -i 's:|hxx|:|hh|hpp|hxx|tcc|:' misc/syntax/Syntax.in
172
173 %build
174 %{__gettextize}
175 %{__libtoolize}
176 %{__aclocal} -I m4
177 %{__autoconf}
178 %{__automake}
179
180 export X11_WWW="xdg-open"
181 %configure \
182         %{?with_ext2undel:--enable-vfs-undelfs} \
183         %{?with_samba:--enable-vfs-smb} \
184         --with-smb-configdir=/etc/samba \
185         --with-smb-codepagedir=/etc/samba/codepages \
186         --with%{!?with_x:out}-x \
187         --with-gpm-mouse \
188         --with-pcre \
189         --with-screen=slang \
190         --disable-silent-rules
191
192 %{__make}
193
194 %install
195 rm -rf $RPM_BUILD_ROOT
196 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_pixmapsdir},%{_desktopdir}} \
197         $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,shrc.d,sysconfig} \
198         $RPM_BUILD_ROOT%{_mandir}/man8
199
200 %{__make} install \
201         DESTDIR=$RPM_BUILD_ROOT
202
203 install %{SOURCE7} $RPM_BUILD_ROOT%{_desktopdir}
204 install %{SOURCE8} $RPM_BUILD_ROOT%{_pixmapsdir}
205
206 for a in es pl ; do
207         for b in man1 man8 ; do
208                 install -d $RPM_BUILD_ROOT%{_mandir}/{$a,$a/$b}
209                 for c in man/$a/$b/* ; do
210                         install $c $RPM_BUILD_ROOT%{_mandir}/$a/$b
211                 done
212         done
213 done
214
215 install contrib/{mc.sh,mc.csh} $RPM_BUILD_ROOT/etc/shrc.d
216
217 %{__rm} $RPM_BUILD_ROOT%{_mandir}/*/man8/mcserv.8
218
219 # just a copy of sv
220 %{__rm} $RPM_BUILD_ROOT%{_datadir}/mc/hints/mc.hint.sv_SE
221 # another variant of it
222 %{__rm} $RPM_BUILD_ROOT%{_datadir}/mc/hints/mc.hint.it_IT
223 # enhanced version
224 %{__mv} $RPM_BUILD_ROOT%{_datadir}/mc/hints/mc.hint.{zh,zh_CN}
225
226 # outdated version of fi
227 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/fi_FI
228 # empty version of sv
229 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/sv_SE
230
231 %find_lang %{name}
232
233 %clean
234 rm -rf $RPM_BUILD_ROOT
235
236 %files -f %{name}.lang
237 %defattr(644,root,root,755)
238 %doc NEWS README doc/keybind-migration.txt
239 %config /etc/shrc.d/*
240 %attr(755,root,root) %{_bindir}/mc*
241 %dir %{_libdir}/mc
242 %attr(755,root,root) %{_libdir}/mc/cons.saver
243 %attr(755,root,root) %{_libdir}/mc/*.sh
244 %attr(755,root,root) %{_libdir}/mc/*.csh
245 %dir %{_datadir}/mc
246
247 %{_datadir}/mc/mc.*
248 %{_datadir}/mc/skins
249 %{_datadir}/mc/syntax
250
251 %dir %{_datadir}/mc/help
252 %{_datadir}/mc/help/mc.hlp
253 %lang(es) %{_datadir}/mc/help/mc.hlp.es
254 %lang(hu) %{_datadir}/mc/help/mc.hlp.hu
255 %lang(it) %{_datadir}/mc/help/mc.hlp.it
256 %lang(pl) %{_datadir}/mc/help/mc.hlp.pl
257 %lang(ru) %{_datadir}/mc/help/mc.hlp.ru
258 %lang(sr) %{_datadir}/mc/help/mc.hlp.sr
259 %dir %{_datadir}/mc/hints
260 %{_datadir}/mc/hints/mc.hint
261 # only English messages inside (as for 4.8.12)
262 #%lang(az) %{_datadir}/mc/hints/mc.hint.az
263 %lang(be) %{_datadir}/mc/hints/mc.hint.be
264 # only English messages inside (as for 4.8.12)
265 #%lang(bg) %{_datadir}/mc/hints/mc.hint.bg
266 #%lang(ca) %{_datadir}/mc/hints/mc.hint.ca
267 %lang(cs) %{_datadir}/mc/hints/mc.hint.cs
268 # only English messages inside (as for 4.8.12)
269 #%lang(da) %{_datadir}/mc/hints/mc.hint.da
270 #%lang(de) %{_datadir}/mc/hints/mc.hint.de
271 #%lang(de_CH) %{_datadir}/mc/hints/mc.hint.de_CH
272 %lang(el) %{_datadir}/mc/hints/mc.hint.el
273 %lang(en_GB) %{_datadir}/mc/hints/mc.hint.en_GB
274 %lang(eo) %{_datadir}/mc/hints/mc.hint.eo
275 %lang(es) %{_datadir}/mc/hints/mc.hint.es
276 %lang(et) %{_datadir}/mc/hints/mc.hint.et
277 %lang(eu) %{_datadir}/mc/hints/mc.hint.eu
278 %lang(fa) %{_datadir}/mc/hints/mc.hint.fa
279 # only English messages inside (as for 4.8.12)
280 #%lang(fi) %{_datadir}/mc/hints/mc.hint.fi
281 %lang(fr) %{_datadir}/mc/hints/mc.hint.fr
282 %lang(gl) %{_datadir}/mc/hints/mc.hint.gl
283 # only English messages inside (as for 4.8.12)
284 #%lang(hr) %{_datadir}/mc/hints/mc.hint.hr
285 %lang(hu) %{_datadir}/mc/hints/mc.hint.hu
286 # only English messages inside (as for 4.8.12)
287 #%lang(ia) %{_datadir}/mc/hints/mc.hint.ia
288 %lang(id) %{_datadir}/mc/hints/mc.hint.id
289 %lang(it) %{_datadir}/mc/hints/mc.hint.it
290 # only English messages inside (as for 4.8.12)
291 #%lang(ja) %{_datadir}/mc/hints/mc.hint.ja
292 #%lang(ka) %{_datadir}/mc/hints/mc.hint.ka
293 #%lang(kk) %{_datadir}/mc/hints/mc.hint.kk
294 #%lang(ko) %{_datadir}/mc/hints/mc.hint.ko
295 #%lang(lt) %{_datadir}/mc/hints/mc.hint.lt
296 %lang(nl) %{_datadir}/mc/hints/mc.hint.nl
297 %lang(pl) %{_datadir}/mc/hints/mc.hint.pl
298 %lang(pt) %{_datadir}/mc/hints/mc.hint.pt
299 %lang(pt_BR) %{_datadir}/mc/hints/mc.hint.pt_BR
300 %lang(ro) %{_datadir}/mc/hints/mc.hint.ro
301 %lang(ru) %{_datadir}/mc/hints/mc.hint.ru
302 # only English messages inside (as for 4.8.12)
303 #%lang(sk) %{_datadir}/mc/hints/mc.hint.sk
304 #%lang(sl) %{_datadir}/mc/hints/mc.hint.sl
305 #%lang(sr) %{_datadir}/mc/hints/mc.hint.sr
306 #%lang(sv) %{_datadir}/mc/hints/mc.hint.sv
307 #%lang(szl) %{_datadir}/mc/hints/mc.hint.szl
308 #%lang(tr) %{_datadir}/mc/hints/mc.hint.tr
309 %lang(uk) %{_datadir}/mc/hints/mc.hint.uk
310 %lang(zh_CN) %{_datadir}/mc/hints/mc.hint.zh_CN
311
312 %dir %{_libdir}/mc/ext.d
313 %attr(755,root,root) %{_libdir}/mc/ext.d/archive.sh
314 %attr(755,root,root) %{_libdir}/mc/ext.d/doc.sh
315 %attr(755,root,root) %{_libdir}/mc/ext.d/image.sh
316 %attr(755,root,root) %{_libdir}/mc/ext.d/misc.sh
317 %attr(755,root,root) %{_libdir}/mc/ext.d/package.sh
318 %attr(755,root,root) %{_libdir}/mc/ext.d/sound.sh
319 %attr(755,root,root) %{_libdir}/mc/ext.d/text.sh
320 %attr(755,root,root) %{_libdir}/mc/ext.d/video.sh
321 %attr(755,root,root) %{_libdir}/mc/ext.d/web.sh
322
323 %dir %{_libdir}/mc/extfs.d
324 %{_libdir}/mc/extfs.d/README*
325 %if %{with perl_vfs}
326 %attr(755,root,root) %{_libdir}/mc/extfs.d/a+
327 %attr(755,root,root) %{_libdir}/mc/extfs.d/apt+
328 %attr(755,root,root) %{_libdir}/mc/extfs.d/deb*
329 %attr(755,root,root) %{_libdir}/mc/extfs.d/dpkg+
330 %attr(755,root,root) %{_libdir}/mc/extfs.d/mailfs
331 %attr(755,root,root) %{_libdir}/mc/extfs.d/patchfs
332 %attr(755,root,root) %{_libdir}/mc/extfs.d/rpms+
333 %attr(755,root,root) %{_libdir}/mc/extfs.d/ulib
334 %attr(755,root,root) %{_libdir}/mc/extfs.d/uzip
335 %endif
336 %attr(755,root,root) %{_libdir}/mc/extfs.d/audio
337 %attr(755,root,root) %{_libdir}/mc/extfs.d/bpp
338 %attr(755,root,root) %{_libdir}/mc/extfs.d/changesetfs
339 %attr(755,root,root) %{_libdir}/mc/extfs.d/gitfs+
340 %attr(755,root,root) %{_libdir}/mc/extfs.d/hp48+
341 %attr(755,root,root) %{_libdir}/mc/extfs.d/iso9660
342 %attr(755,root,root) %{_libdir}/mc/extfs.d/lslR
343 %attr(755,root,root) %{_libdir}/mc/extfs.d/patchsetfs
344 %attr(755,root,root) %{_libdir}/mc/extfs.d/rpm
345 %attr(755,root,root) %{_libdir}/mc/extfs.d/s3+
346 %attr(755,root,root) %{_libdir}/mc/extfs.d/trpm
347 %attr(755,root,root) %{_libdir}/mc/extfs.d/u7z
348 %attr(755,root,root) %{_libdir}/mc/extfs.d/uace
349 %attr(755,root,root) %{_libdir}/mc/extfs.d/ualz
350 %attr(755,root,root) %{_libdir}/mc/extfs.d/uar*
351 %attr(755,root,root) %{_libdir}/mc/extfs.d/uc1541
352 %attr(755,root,root) %{_libdir}/mc/extfs.d/ucab
353 %attr(755,root,root) %{_libdir}/mc/extfs.d/uha
354 %attr(755,root,root) %{_libdir}/mc/extfs.d/ulha
355 %attr(755,root,root) %{_libdir}/mc/extfs.d/urar
356 %attr(755,root,root) %{_libdir}/mc/extfs.d/uzoo
357 %dir %{_libdir}/mc/fish
358 %{_libdir}/mc/fish/README.fish
359 %attr(755,root,root) %{_libdir}/mc/fish/[a-z]*
360 %{_desktopdir}/mc.desktop
361 %{_pixmapsdir}/mc.png
362
363 %{_mandir}/man1/mc.1*
364 %{_mandir}/man1/mcedit.1*
365 %{_mandir}/man1/mcview.1*
366 %lang(es) %{_mandir}/es/man1/*
367 %lang(hu) %{_mandir}/hu/man1/*
368 %lang(it) %{_mandir}/it/man1/*
369 %lang(pl) %{_mandir}/pl/man1/*
370 %lang(ru) %{_mandir}/ru/man1/*
371 %lang(sr) %{_mandir}/sr/man1/*
372
373 %dir %{_sysconfdir}/mc
374 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mc/*.*