]>
Commit | Line | Data |
---|---|---|
d78cba00 | 1 | # TODO: |
d78cba00 | 2 | # - check spec-syntax,mo patches |
afbb79ff JB |
3 | # |
4 | # Conditional build: | |
69d23796 | 5 | %bcond_with ext2undel # with ext2 undelete fs |
26aa770b | 6 | %bcond_without perl_vfs # without perl depending vfs'es -- to avoid perl autoreq |
69d23796 | 7 | %bcond_with samba # with SAMBA vfs support |
4341efe2 | 8 | %bcond_without x # without text edit in X support |
afbb79ff | 9 | # |
9ef7c013 | 10 | Summary: A user-friendly file manager and visual shell |
7defc305 ER |
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 | |
8c231fba | 14 | Summary(hu.UTF-8): Egy felhasználóbarát fájlkezelő és vizuális shell |
7defc305 ER |
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 | |
06df6411 | 22 | Name: mc |
cfe38d63 | 23 | Version: 4.7.4 |
7a0472d7 | 24 | Release: 2.1 |
217c9a4c | 25 | Epoch: 1 |
5a0ca66d | 26 | License: GPL v2+ |
51719b27 | 27 | Group: Applications/Shells |
b85889ee | 28 | Source0: http://www.midnight-commander.org/downloads/%{name}-%{version}.tar.bz2 |
cfe38d63 | 29 | # Source0-md5: ae07f873b91e8a2e4a3b081f1adedd2e |
f187cfbf | 30 | Source3: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2 |
4f279a49 | 31 | # Source3-md5: 17d7b574e1b85ad6f8ddceda9e841f19 |
0f5143bd | 32 | Source7: %{name}.desktop |
33 | Source8: %{name}.png | |
6dabce9f | 34 | Patch0: %{name}-rpmfs.patch |
5f5165f2 | 35 | Patch1: slang-8bit_xterm.patch |
41a66277 | 36 | Patch2: %{name}-down2.diff |
81132514 JB |
37 | Patch4: %{name}-home_etc2.patch |
38 | Patch5: %{name}-pl.patch | |
82a31d0b | 39 | Patch6: %{name}-no-ws-visible.patch |
60ec3264 | 40 | Patch11: %{name}-noperl-vfs.patch |
317fa76e | 41 | # at now syntax highligthing for PLD-update-TODO and CVSROOT/users |
60ec3264 | 42 | Patch12: %{name}-pld-developerfriendly.patch |
3b4a4e18 | 43 | Patch24: %{name}-find_options.patch |
2a79da2b | 44 | URL: http://www.midnight-commander.org/ |
2ce65b42 TP |
45 | BuildRequires: autoconf |
46 | BuildRequires: automake | |
d9d4206b | 47 | %{?with_ext2undel:BuildRequires: e2fsprogs-devel} |
8585e26d | 48 | BuildRequires: gettext-devel |
496038e0 | 49 | BuildRequires: glib2-devel >= 2.8 |
d9d4206b TP |
50 | %ifnarch s390 s390x |
51 | BuildRequires: gpm-devel | |
52 | %endif | |
ef93830a | 53 | BuildRequires: libtool |
2ce65b42 | 54 | BuildRequires: pam-devel |
d9d4206b | 55 | # Needed? %%{?with_perl_vfs:Requires: perl-base} |
07a90788 | 56 | BuildRequires: pkgconfig |
8340c2ef | 57 | BuildRequires: rpm-pythonprov |
67463a8b | 58 | BuildRequires: rpmbuild(macros) >= 1.268 |
27d0a08b | 59 | BuildRequires: sed >= 4.0 |
ef93830a | 60 | BuildRequires: slang-devel >= 2.2.1 |
57af47f2 | 61 | %{?with_x:BuildRequires: xorg-lib-libX11-devel} |
cebe333f | 62 | Requires: file |
867710f4 | 63 | Requires: pam >= 0.77.3 |
ec507259 | 64 | Requires: sed |
189df32c | 65 | Requires: setup >= 2.4.6-2 |
18364489 | 66 | Suggests: bzip2 |
58a4b84a | 67 | Suggests: cabextract |
8a27b235 | 68 | Suggests: cdrtools-utils |
58a4b84a TP |
69 | Suggests: cpio |
70 | Suggests: dvi2tty | |
71 | Suggests: enca | |
72 | Suggests: file | |
8a27b235 TP |
73 | Suggests: ghostscript |
74 | Suggests: groff | |
18364489 | 75 | Suggests: gzip |
58a4b84a TP |
76 | Suggests: lha |
77 | Suggests: links | |
18364489 | 78 | Suggests: lynx |
58a4b84a | 79 | Suggests: lzma |
58a4b84a | 80 | Suggests: odt2txt |
b3305301 | 81 | Suggests: p7zip-standalone |
8a27b235 | 82 | Suggests: perl-tools-pod |
58a4b84a | 83 | Suggests: rar |
3c997af2 | 84 | Suggests: rpm-utils |
18364489 | 85 | Suggests: tar |
58a4b84a | 86 | Suggests: unarj |
18364489 | 87 | Suggests: unzip |
d9d4206b | 88 | Suggests: xdg-utils |
58a4b84a TP |
89 | Suggests: xpdf-tools |
90 | Suggests: xz | |
91 | Suggests: zoo | |
6aeebadc | 92 | Obsoletes: mc46 |
3c1fd620 TP |
93 | Obsoletes: mc46serv |
94 | Obsoletes: mcserv | |
57af47f2 | 95 | Obsoletes: tkmc |
1ca427de | 96 | Conflicts: bash < 2.05b |
0f5143bd | 97 | Conflicts: rpm < 4.0 |
67463a8b | 98 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
014925d9 | 99 | |
ef93830a | 100 | %define specflags_ia32 -fomit-frame-pointer |
abb760dd | 101 | |
b225fe80 | 102 | %description |
a82605d4 | 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 | |
8f20bffe | 106 | FTP, view tar, zip files, and poke into RPMs for specific files. :-) |
06df6411 | 107 | |
b1356c1b JR |
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 | |
a82605d4 | 113 | und das Herausfischen von spezifischen Dateien aus RPMs. |
b225fe80 | 114 | |
b1356c1b JR |
115 | %description -l es.UTF-8 |
116 | Midnight Commander es un interpretador de comandos visual que más | |
97677aa5 | 117 | parece un administrador de archivos, solamente con varias |
b1356c1b JR |
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. :-) | |
97677aa5 | 122 | |
b1356c1b | 123 | %description -l fr.UTF-8 |
a82605d4 | 124 | Midnight Commander est une interface pour la ligne de commande qui |
125 | tient beaucoup du gestionnaire de fichiers, mais est bien plus | |
b1356c1b JR |
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 | |
a82605d4 | 129 | visualiser des archives tar, de compresser des fichiers avec zip, de |
b1356c1b | 130 | récupérer des fichiers dans les packages RPM, et tout ceci simplement. |
b225fe80 | 131 | |
8c231fba ZU |
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 | ||
b1356c1b JR |
138 | %description -l ja.UTF-8 |
139 | Midnight Commander はいろいろな機能を持ったファイルマネージャ兼 | |
8c231fba ZU |
140 | ビジュアルシェルです。これはテキストモードのアプリケーションですが、 GPM を使っている場合、マウスが使えます。 Midnight |
141 | Commander には、 FTP に接続できたり、 tar や zip や RPM の中が見えるなど、クールな機能 があります。 | |
97677aa5 | 142 | |
b1356c1b JR |
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. | |
dadc2ff7 | 148 | |
b1356c1b JR |
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. :-) | |
97677aa5 | 156 | |
b1356c1b JR |
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. | |
0107cf03 | 162 | |
b225fe80 | 163 | %prep |
57af47f2 | 164 | %setup -q -a3 |
b85889ee TP |
165 | #rpm wrapper rewritten |
166 | #%patch0 -p1 | |
5f5165f2 | 167 | %patch1 -p1 |
41a66277 | 168 | %patch2 -p1 |
db2935bf AM |
169 | # doesn't apply |
170 | #%patch4 -p1 | |
171 | # doesn't apply | |
172 | #%patch5 -p1 | |
82a31d0b | 173 | %patch6 -p1 |
60ec3264 | 174 | %{!?with_perl_vfs:%patch11 -p1} |
48e9798a | 175 | %patch12 -p1 |
3b4a4e18 | 176 | %if "%{pld_release}" == "ti" |
177 | %patch24 -p1 | |
178 | %endif | |
69d23796 | 179 | |
5a0ca66d | 180 | rm -f po/stamp-po |
b225fe80 | 181 | |
ec1f7d4d | 182 | sed -i 's:|hxx|:|hh|hpp|hxx|tcc|:' misc/syntax/Syntax |
27d0a08b | 183 | |
b225fe80 | 184 | %build |
ebf0d7d4 | 185 | %{__gettextize} |
ef93830a | 186 | %{__libtoolize} |
8a749106 | 187 | %{__aclocal} -I m4 |
569ca9b0 | 188 | %{__autoconf} |
189 | %{__automake} | |
bf80beca | 190 | |
d9d4206b | 191 | export X11_WWW="xdg-open" |
014925d9 | 192 | %configure \ |
e6bd752d | 193 | --with%{!?debug:out}-debug \ |
69d23796 JB |
194 | --with%{!?with_ext2undel:out}-ext2undel \ |
195 | --with%{!?with_x:out}-x \ | |
aa82b622 | 196 | --with-vfs \ |
69d23796 | 197 | %{?with_samba:--with-samba} \ |
e6bd752d AM |
198 | --with-configdir=/etc/samba \ |
199 | --with-codepagedir=/etc/samba/codepages \ | |
200 | --with-gpm-mouse \ | |
3c1fd620 | 201 | --with-screen=slang |
e6bd752d AM |
202 | |
203 | %{__make} | |
b225fe80 | 204 | |
b225fe80 | 205 | %install |
206 | rm -rf $RPM_BUILD_ROOT | |
ee7810f9 | 207 | install -d $RPM_BUILD_ROOT{%{_sbindir},%{_pixmapsdir},%{_desktopdir}} \ |
189df32c | 208 | $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,shrc.d,sysconfig} \ |
ee7810f9 | 209 | $RPM_BUILD_ROOT%{_mandir}/man8 |
c2b7cdae | 210 | |
aaabaa35 | 211 | %{__make} install \ |
c2b7cdae | 212 | DESTDIR=$RPM_BUILD_ROOT |
06df6411 | 213 | |
9869577c | 214 | install %{SOURCE7} $RPM_BUILD_ROOT%{_desktopdir} |
0f5143bd | 215 | install %{SOURCE8} $RPM_BUILD_ROOT%{_pixmapsdir} |
a2a8cff1 | 216 | |
99de6f42 | 217 | for a in es pl ; do |
267b57f9 | 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 | |
99de6f42 | 222 | done |
223 | done | |
224 | done | |
225 | ||
db2935bf | 226 | install contrib/{mc.sh,mc.csh} $RPM_BUILD_ROOT/etc/shrc.d |
b225fe80 | 227 | |
815b3613 | 228 | rm -r $RPM_BUILD_ROOT%{_datadir}/locale/be@tarask |
dd59f8ac | 229 | |
875f991f | 230 | %find_lang %{name} |
231 | ||
a2a8cff1 | 232 | %clean |
233 | rm -rf $RPM_BUILD_ROOT | |
b225fe80 | 234 | |
875f991f | 235 | %files -f %{name}.lang |
06df6411 | 236 | %defattr(644,root,root,755) |
db2935bf | 237 | %doc NEWS README |
aa82b622 | 238 | %attr(755,root,root) %{_bindir}/mc* |
f0858a92 | 239 | %config /etc/shrc.d/* |
8714df24 | 240 | %attr(755,root,root) %{_libdir}/mc/cons.saver |
241 | %dir %{_libdir}/mc | |
db2935bf AM |
242 | %attr(755,root,root) %{_libdir}/mc/*.sh |
243 | %attr(755,root,root) %{_libdir}/mc/*.csh | |
8714df24 | 244 | %dir %{_datadir}/mc |
e6bd752d | 245 | |
ef93830a | 246 | %{_datadir}/mc/skins |
8714df24 | 247 | %{_datadir}/mc/syntax |
8714df24 | 248 | |
e6bd752d | 249 | %{_datadir}/mc/mc.hlp |
e6bd752d | 250 | %lang(es) %{_datadir}/mc/mc.hlp.es |
f0fc3ecc | 251 | %lang(hu) %{_datadir}/mc/mc.hlp.hu |
e6bd752d AM |
252 | %lang(it) %{_datadir}/mc/mc.hlp.it |
253 | %lang(pl) %{_datadir}/mc/mc.hlp.pl | |
254 | %lang(ru) %{_datadir}/mc/mc.hlp.ru | |
4341efe2 | 255 | %lang(sr) %{_datadir}/mc/mc.hlp.sr |
e6bd752d AM |
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 | |
4341efe2 | 264 | %lang(sr) %{_datadir}/mc/mc.hint.sr |
e6bd752d AM |
265 | %lang(uk) %{_datadir}/mc/mc.hint.uk |
266 | %lang(zh) %{_datadir}/mc/mc.hint.zh | |
267 | ||
496038e0 TP |
268 | %dir %{_libdir}/mc/extfs.d |
269 | %{_libdir}/mc/extfs.d/README* | |
26aa770b | 270 | %if %{with perl_vfs} |
496038e0 TP |
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 | |
26aa770b | 279 | %endif |
496038e0 TP |
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 | |
3c1fd620 TP |
298 | %dir %{_libdir}/mc/fish |
299 | %{_libdir}/mc/fish/README.fish | |
300 | %attr(755,root,root) %{_libdir}/mc/fish/[a-z]* | |
c3652360 | 301 | %{_desktopdir}/mc.desktop |
302 | %{_pixmapsdir}/mc.png | |
06df6411 | 303 | |
fb0aa8ab | 304 | %{_mandir}/man1/* |
99de6f42 | 305 | %lang(es) %{_mandir}/es/man1/* |
e6bd752d AM |
306 | %lang(hu) %{_mandir}/hu/man1/* |
307 | %lang(it) %{_mandir}/it/man1/* | |
f0fc3ecc | 308 | %lang(pl) %{_mandir}/pl/man1/* |
e6bd752d | 309 | %lang(ru) %{_mandir}/ru/man1/* |
4341efe2 | 310 | %lang(sr) %{_mandir}/sr/man1/* |
3f46a95e | 311 | |
db2935bf | 312 | %dir %{_sysconfdir}/mc |
57af47f2 | 313 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mc/Syntax |
314 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mc/*.* |