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