]> git.pld-linux.org Git - packages/mc.git/blob - mc.spec
- up to 4.7.5.3
[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.5.3
24 Release:        1
25 Epoch:          1
26 License:        GPL v2+
27 Group:          Applications/Shells
28 Source0:        http://www.midnight-commander.org/downloads/%{name}-%{version}.tar.bz2
29 # Source0-md5:  6a67e139e0032d8a871455a80d490941
30 Source3:        http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
31 # Source3-md5:  17d7b574e1b85ad6f8ddceda9e841f19
32 Source7:        %{name}.desktop
33 Source8:        %{name}.png
34 Patch0:         %{name}-rpmfs.patch
35 Patch1:         slang-8bit_xterm.patch
36 Patch4:         %{name}-home_etc2.patch
37 Patch5:         %{name}-pl.patch
38 Patch6:         %{name}-no-ws-visible.patch
39 Patch11:        %{name}-noperl-vfs.patch
40 # at now syntax highligthing for PLD-update-TODO and CVSROOT/users
41 Patch12:        %{name}-pld-developerfriendly.patch
42 URL:            http://www.midnight-commander.org/
43 BuildRequires:  autoconf
44 BuildRequires:  automake
45 %{?with_ext2undel:BuildRequires:        e2fsprogs-devel}
46 BuildRequires:  gettext-devel
47 BuildRequires:  glib2-devel >= 2.8
48 %ifnarch s390 s390x
49 BuildRequires:  gpm-devel
50 %endif
51 BuildRequires:  libtool
52 BuildRequires:  pam-devel
53 # Needed? %%{?with_perl_vfs:Requires:   perl-base}
54 BuildRequires:  pkgconfig
55 BuildRequires:  rpm-pythonprov
56 BuildRequires:  rpmbuild(macros) >= 1.268
57 BuildRequires:  sed >= 4.0
58 BuildRequires:  slang-devel >= 2.2.1
59 %{?with_x:BuildRequires:        xorg-lib-libX11-devel}
60 Requires:       file
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:       links
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
91 Obsoletes:      mc46serv
92 Obsoletes:      mcserv
93 Obsoletes:      tkmc
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 ビジュアルシェルです。これはテキストモードのアプリケーションですが、 GPM を使っている場合、マウスが使えます。 Midnight
139 Commander には、 FTP に接続できたり、 tar や zip や RPM の中が見えるなど、クールな機能 があります。
140
141 %description -l pl.UTF-8
142 Midnight Commander jest wizualną powłoką podobną do Norton Commandera.
143 Pracuje w trybie tekstowym, ale ma także obsługę myszki. Jest super ;)
144 MC ma wbudowanego klienta FTP, może zaglądać do skompresowanych
145 archiwów tar i zip, a także oglądać pliki w pakietach RPM.
146
147 %description -l pt_BR.UTF-8
148 Midnight Commander é um interpretador de comandos visual que mais
149 parece um gerenciador de arquivos, somente com várias características
150 a mais. Ele é um programa de modo texto, mas inclui suporte para mouse
151 se você estiver rodando GPM ou em uma janela xterm. Sua característica
152 mais legal é a habilidade de bisbilhotar em RPMs procurando arquivos
153 específicos. :-)
154
155 %description -l tr.UTF-8
156 Midnight Commander bir dosya yöneticisine çok benzeyen ancak daha
157 yetenekli bir görsel kabuktur. Metin ekranda çalışır ve GPM
158 çalışıyorsa fare desteği vardır. En hoş özellikleri FTP yapabilmesi,
159 tar, zip ve RPM dosyalarının içeriklerini gösterebilmesidir.
160
161 %prep
162 %setup -q -a3
163 #rpm wrapper rewritten
164 #%patch0 -p1
165 %patch1 -p1
166 # doesn't apply
167 #%patch4 -p1
168 # doesn't apply
169 #%patch5 -p1
170 %patch6 -p1
171 %{!?with_perl_vfs:%patch11 -p1}
172 %patch12 -p1
173
174 %{__rm} po/stamp-po
175
176 sed -i 's:|hxx|:|hh|hpp|hxx|tcc|:' misc/syntax/Syntax
177
178 %build
179 %{__gettextize}
180 %{__libtoolize}
181 %{__aclocal} -I m4
182 %{__autoconf}
183 %{__automake}
184
185 export X11_WWW="xdg-open"
186 %configure \
187         %{?with_ext2undel:--enable-vfs-undelfs} \
188         %{?with_samba:--enable-vfs-smb} \
189         --with-smb-configdir=/etc/samba \
190         --with-smb-codepagedir=/etc/samba/codepages \
191         --with%{!?with_x:out}-x \
192         --with-gpm-mouse \
193         --with-screen=slang
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 # fi_FI is currently (i.e. in 4.7.5.2) more complete
222 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/fi
223 mv -f $RPM_BUILD_ROOT%{_datadir}/locale/{fi_FI,fi}
224
225 %find_lang %{name}
226
227 %clean
228 rm -rf $RPM_BUILD_ROOT
229
230 %files -f %{name}.lang
231 %defattr(644,root,root,755)
232 %doc NEWS README
233 %config /etc/shrc.d/*
234 %attr(755,root,root) %{_bindir}/mc*
235 %dir %{_libdir}/mc
236 %attr(755,root,root) %{_libdir}/mc/cons.saver
237 %attr(755,root,root) %{_libdir}/mc/*.sh
238 %attr(755,root,root) %{_libdir}/mc/*.csh
239 %dir %{_datadir}/mc
240
241 %{_datadir}/mc/mc.*
242 %{_datadir}/mc/skins
243 %{_datadir}/mc/syntax
244
245 %dir %{_datadir}/mc/help
246 %{_datadir}/mc/help/mc.hlp
247 %lang(es) %{_datadir}/mc/help/mc.hlp.es
248 %lang(hu) %{_datadir}/mc/help/mc.hlp.hu
249 %lang(it) %{_datadir}/mc/help/mc.hlp.it
250 %lang(pl) %{_datadir}/mc/help/mc.hlp.pl
251 %lang(ru) %{_datadir}/mc/help/mc.hlp.ru
252 %lang(sr) %{_datadir}/mc/help/mc.hlp.sr
253 %dir %{_datadir}/mc/hints
254 %{_datadir}/mc/hints/mc.hint
255 %lang(cs) %{_datadir}/mc/hints/mc.hint.cs
256 %lang(es) %{_datadir}/mc/hints/mc.hint.es
257 %lang(hu) %{_datadir}/mc/hints/mc.hint.hu
258 %lang(it) %{_datadir}/mc/hints/mc.hint.it
259 %lang(nl) %{_datadir}/mc/hints/mc.hint.nl
260 %lang(pl) %{_datadir}/mc/hints/mc.hint.pl
261 %lang(ru) %{_datadir}/mc/hints/mc.hint.ru
262 %lang(sr) %{_datadir}/mc/hints/mc.hint.sr
263 %lang(uk) %{_datadir}/mc/hints/mc.hint.uk
264 %lang(zh) %{_datadir}/mc/hints/mc.hint.zh
265
266 %dir %{_libdir}/mc/extfs.d
267 %{_libdir}/mc/extfs.d/README*
268 %if %{with perl_vfs}
269 %attr(755,root,root) %{_libdir}/mc/extfs.d/a+
270 %attr(755,root,root) %{_libdir}/mc/extfs.d/apt+
271 %attr(755,root,root) %{_libdir}/mc/extfs.d/deb*
272 %attr(755,root,root) %{_libdir}/mc/extfs.d/dpkg+
273 %attr(755,root,root) %{_libdir}/mc/extfs.d/mailfs
274 %attr(755,root,root) %{_libdir}/mc/extfs.d/patchfs
275 %attr(755,root,root) %{_libdir}/mc/extfs.d/rpms+
276 %attr(755,root,root) %{_libdir}/mc/extfs.d/uzip
277 %endif
278 %attr(755,root,root) %{_libdir}/mc/extfs.d/audio
279 %attr(755,root,root) %{_libdir}/mc/extfs.d/bpp
280 %attr(755,root,root) %{_libdir}/mc/extfs.d/hp48+
281 %attr(755,root,root) %{_libdir}/mc/extfs.d/iso9660
282 %attr(755,root,root) %{_libdir}/mc/extfs.d/lslR
283 %attr(755,root,root) %{_libdir}/mc/extfs.d/rpm
284 %attr(755,root,root) %{_libdir}/mc/extfs.d/s3+
285 %attr(755,root,root) %{_libdir}/mc/extfs.d/trpm
286 %attr(755,root,root) %{_libdir}/mc/extfs.d/u7z
287 %attr(755,root,root) %{_libdir}/mc/extfs.d/uace
288 %attr(755,root,root) %{_libdir}/mc/extfs.d/ualz
289 %attr(755,root,root) %{_libdir}/mc/extfs.d/uar*
290 %attr(755,root,root) %{_libdir}/mc/extfs.d/uc1541
291 %attr(755,root,root) %{_libdir}/mc/extfs.d/ucab
292 %attr(755,root,root) %{_libdir}/mc/extfs.d/uha
293 %attr(755,root,root) %{_libdir}/mc/extfs.d/ulha
294 %attr(755,root,root) %{_libdir}/mc/extfs.d/urar
295 %attr(755,root,root) %{_libdir}/mc/extfs.d/uzoo
296 %dir %{_libdir}/mc/fish
297 %{_libdir}/mc/fish/README.fish
298 %attr(755,root,root) %{_libdir}/mc/fish/[a-z]*
299 %{_desktopdir}/mc.desktop
300 %{_pixmapsdir}/mc.png
301
302 %{_mandir}/man1/*
303 %lang(es) %{_mandir}/es/man1/*
304 %lang(hu) %{_mandir}/hu/man1/*
305 %lang(it) %{_mandir}/it/man1/*
306 %lang(pl) %{_mandir}/pl/man1/*
307 %lang(ru) %{_mandir}/ru/man1/*
308 %lang(sr) %{_mandir}/sr/man1/*
309
310 %dir %{_sysconfdir}/mc
311 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mc/*.*
This page took 0.055654 seconds and 4 git commands to generate.