]> git.pld-linux.org Git - packages/mc.git/blob - mc.spec
- upgraded to 4.7.5
[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
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:  4eb2438b168fb0f93b748889a9294f54
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 Patch24:        %{name}-find_options.patch
43 URL:            http://www.midnight-commander.org/
44 BuildRequires:  autoconf
45 BuildRequires:  automake
46 %{?with_ext2undel:BuildRequires:        e2fsprogs-devel}
47 BuildRequires:  gettext-devel
48 BuildRequires:  glib2-devel >= 2.8
49 %ifnarch s390 s390x
50 BuildRequires:  gpm-devel
51 %endif
52 BuildRequires:  libtool
53 BuildRequires:  pam-devel
54 # Needed? %%{?with_perl_vfs:Requires:   perl-base}
55 BuildRequires:  pkgconfig
56 BuildRequires:  rpm-pythonprov
57 BuildRequires:  rpmbuild(macros) >= 1.268
58 BuildRequires:  sed >= 4.0
59 BuildRequires:  slang-devel >= 2.2.1
60 %{?with_x:BuildRequires:        xorg-lib-libX11-devel}
61 Requires:       file
62 Requires:       pam >= 0.77.3
63 Requires:       sed
64 Requires:       setup >= 2.4.6-2
65 Suggests:       bzip2
66 Suggests:       cabextract
67 Suggests:       cdrtools-utils
68 Suggests:       cpio
69 Suggests:       dvi2tty
70 Suggests:       enca
71 Suggests:       file
72 Suggests:       ghostscript
73 Suggests:       groff
74 Suggests:       gzip
75 Suggests:       lha
76 Suggests:       links
77 Suggests:       lynx
78 Suggests:       lzma
79 Suggests:       odt2txt
80 Suggests:       p7zip-standalone
81 Suggests:       perl-tools-pod
82 Suggests:       rar
83 Suggests:       rpm-utils
84 Suggests:       tar
85 Suggests:       unarj
86 Suggests:       unzip
87 Suggests:       xdg-utils
88 Suggests:       xpdf-tools
89 Suggests:       xz
90 Suggests:       zoo
91 Obsoletes:      mc46
92 Obsoletes:      mc46serv
93 Obsoletes:      mcserv
94 Obsoletes:      tkmc
95 Conflicts:      bash < 2.05b
96 Conflicts:      rpm < 4.0
97 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
98
99 %define         specflags_ia32  -fomit-frame-pointer
100
101 %description
102 Midnight Commander is a visual shell much like a file manager, only
103 with way more features. It is text mode, but also includes mouse
104 support if you are running GPM. Its coolest feature is the ability to
105 FTP, view tar, zip files, and poke into RPMs for specific files. :-)
106
107 %description -l de.UTF-8
108 Midnight Commander ist ein Visual-Shell, ähnlich einem Dateimanager,
109 aber mit zusätzlichen Funktionen. Es läuft im Textmodus, kann jedoch
110 eine Maus unterstützen, wenn GPM betrieben wird. Seine coolsten
111 Fähigkeiten sind die FTP-Option, das Einsehen von tar- und zip-Dateien
112 und das Herausfischen von spezifischen Dateien aus RPMs.
113
114 %description -l es.UTF-8
115 Midnight Commander es un interpretador de comandos visual que más
116 parece un administrador de archivos, solamente con varias
117 características a más. Es un programa en modo texto, pero incluye
118 soporte para ratón, si estuviera ejecutando GPM o en una ventana
119 xterm. Su característica más genial es la habilidad de cotillear en
120 RPMs buscando archivos específicos. :-)
121
122 %description -l fr.UTF-8
123 Midnight Commander est une interface pour la ligne de commande qui
124 tient beaucoup du gestionnaire de fichiers, mais est bien plus
125 puissant. Il fonctionne en mode console (texte), mais peut être
126 contrôlé à la souris si GPM est présent. Ses caractéristiques les plus
127 remarquables sont la possibilité de se connecter à un serveur FTP, de
128 visualiser des archives tar, de compresser des fichiers avec zip, de
129 récupérer des fichiers dans les packages RPM, et tout ceci simplement.
130
131 %description -l hu.UTF-8
132 Midnight Commander egy vizuális shell, lényegében egy fájlkezelő
133 sok-sok lehetőséggel. Szöveges módú, de az egeret is támogatja, ha fut
134 a GPM. A legjobb lehetőség az FTP elérése, tar, zip és RPM fájlok
135 kezelése.
136
137 %description -l ja.UTF-8
138 Midnight Commander はいろいろな機能を持ったファイルマネージャ兼
139 ビジュアルシェルです。これはテキストモードのアプリケーションですが、 GPM を使っている場合、マウスが使えます。 Midnight
140 Commander には、 FTP に接続できたり、 tar や zip や RPM の中が見えるなど、クールな機能 があります。
141
142 %description -l pl.UTF-8
143 Midnight Commander jest wizualną powłoką podobną do Norton Commandera.
144 Pracuje w trybie tekstowym, ale ma także obsługę myszki. Jest super ;)
145 MC ma wbudowanego klienta FTP, może zaglądać do skompresowanych
146 archiwów tar i zip, a także oglądać pliki w pakietach RPM.
147
148 %description -l pt_BR.UTF-8
149 Midnight Commander é um interpretador de comandos visual que mais
150 parece um gerenciador de arquivos, somente com várias características
151 a mais. Ele é um programa de modo texto, mas inclui suporte para mouse
152 se você estiver rodando GPM ou em uma janela xterm. Sua característica
153 mais legal é a habilidade de bisbilhotar em RPMs procurando arquivos
154 específicos. :-)
155
156 %description -l tr.UTF-8
157 Midnight Commander bir dosya yöneticisine çok benzeyen ancak daha
158 yetenekli bir görsel kabuktur. Metin ekranda çalışır ve GPM
159 çalışıyorsa fare desteği vardır. En hoş özellikleri FTP yapabilmesi,
160 tar, zip ve RPM dosyalarının içeriklerini gösterebilmesidir.
161
162 %prep
163 %setup -q -a3
164 #rpm wrapper rewritten
165 #%patch0 -p1
166 %patch1 -p1
167 # doesn't apply
168 #%patch4 -p1
169 # doesn't apply
170 #%patch5 -p1
171 %patch6 -p1
172 %{!?with_perl_vfs:%patch11 -p1}
173 %patch12 -p1
174 %if "%{pld_release}" == "ti"
175 %patch24 -p1
176 %endif
177
178 rm -f po/stamp-po
179
180 sed -i 's:|hxx|:|hh|hpp|hxx|tcc|:' misc/syntax/Syntax
181
182 %build
183 %{__gettextize}
184 %{__libtoolize}
185 %{__aclocal} -I m4
186 %{__autoconf}
187 %{__automake}
188
189 export X11_WWW="xdg-open"
190 %configure \
191         %{?with_ext2undel:--enable-vfs-undelfs} \
192         %{?with_samba:--enable-vfs-smb} \
193         --with-smb-configdir=/etc/samba \
194         --with-smb-codepagedir=/etc/samba/codepages \
195         --with%{!?with_x:out}-x \
196         --with-gpm-mouse \
197         --with-screen=slang
198
199 %{__make}
200
201 %install
202 rm -rf $RPM_BUILD_ROOT
203 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_pixmapsdir},%{_desktopdir}} \
204         $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,shrc.d,sysconfig} \
205         $RPM_BUILD_ROOT%{_mandir}/man8
206
207 %{__make} install \
208         DESTDIR=$RPM_BUILD_ROOT
209
210 install %{SOURCE7} $RPM_BUILD_ROOT%{_desktopdir}
211 install %{SOURCE8} $RPM_BUILD_ROOT%{_pixmapsdir}
212
213 for a in es pl ; do
214         for b in man1 man8 ; do
215                 install -d $RPM_BUILD_ROOT%{_mandir}/{$a,$a/$b}
216                 for c in man/$a/$b/* ; do
217                         install $c $RPM_BUILD_ROOT%{_mandir}/$a/$b
218                 done
219         done
220 done
221
222 install contrib/{mc.sh,mc.csh} $RPM_BUILD_ROOT/etc/shrc.d
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/*
233 %attr(755,root,root) %{_bindir}/mc*
234 %dir %{_libdir}/mc
235 %attr(755,root,root) %{_libdir}/mc/cons.saver
236 %attr(755,root,root) %{_libdir}/mc/*.sh
237 %attr(755,root,root) %{_libdir}/mc/*.csh
238 %dir %{_datadir}/mc
239
240 %{_datadir}/mc/mc.*
241 %{_datadir}/mc/skins
242 %{_datadir}/mc/syntax
243
244 %dir %{_datadir}/mc/help
245 %{_datadir}/mc/help/mc.hlp
246 %lang(es) %{_datadir}/mc/help/mc.hlp.es
247 %lang(hu) %{_datadir}/mc/help/mc.hlp.hu
248 %lang(it) %{_datadir}/mc/help/mc.hlp.it
249 %lang(pl) %{_datadir}/mc/help/mc.hlp.pl
250 %lang(ru) %{_datadir}/mc/help/mc.hlp.ru
251 %lang(sr) %{_datadir}/mc/help/mc.hlp.sr
252 %dir %{_datadir}/mc/hints
253 %{_datadir}/mc/hints/mc.hint
254 %lang(cs) %{_datadir}/mc/hints/mc.hint.cs
255 %lang(es) %{_datadir}/mc/hints/mc.hint.es
256 %lang(hu) %{_datadir}/mc/hints/mc.hint.hu
257 %lang(it) %{_datadir}/mc/hints/mc.hint.it
258 %lang(nl) %{_datadir}/mc/hints/mc.hint.nl
259 %lang(pl) %{_datadir}/mc/hints/mc.hint.pl
260 %lang(ru) %{_datadir}/mc/hints/mc.hint.ru
261 %lang(sr) %{_datadir}/mc/hints/mc.hint.sr
262 %lang(uk) %{_datadir}/mc/hints/mc.hint.uk
263 %lang(zh) %{_datadir}/mc/hints/mc.hint.zh
264
265 %dir %{_libdir}/mc/extfs.d
266 %{_libdir}/mc/extfs.d/README*
267 %if %{with perl_vfs}
268 %attr(755,root,root) %{_libdir}/mc/extfs.d/a+
269 %attr(755,root,root) %{_libdir}/mc/extfs.d/apt+
270 %attr(755,root,root) %{_libdir}/mc/extfs.d/deb*
271 %attr(755,root,root) %{_libdir}/mc/extfs.d/dpkg+
272 %attr(755,root,root) %{_libdir}/mc/extfs.d/mailfs
273 %attr(755,root,root) %{_libdir}/mc/extfs.d/patchfs
274 %attr(755,root,root) %{_libdir}/mc/extfs.d/rpms+
275 %attr(755,root,root) %{_libdir}/mc/extfs.d/uzip
276 %endif
277 %attr(755,root,root) %{_libdir}/mc/extfs.d/audio
278 %attr(755,root,root) %{_libdir}/mc/extfs.d/bpp
279 %attr(755,root,root) %{_libdir}/mc/extfs.d/hp48+
280 %attr(755,root,root) %{_libdir}/mc/extfs.d/iso9660
281 %attr(755,root,root) %{_libdir}/mc/extfs.d/lslR
282 %attr(755,root,root) %{_libdir}/mc/extfs.d/rpm
283 %attr(755,root,root) %{_libdir}/mc/extfs.d/s3+
284 %attr(755,root,root) %{_libdir}/mc/extfs.d/trpm
285 %attr(755,root,root) %{_libdir}/mc/extfs.d/u7z
286 %attr(755,root,root) %{_libdir}/mc/extfs.d/uace
287 %attr(755,root,root) %{_libdir}/mc/extfs.d/ualz
288 %attr(755,root,root) %{_libdir}/mc/extfs.d/uar*
289 %attr(755,root,root) %{_libdir}/mc/extfs.d/uc1541
290 %attr(755,root,root) %{_libdir}/mc/extfs.d/ucab
291 %attr(755,root,root) %{_libdir}/mc/extfs.d/uha
292 %attr(755,root,root) %{_libdir}/mc/extfs.d/ulha
293 %attr(755,root,root) %{_libdir}/mc/extfs.d/urar
294 %attr(755,root,root) %{_libdir}/mc/extfs.d/uzoo
295 %dir %{_libdir}/mc/fish
296 %{_libdir}/mc/fish/README.fish
297 %attr(755,root,root) %{_libdir}/mc/fish/[a-z]*
298 %{_desktopdir}/mc.desktop
299 %{_pixmapsdir}/mc.png
300
301 %{_mandir}/man1/*
302 %lang(es) %{_mandir}/es/man1/*
303 %lang(hu) %{_mandir}/hu/man1/*
304 %lang(it) %{_mandir}/it/man1/*
305 %lang(pl) %{_mandir}/pl/man1/*
306 %lang(ru) %{_mandir}/ru/man1/*
307 %lang(sr) %{_mandir}/sr/man1/*
308
309 %dir %{_sysconfdir}/mc
310 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mc/*.*
This page took 0.084396 seconds and 4 git commands to generate.