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