]>
Commit | Line | Data |
---|---|---|
d78cba00 | 1 | # TODO: |
d78cba00 | 2 | # - check spec-syntax,mo patches |
5a0ca66d | 3 | # - update ancient X11_WWW (or drop if it's no longer used) |
afbb79ff JB |
4 | # |
5 | # Conditional build: | |
69d23796 | 6 | %bcond_with ext2undel # with ext2 undelete fs |
26aa770b | 7 | %bcond_without perl_vfs # without perl depending vfs'es -- to avoid perl autoreq |
69d23796 | 8 | %bcond_with samba # with SAMBA vfs support |
4341efe2 | 9 | %bcond_without x # without text edit in X support |
703b7291 | 10 | %bcond_without utf8 # utf8 |
afbb79ff | 11 | # |
a7fa1966 | 12 | %define snap pre1 |
9ef7c013 | 13 | Summary: A user-friendly file manager and visual shell |
7defc305 ER |
14 | Summary(de.UTF-8): Visuelle Shell Midnight Commander |
15 | Summary(es.UTF-8): Interpretador de comandos visual Midnight Commander | |
16 | Summary(fr.UTF-8): Un gestionnaire de fichiers puissant et agréable en mode console | |
17 | Summary(ja.UTF-8): 使いやすいファイルマネージャとビジュアルシェル | |
18 | Summary(pl.UTF-8): Midnight Commander - powłoka wizualna | |
19 | Summary(pt_BR.UTF-8): Interpretador de comandos visual Midnight Commander | |
20 | Summary(ru.UTF-8): Диспетчер файлов Midnight Commander | |
21 | Summary(tr.UTF-8): Midnight Commander görsel kabuğu | |
22 | Summary(uk.UTF-8): Диспетчер файлів Midnight Commander | |
23 | Summary(zh_CN.UTF-8): 一个方便实用的文件管理器和虚拟Shell | |
06df6411 | 24 | Name: mc |
e18d3c74 | 25 | Version: 4.6.2 |
82a31d0b | 26 | Release: 0.%{snap}.2 |
5a0ca66d | 27 | License: GPL v2+ |
51719b27 | 28 | Group: Applications/Shells |
a7fa1966 AM |
29 | Source0: ftp://ftp.gnu.org/gnu/mc/%{name}-%{version}-%{snap}.tar.gz |
30 | # Source0-md5: 7626c446f016b09fd1210f00b9d0c292 | |
51719b27 | 31 | Source1: %{name}serv.pamd |
32 | Source2: %{name}serv.init | |
f187cfbf | 33 | Source3: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2 |
4f279a49 | 34 | # Source3-md5: 17d7b574e1b85ad6f8ddceda9e841f19 |
a825a165 | 35 | Source6: %{name}serv.sysconfig |
0f5143bd | 36 | Source7: %{name}.desktop |
37 | Source8: %{name}.png | |
6dabce9f | 38 | Patch0: %{name}-rpmfs.patch |
81132514 JB |
39 | Patch1: %{name}-spec-syntax.patch |
40 | Patch2: %{name}-urar.patch | |
41 | Patch3: %{name}-srpm.patch | |
42 | Patch4: %{name}-home_etc2.patch | |
43 | Patch5: %{name}-pl.patch | |
82a31d0b | 44 | Patch6: %{name}-no-ws-visible.patch |
9db727dc | 45 | Patch8: %{name}-mc.ext.patch |
60ec3264 PG |
46 | Patch10: %{name}-localenames.patch |
47 | Patch11: %{name}-noperl-vfs.patch | |
317fa76e | 48 | # at now syntax highligthing for PLD-update-TODO and CVSROOT/users |
60ec3264 | 49 | Patch12: %{name}-pld-developerfriendly.patch |
4341efe2 | 50 | # http://www.suse.de/~nadvornik/mc.html |
fad26c1d | 51 | Patch13: %{name}-utf8.patch |
445b50c1 | 52 | Patch14: %{name}-vhdl-syntax.patch |
1ce28c6f AM |
53 | Patch15: %{name}-ipv6.patch |
54 | Patch16: %{name}-refresh.patch | |
60ec3264 | 55 | Patch17: %{name}-nolibs.patch |
fad26c1d | 56 | Patch21: %{name}-userhost.patch |
129d2af2 | 57 | Patch22: %{name}-utf8-look-and-feel.patch |
703b7291 | 58 | Patch23: %{name}-utf8-8bit-hex.patch |
667e4a29 | 59 | Patch24: %{name}-find_options.patch |
e6bd752d | 60 | URL: http://www.ibiblio.org/mc/ |
2ce65b42 TP |
61 | BuildRequires: autoconf |
62 | BuildRequires: automake | |
8585e26d | 63 | BuildRequires: gettext-devel |
482746f5 | 64 | BuildRequires: glib2-devel |
2ce65b42 TP |
65 | BuildRequires: indent |
66 | BuildRequires: ncurses-devel >= 5.0 | |
67 | BuildRequires: pam-devel | |
07a90788 | 68 | BuildRequires: pkgconfig |
1b8659cb | 69 | BuildRequires: rpm-perlprov |
67463a8b | 70 | BuildRequires: rpmbuild(macros) >= 1.268 |
27d0a08b | 71 | BuildRequires: sed >= 4.0 |
4341efe2 | 72 | %if %{with utf8} |
441fc7d6 | 73 | BuildRequires: slang-devel >= 1:2.0.0 |
4341efe2 | 74 | %endif |
8585e26d | 75 | %ifnarch s390 s390x |
76d8dd60 | 76 | BuildRequires: gpm-devel |
8585e26d | 77 | %endif |
ea305648 | 78 | # Needed? %%{?with_perl_vfs:Requires: perl-base} |
fa581339 | 79 | %{?with_x:BuildRequires: xorg-lib-libX11-devel} |
ea305648 | 80 | %{?with_ext2undel:BuildRequires: e2fsprogs-devel} |
cebe333f | 81 | Requires: file |
867710f4 | 82 | Requires: pam >= 0.77.3 |
ec507259 | 83 | Requires: sed |
189df32c | 84 | Requires: setup >= 2.4.6-2 |
18364489 PG |
85 | Suggests: bzip2 |
86 | Suggests: gzip | |
87 | Suggests: lynx | |
b3305301 | 88 | Suggests: p7zip-standalone |
18364489 PG |
89 | Suggests: tar |
90 | Suggests: unzip | |
a2a8cff1 | 91 | Obsoletes: tkmc |
1ca427de | 92 | Conflicts: bash < 2.05b |
0f5143bd | 93 | Conflicts: rpm < 4.0 |
67463a8b | 94 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
014925d9 | 95 | |
7c054d29 | 96 | %define specflags_ia32 -fomit-frame-pointer |
abb760dd | 97 | |
b225fe80 | 98 | %description |
a82605d4 | 99 | Midnight Commander is a visual shell much like a file manager, only |
100 | with way more features. It is text mode, but also includes mouse | |
101 | support if you are running GPM. Its coolest feature is the ability to | |
8f20bffe | 102 | FTP, view tar, zip files, and poke into RPMs for specific files. :-) |
06df6411 | 103 | |
b1356c1b JR |
104 | %description -l de.UTF-8 |
105 | Midnight Commander ist ein Visual-Shell, ähnlich einem Dateimanager, | |
106 | aber mit zusätzlichen Funktionen. Es läuft im Textmodus, kann jedoch | |
107 | eine Maus unterstützen, wenn GPM betrieben wird. Seine coolsten | |
108 | Fähigkeiten sind die FTP-Option, das Einsehen von tar- und zip-Dateien | |
a82605d4 | 109 | und das Herausfischen von spezifischen Dateien aus RPMs. |
b225fe80 | 110 | |
b1356c1b JR |
111 | %description -l es.UTF-8 |
112 | Midnight Commander es un interpretador de comandos visual que más | |
97677aa5 | 113 | parece un administrador de archivos, solamente con varias |
b1356c1b JR |
114 | características a más. Es un programa en modo texto, pero incluye |
115 | soporte para ratón, si estuviera ejecutando GPM o en una ventana | |
116 | xterm. Su característica más genial es la habilidad de cotillear en | |
117 | RPMs buscando archivos específicos. :-) | |
97677aa5 | 118 | |
b1356c1b | 119 | %description -l fr.UTF-8 |
a82605d4 | 120 | Midnight Commander est une interface pour la ligne de commande qui |
121 | tient beaucoup du gestionnaire de fichiers, mais est bien plus | |
b1356c1b JR |
122 | puissant. Il fonctionne en mode console (texte), mais peut être |
123 | contrôlé à la souris si GPM est présent. Ses caractéristiques les plus | |
124 | remarquables sont la possibilité de se connecter à un serveur FTP, de | |
a82605d4 | 125 | visualiser des archives tar, de compresser des fichiers avec zip, de |
b1356c1b | 126 | récupérer des fichiers dans les packages RPM, et tout ceci simplement. |
b225fe80 | 127 | |
b1356c1b JR |
128 | %description -l ja.UTF-8 |
129 | Midnight Commander はいろいろな機能を持ったファイルマネージャ兼 | |
130 | ビジュアルシェルです。これはテキストモードのアプリケーションですが、 | |
131 | GPM を使っている場合、マウスが使えます。 Midnight Commander には、 FTP | |
132 | に接続できたり、 tar や zip や RPM の中が見えるなど、クールな機能 | |
133 | があります。 | |
97677aa5 | 134 | |
b1356c1b JR |
135 | %description -l pl.UTF-8 |
136 | Midnight Commander jest wizualną powłoką podobną do Norton Commandera. | |
137 | Pracuje w trybie tekstowym, ale ma także obsługę myszki. Jest super ;) | |
138 | MC ma wbudowanego klienta FTP, może zaglądać do skompresowanych | |
139 | archiwów tar i zip, a także oglądać pliki w pakietach RPM. | |
dadc2ff7 | 140 | |
b1356c1b JR |
141 | %description -l pt_BR.UTF-8 |
142 | Midnight Commander é um interpretador de comandos visual que mais | |
143 | parece um gerenciador de arquivos, somente com várias características | |
144 | a mais. Ele é um programa de modo texto, mas inclui suporte para mouse | |
145 | se você estiver rodando GPM ou em uma janela xterm. Sua característica | |
146 | mais legal é a habilidade de bisbilhotar em RPMs procurando arquivos | |
147 | específicos. :-) | |
97677aa5 | 148 | |
b1356c1b JR |
149 | %description -l tr.UTF-8 |
150 | Midnight Commander bir dosya yöneticisine çok benzeyen ancak daha | |
151 | yetenekli bir görsel kabuktur. Metin ekranda çalışır ve GPM | |
152 | çalışıyorsa fare desteği vardır. En hoş özellikleri FTP yapabilmesi, | |
153 | tar, zip ve RPM dosyalarının içeriklerini gösterebilmesidir. | |
0107cf03 | 154 | |
a2a8cff1 | 155 | %package -n mcserv |
9ef7c013 | 156 | Summary: Server for the Midnight Commander network file management system |
7defc305 ER |
157 | Summary(de.UTF-8): Midnight Commander File-Server |
158 | Summary(es.UTF-8): Servidor de archivos del Midnight Commander | |
159 | Summary(fr.UTF-8): Serveur réseau pour le gestionnaire de fichiers Midnight Commander | |
160 | Summary(ja.UTF-8): Midnight Commander でネットワークファイルマネージメントを行うサーバ | |
161 | Summary(pl.UTF-8): Serwer plików Midnight Commandera | |
162 | Summary(pt_BR.UTF-8): Servidor de arquivos do Midnight Commander | |
163 | Summary(ru.UTF-8): Midnight Commander файл-сервер | |
164 | Summary(tr.UTF-8): Midnight Commander dosya sunucusu | |
165 | Summary(uk.UTF-8): Midnight Commander файл-сервер | |
166 | Summary(zh_CN.UTF-8): mc 网络文件管理系统的服务器。 | |
e84de3cd | 167 | Group: Daemons |
91c76ea7 | 168 | Requires(post,preun): /sbin/chkconfig |
6f032019 | 169 | Requires: pam >= 0.99.7.1-1 |
d4c2fefe | 170 | Requires: portmap |
f1a94985 | 171 | Requires: rc-scripts >= 0.4.1.5 |
b225fe80 | 172 | |
173 | %description -n mcserv | |
a82605d4 | 174 | The Midnight Commander file management system will allow you to |
175 | manipulate the files on a remote machine as if they were local. This | |
176 | is only possible if the remote machine is running the mcserv server | |
177 | program. Mcserv provides clients running Midnight Commander with | |
178 | access to the host's file systems. | |
b225fe80 | 179 | |
b1356c1b JR |
180 | %description -n mcserv -l de.UTF-8 |
181 | mcserv ist das Server-Programm für das Netzwerkdateisystem Midnight | |
182 | Commander. Es ermöglicht den Zugriff auf das Host-Dateisystem für | |
183 | Clients, die das Midnight-Dateisystem ausführen (z.Zt. nur Midnight | |
a82605d4 | 184 | Commander file manager). |
b225fe80 | 185 | |
b1356c1b | 186 | %description -n mcserv -l es.UTF-8 |
97677aa5 | 187 | Mcserv es un servidor para el sistema de archivos en red del Midnight |
188 | Commander. Permite que clientes usando el mc accedan remotamente al | |
b1356c1b | 189 | sistema de archivos de la máquina en que está ejecutando. |
97677aa5 | 190 | |
b1356c1b JR |
191 | %description -n mcserv -l fr.UTF-8 |
192 | Le système de gestion de fichier Midnight Commander vous permet de | |
193 | manipuler des fichiers sur une machine distante comme si ils étaient | |
a82605d4 | 194 | sur votre propre machine. Ceci est possible seulement si la machine |
b1356c1b | 195 | distante possède le programme mcserv et que celui-ci est activé. |
a82605d4 | 196 | Mcserv apporte aux machines clientes qui font tourner Midnight |
b1356c1b | 197 | Commander un accès aux fichiers situés sur l'hôte. |
b225fe80 | 198 | |
b1356c1b | 199 | %description -n mcserv -l ja.UTF-8 |
97677aa5 | 200 | Midnight Commander |
b1356c1b JR |
201 | のファイル管理システムは、リモートマシンにあるファイルを |
202 | ローカルにあるかのように扱うことができます。この機能は mcserv | |
203 | プログラムを 実行しているリモートマシンに対してのみ働きます。 Mcserv | |
204 | は Midnight Commander | |
205 | クライアントに対して、このホストのファイルシステムを提供します。 | |
97677aa5 | 206 | |
b1356c1b JR |
207 | %description -n mcserv -l pl.UTF-8 |
208 | Mcserv jest aplikacją dla sieciowego systemu plików Midnight | |
209 | Commandera. Pozwala na dostęp do systemu plików dla klienta | |
210 | pracującego pod MC i używającego jego systemu plików. | |
014925d9 | 211 | |
b1356c1b JR |
212 | %description -n mcserv -l pt_BR.UTF-8 |
213 | Mcserv é um servidor para o sistema de arquivos em rede do Midnight | |
97677aa5 | 214 | Commander. Ele permite que clientes usando o mc acessem remotamente o |
b1356c1b | 215 | sistema de arquivos da máquina em que está rodando. |
97677aa5 | 216 | |
b1356c1b JR |
217 | %description -n mcserv -l ru.UTF-8 |
218 | mcserv - это серверная программа для сетевой файловой системы Midnight | |
219 | Commander. Она обеспечивает доступ к удаленной файловой системе | |
220 | клиентам, поддерживающим файловую систему Midnight Commander (в | |
221 | настоящее время только собственно Midnight Commander). | |
a7c418f5 | 222 | |
b1356c1b JR |
223 | %description -n mcserv -l tr.UTF-8 |
224 | mcserv, Midnight Commander ağ dosya sisteminin sunucu programıdır. | |
225 | Midnight dosya sistemini çalıştıran istemcilerin sunucu dosya | |
226 | sistemine erişimini sağlar. | |
a2a8cff1 | 227 | |
b1356c1b JR |
228 | %description -n mcserv -l uk.UTF-8 |
229 | mcserv - це серверна програма для мережевої файлової системи Midnight | |
230 | Commander. Вона забезпечує доступ до віддаленої файлової системи | |
231 | клієнтам, що підтримують файлову систему Midnight Commander (наразі | |
232 | тільки власне Midnight Commander). | |
a7c418f5 | 233 | |
b225fe80 | 234 | %prep |
a7fa1966 | 235 | %setup -q -a3 -n %{name}-%{version}-%{snap} |
6dabce9f | 236 | %patch0 -p1 |
79bd6b53 | 237 | %patch1 -p1 |
66b92d57 | 238 | %patch2 -p1 |
6dabce9f | 239 | cp -f vfs/extfs/{rpm,srpm} |
81132514 | 240 | %patch3 -p1 |
79bd6b53 JR |
241 | %patch4 -p1 |
242 | %patch5 -p1 | |
82a31d0b | 243 | %patch6 -p1 |
7e49120b | 244 | %patch8 -p1 |
60ec3264 PG |
245 | %patch10 -p1 |
246 | %{!?with_perl_vfs:%patch11 -p1} | |
b800629b | 247 | %patch12 -p1 |
9db727dc | 248 | %if %{with utf8} |
60ec3264 | 249 | %patch13 -p1 |
4341efe2 | 250 | %endif |
445b50c1 | 251 | %patch14 -p1 |
1ce28c6f AM |
252 | %patch15 -p1 |
253 | %patch16 -p1 | |
60ec3264 | 254 | %patch17 -p1 |
a7fa1966 | 255 | |
fad26c1d | 256 | %patch21 -p1 |
703b7291 AM |
257 | %if %{with utf8} |
258 | %patch22 -p1 | |
259 | %patch23 -p1 | |
260 | %endif | |
667e4a29 | 261 | %patch24 -p1 |
69d23796 JB |
262 | |
263 | mv -f po/{no,nb}.po | |
5a0ca66d | 264 | rm -f po/stamp-po |
b225fe80 | 265 | |
bf80beca | 266 | %if %{with utf8} |
267 | # convert files in /lib to UTF-8 | |
268 | cd lib | |
269 | for i in mc.hint mc.hint.es mc.hint.it mc.hint.nl; do | |
67463a8b ER |
270 | iconv -f iso-8859-1 -t utf-8 < ${i} > ${i}.tmp |
271 | mv -f ${i}.tmp ${i} | |
bf80beca | 272 | done |
273 | ||
274 | for i in mc.hint.cs mc.hint.hu mc.hint.pl; do | |
67463a8b ER |
275 | iconv -f iso-8859-2 -t utf-8 < ${i} > ${i}.tmp |
276 | mv -f ${i}.tmp ${i} | |
bf80beca | 277 | done |
278 | ||
279 | for i in mc.hint.sr mc.menu.sr; do | |
67463a8b ER |
280 | iconv -f iso-8859-5 -t utf-8 < ${i} > ${i}.tmp |
281 | mv -f ${i}.tmp ${i} | |
bf80beca | 282 | done |
283 | ||
284 | iconv -f koi8-r -t utf8 < mc.hint.ru > mc.hint.ru.tmp | |
285 | mv -f mc.hint.ru.tmp mc.hint.ru | |
286 | iconv -f koi8-u -t utf8 < mc.hint.uk > mc.hint.uk.tmp | |
287 | mv -f mc.hint.uk.tmp mc.hint.uk | |
288 | iconv -f big5 -t utf8 < mc.hint.zh > mc.hint.zh.tmp | |
289 | mv -f mc.hint.zh.tmp mc.hint.zh | |
290 | cd .. | |
291 | ||
bf80beca | 292 | # convert man pages in /doc to UTF-8 |
293 | cd doc | |
294 | ||
295 | cd ru | |
296 | for i in mc.1.in xnc.hlp; do | |
67463a8b ER |
297 | iconv -f koi8-r -t utf-8 < ${i} > ${i}.tmp |
298 | mv -f ${i}.tmp ${i} | |
bf80beca | 299 | done |
300 | cd .. | |
301 | ||
302 | cd sr | |
303 | for i in mc.1.in mcserv.8.in xnc.hlp; do | |
67463a8b ER |
304 | iconv -f iso-8859-5 -t utf-8 < ${i} > ${i}.tmp |
305 | mv -f ${i}.tmp ${i} | |
bf80beca | 306 | done |
307 | cd .. | |
308 | ||
309 | for d in es it; do | |
67463a8b ER |
310 | for i in mc.1.in xnc.hlp; do |
311 | iconv -f iso-8859-3 -t utf-8 < ${d}/${i} > ${d}/${i}.tmp | |
312 | mv -f ${d}/${i}.tmp ${d}/${i} | |
313 | done | |
bf80beca | 314 | done |
315 | ||
316 | for d in hu pl; do | |
67463a8b ER |
317 | for i in mc.1.in xnc.hlp; do |
318 | iconv -f iso-8859-2 -t utf-8 < ${d}/${i} > ${d}/${i}.tmp | |
319 | mv -f ${d}/${i}.tmp ${d}/${i} | |
320 | done | |
bf80beca | 321 | done |
322 | cd .. | |
323 | %endif | |
324 | ||
445b50c1 | 325 | rm -f syntax/Syntax.orig |
27d0a08b PS |
326 | sed -i 's:|hxx|:|hh|hpp|hxx|:' syntax/Syntax |
327 | ||
b225fe80 | 328 | %build |
ebf0d7d4 | 329 | %{__gettextize} |
8a749106 | 330 | %{__aclocal} -I m4 |
569ca9b0 | 331 | %{__autoconf} |
332 | %{__automake} | |
6ea21e8b | 333 | X11_WWW=" |
e6bd752d | 334 | if [ -f /usr/bin/netscape ]; then |
a7c418f5 | 335 | netscape; |
6ea21e8b | 336 | else |
e6bd752d | 337 | if [ -f /usr/bin/galeon ]; then |
a7c418f5 | 338 | galeon |
339 | else | |
e6bd752d | 340 | if [ -f /usr/bin/mozilla ]; then |
a7c418f5 | 341 | mozilla |
342 | else | |
343 | xterm -c lynx | |
344 | fi; | |
345 | fi; | |
6ea21e8b | 346 | fi" |
bf80beca | 347 | |
348 | %if %{with utf8} | |
82b25b19 | 349 | CFLAGS="-DUTF8 %{rpmcflags}" |
bf80beca | 350 | export CFLAGS |
351 | %endif | |
014925d9 | 352 | %configure \ |
b0067d79 | 353 | --enable-charset \ |
e6bd752d | 354 | --with%{!?debug:out}-debug \ |
69d23796 JB |
355 | --with%{!?with_ext2undel:out}-ext2undel \ |
356 | --with%{!?with_x:out}-x \ | |
aa82b622 | 357 | --with-vfs \ |
e6bd752d | 358 | --with-mcfs \ |
69d23796 | 359 | %{?with_samba:--with-samba} \ |
e6bd752d AM |
360 | --with-configdir=/etc/samba \ |
361 | --with-codepagedir=/etc/samba/codepages \ | |
362 | --with-gpm-mouse \ | |
4341efe2 | 363 | --with-screen=%{?!with_utf8:mc}slang \ |
e6bd752d AM |
364 | --with-edit |
365 | ||
366 | %{__make} | |
b225fe80 | 367 | |
b225fe80 | 368 | %install |
369 | rm -rf $RPM_BUILD_ROOT | |
ee7810f9 | 370 | install -d $RPM_BUILD_ROOT{%{_sbindir},%{_pixmapsdir},%{_desktopdir}} \ |
189df32c | 371 | $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,shrc.d,sysconfig} \ |
ee7810f9 | 372 | $RPM_BUILD_ROOT%{_mandir}/man8 |
c2b7cdae | 373 | |
aaabaa35 | 374 | %{__make} install \ |
c2b7cdae | 375 | DESTDIR=$RPM_BUILD_ROOT |
06df6411 | 376 | |
ee7810f9 JK |
377 | install doc/mcserv.8 $RPM_BUILD_ROOT%{_mandir}/man8 |
378 | ||
a2a8cff1 | 379 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/mcserv |
380 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/mcserv | |
a825a165 | 381 | install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/mcserv |
9869577c | 382 | install %{SOURCE7} $RPM_BUILD_ROOT%{_desktopdir} |
0f5143bd | 383 | install %{SOURCE8} $RPM_BUILD_ROOT%{_pixmapsdir} |
a2a8cff1 | 384 | |
99de6f42 | 385 | for a in es pl ; do |
267b57f9 | 386 | for b in man1 man8 ; do |
387 | install -d $RPM_BUILD_ROOT%{_mandir}/{$a,$a/$b} | |
388 | for c in man/$a/$b/* ; do | |
389 | install $c $RPM_BUILD_ROOT%{_mandir}/$a/$b | |
99de6f42 | 390 | done |
391 | done | |
392 | done | |
393 | ||
189df32c | 394 | install lib/{mc.sh,mc.csh} $RPM_BUILD_ROOT/etc/shrc.d |
b225fe80 | 395 | |
875f991f | 396 | %find_lang %{name} |
397 | ||
a2a8cff1 | 398 | %clean |
399 | rm -rf $RPM_BUILD_ROOT | |
b225fe80 | 400 | |
06df6411 | 401 | %post -n mcserv |
767ab68a | 402 | /sbin/chkconfig --add mcserv |
67463a8b | 403 | %service mcserv restart "mcserv daemon" |
b225fe80 | 404 | |
06df6411 | 405 | %preun -n mcserv |
767ab68a | 406 | if [ "$1" = "0" ]; then |
67463a8b | 407 | %service mcserv stop |
767ab68a | 408 | /sbin/chkconfig --del mcserv |
409 | fi | |
b225fe80 | 410 | |
875f991f | 411 | %files -f %{name}.lang |
06df6411 | 412 | %defattr(644,root,root,755) |
97677aa5 | 413 | %doc FAQ NEWS README |
aa82b622 | 414 | %attr(755,root,root) %{_bindir}/mc* |
f0858a92 | 415 | %config /etc/shrc.d/* |
8714df24 | 416 | %attr(755,root,root) %{_libdir}/mc/cons.saver |
417 | %dir %{_libdir}/mc | |
06df6411 | 418 | |
8714df24 | 419 | %dir %{_datadir}/mc |
e6bd752d | 420 | |
8714df24 | 421 | %{_datadir}/mc/bin |
422 | %{_datadir}/mc/syntax | |
8714df24 | 423 | |
424 | %{_datadir}/mc/mc.ext | |
e6bd752d AM |
425 | %{_datadir}/mc/cedit* |
426 | %{_datadir}/mc/edit.* | |
e6bd752d | 427 | %{_datadir}/mc/mc.hlp |
e6bd752d | 428 | %lang(es) %{_datadir}/mc/mc.hlp.es |
f0fc3ecc | 429 | %lang(hu) %{_datadir}/mc/mc.hlp.hu |
e6bd752d AM |
430 | %lang(it) %{_datadir}/mc/mc.hlp.it |
431 | %lang(pl) %{_datadir}/mc/mc.hlp.pl | |
432 | %lang(ru) %{_datadir}/mc/mc.hlp.ru | |
4341efe2 | 433 | %lang(sr) %{_datadir}/mc/mc.hlp.sr |
e6bd752d AM |
434 | %{_datadir}/mc/mc.lib |
435 | %{_datadir}/mc/mc.menu | |
4341efe2 | 436 | %lang(sr) %{_datadir}/mc/mc.menu.sr |
e6bd752d AM |
437 | %{_datadir}/mc/mc.hint |
438 | %lang(cs) %{_datadir}/mc/mc.hint.cs | |
439 | %lang(es) %{_datadir}/mc/mc.hint.es | |
440 | %lang(hu) %{_datadir}/mc/mc.hint.hu | |
441 | %lang(it) %{_datadir}/mc/mc.hint.it | |
442 | %lang(nl) %{_datadir}/mc/mc.hint.nl | |
443 | %lang(pl) %{_datadir}/mc/mc.hint.pl | |
444 | %lang(ru) %{_datadir}/mc/mc.hint.ru | |
4341efe2 | 445 | %lang(sr) %{_datadir}/mc/mc.hint.sr |
e6bd752d AM |
446 | %lang(uk) %{_datadir}/mc/mc.hint.uk |
447 | %lang(zh) %{_datadir}/mc/mc.hint.zh | |
448 | ||
8714df24 | 449 | %dir %{_datadir}/mc/extfs |
e6bd752d | 450 | %{_datadir}/mc/extfs/README |
8714df24 | 451 | %{_datadir}/mc/extfs/extfs.ini |
452 | %{_datadir}/mc/extfs/sfs.ini | |
26aa770b | 453 | %if %{with perl_vfs} |
e6bd752d AM |
454 | %attr(755,root,root) %{_datadir}/mc/extfs/a |
455 | %attr(755,root,root) %{_datadir}/mc/extfs/apt | |
e6bd752d AM |
456 | %attr(755,root,root) %{_datadir}/mc/extfs/deb* |
457 | %attr(755,root,root) %{_datadir}/mc/extfs/dpkg | |
458 | #%attr(755,root,root) %{_datadir}/mc/extfs/ftplist | |
e6bd752d AM |
459 | %attr(755,root,root) %{_datadir}/mc/extfs/mailfs |
460 | %attr(755,root,root) %{_datadir}/mc/extfs/patchfs | |
26aa770b | 461 | %attr(755,root,root) %{_datadir}/mc/extfs/rpms |
462 | #%attr(755,root,root) %{_datadir}/mc/extfs/ucpio | |
463 | %attr(755,root,root) %{_datadir}/mc/extfs/uzip | |
464 | %endif | |
465 | %attr(755,root,root) %{_datadir}/mc/extfs/audio | |
466 | %attr(755,root,root) %{_datadir}/mc/extfs/bpp | |
467 | %attr(755,root,root) %{_datadir}/mc/extfs/hp48 | |
4341efe2 | 468 | %attr(755,root,root) %{_datadir}/mc/extfs/iso9660 |
26aa770b | 469 | %attr(755,root,root) %{_datadir}/mc/extfs/lslR |
470 | %attr(755,root,root) %{_datadir}/mc/extfs/rpm | |
e6bd752d | 471 | %attr(755,root,root) %{_datadir}/mc/extfs/trpm |
54a28285 AM |
472 | %attr(755,root,root) %{_datadir}/mc/extfs/u7z |
473 | %attr(755,root,root) %{_datadir}/mc/extfs/ualz | |
e6bd752d | 474 | %attr(755,root,root) %{_datadir}/mc/extfs/uar* |
e6bd752d AM |
475 | %attr(755,root,root) %{_datadir}/mc/extfs/uha |
476 | %attr(755,root,root) %{_datadir}/mc/extfs/ulha | |
477 | %attr(755,root,root) %{_datadir}/mc/extfs/urar | |
e6bd752d AM |
478 | %attr(755,root,root) %{_datadir}/mc/extfs/uzoo |
479 | %attr(755,root,root) %{_datadir}/mc/extfs/srpm | |
c3652360 | 480 | %{_desktopdir}/mc.desktop |
481 | %{_pixmapsdir}/mc.png | |
06df6411 | 482 | |
72902777 | 483 | %{_datadir}/mc/mc.charsets |
484 | ||
fb0aa8ab | 485 | %{_mandir}/man1/* |
99de6f42 | 486 | %lang(es) %{_mandir}/es/man1/* |
e6bd752d AM |
487 | %lang(hu) %{_mandir}/hu/man1/* |
488 | %lang(it) %{_mandir}/it/man1/* | |
f0fc3ecc | 489 | %lang(pl) %{_mandir}/pl/man1/* |
e6bd752d | 490 | %lang(ru) %{_mandir}/ru/man1/* |
4341efe2 | 491 | %lang(sr) %{_mandir}/sr/man1/* |
3f46a95e | 492 | |
b225fe80 | 493 | %files -n mcserv |
06df6411 | 494 | %defattr(644,root,root,755) |
ea305648 | 495 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/* |
06df6411 | 496 | |
a825a165 | 497 | %attr(754,root,root) /etc/rc.d/init.d/mcserv |
10f51416 | 498 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mcserv |
fb0aa8ab | 499 | %{_mandir}/man8/mcserv.8* |
99de6f42 | 500 | %lang(es) %{_mandir}/es/man8/mcserv.8* |
3f46a95e | 501 | %lang(pl) %{_mandir}/pl/man8/mcserv.8* |
4341efe2 | 502 | %lang(sr) %{_mandir}/sr/man8/mcserv.8* |
c2b7cdae | 503 | %attr(755,root,root) %{_sbindir}/mcserv |