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