]>
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 |
1659ad0a | 23 | Version: 4.8.0 |
5d730a55 | 24 | Release: 1 |
217c9a4c | 25 | Epoch: 1 |
dc33a4a9 | 26 | License: GPL v3+ |
51719b27 | 27 | Group: Applications/Shells |
b85889ee | 28 | Source0: http://www.midnight-commander.org/downloads/%{name}-%{version}.tar.bz2 |
1659ad0a | 29 | # Source0-md5: 592478c3edfa2ad64c8cd165b9bec446 |
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 |
080172a7 | 35 | Patch1: %{name}-home_etc2.patch |
36 | Patch2: %{name}-pl.patch | |
37 | Patch3: %{name}-no-ws-visible.patch | |
38 | Patch4: %{name}-noperl-vfs.patch | |
317fa76e | 39 | # at now syntax highligthing for PLD-update-TODO and CVSROOT/users |
080172a7 | 40 | Patch5: %{name}-pld-developerfriendly.patch |
2a79da2b | 41 | URL: http://www.midnight-commander.org/ |
2ce65b42 TP |
42 | BuildRequires: autoconf |
43 | BuildRequires: automake | |
d9d4206b | 44 | %{?with_ext2undel:BuildRequires: e2fsprogs-devel} |
8585e26d | 45 | BuildRequires: gettext-devel |
496038e0 | 46 | BuildRequires: glib2-devel >= 2.8 |
d9d4206b TP |
47 | %ifnarch s390 s390x |
48 | BuildRequires: gpm-devel | |
49 | %endif | |
ef93830a | 50 | BuildRequires: libtool |
2ce65b42 | 51 | BuildRequires: pam-devel |
1659ad0a | 52 | BuildRequires: pcre-devel |
d9d4206b | 53 | # Needed? %%{?with_perl_vfs:Requires: perl-base} |
07a90788 | 54 | BuildRequires: pkgconfig |
8340c2ef | 55 | BuildRequires: rpm-pythonprov |
67463a8b | 56 | BuildRequires: rpmbuild(macros) >= 1.268 |
27d0a08b | 57 | BuildRequires: sed >= 4.0 |
ef93830a | 58 | BuildRequires: slang-devel >= 2.2.1 |
57af47f2 | 59 | %{?with_x:BuildRequires: xorg-lib-libX11-devel} |
cebe333f | 60 | Requires: file |
867710f4 | 61 | Requires: pam >= 0.77.3 |
ec507259 | 62 | Requires: sed |
189df32c | 63 | Requires: setup >= 2.4.6-2 |
18364489 | 64 | Suggests: bzip2 |
58a4b84a | 65 | Suggests: cabextract |
8a27b235 | 66 | Suggests: cdrtools-utils |
58a4b84a TP |
67 | Suggests: cpio |
68 | Suggests: dvi2tty | |
69 | Suggests: enca | |
70 | Suggests: file | |
8a27b235 TP |
71 | Suggests: ghostscript |
72 | Suggests: groff | |
18364489 | 73 | Suggests: gzip |
58a4b84a TP |
74 | Suggests: lha |
75 | Suggests: links | |
18364489 | 76 | Suggests: lynx |
58a4b84a | 77 | Suggests: lzma |
58a4b84a | 78 | Suggests: odt2txt |
b3305301 | 79 | Suggests: p7zip-standalone |
8a27b235 | 80 | Suggests: perl-tools-pod |
58a4b84a | 81 | Suggests: rar |
3c997af2 | 82 | Suggests: rpm-utils |
18364489 | 83 | Suggests: tar |
58a4b84a | 84 | Suggests: unarj |
18364489 | 85 | Suggests: unzip |
d9d4206b | 86 | Suggests: xdg-utils |
58a4b84a TP |
87 | Suggests: xpdf-tools |
88 | Suggests: xz | |
89 | Suggests: zoo | |
6aeebadc | 90 | Obsoletes: mc46 |
3c1fd620 TP |
91 | Obsoletes: mc46serv |
92 | Obsoletes: mcserv | |
57af47f2 | 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 | |
ef93830a | 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 | |
8c231fba ZU |
130 | %description -l hu.UTF-8 |
131 | Midnight Commander egy vizuális shell, lényegében egy fájlkezelő | |
132 | sok-sok lehetőséggel. Szöveges módú, de az egeret is támogatja, ha fut | |
133 | a GPM. A legjobb lehetőség az FTP elérése, tar, zip és RPM fájlok | |
134 | kezelése. | |
135 | ||
b1356c1b JR |
136 | %description -l ja.UTF-8 |
137 | Midnight Commander はいろいろな機能を持ったファイルマネージャ兼 | |
8c231fba ZU |
138 | ビジュアルシェルです。これはテキストモードのアプリケーションですが、 GPM を使っている場合、マウスが使えます。 Midnight |
139 | Commander には、 FTP に接続できたり、 tar や zip や RPM の中が見えるなど、クールな機能 があります。 | |
97677aa5 | 140 | |
b1356c1b JR |
141 | %description -l pl.UTF-8 |
142 | Midnight Commander jest wizualną powłoką podobną do Norton Commandera. | |
143 | Pracuje w trybie tekstowym, ale ma także obsługę myszki. Jest super ;) | |
144 | MC ma wbudowanego klienta FTP, może zaglądać do skompresowanych | |
145 | archiwów tar i zip, a także oglądać pliki w pakietach RPM. | |
dadc2ff7 | 146 | |
b1356c1b JR |
147 | %description -l pt_BR.UTF-8 |
148 | Midnight Commander é um interpretador de comandos visual que mais | |
149 | parece um gerenciador de arquivos, somente com várias características | |
150 | a mais. Ele é um programa de modo texto, mas inclui suporte para mouse | |
151 | se você estiver rodando GPM ou em uma janela xterm. Sua característica | |
152 | mais legal é a habilidade de bisbilhotar em RPMs procurando arquivos | |
153 | específicos. :-) | |
97677aa5 | 154 | |
b1356c1b JR |
155 | %description -l tr.UTF-8 |
156 | Midnight Commander bir dosya yöneticisine çok benzeyen ancak daha | |
157 | yetenekli bir görsel kabuktur. Metin ekranda çalışır ve GPM | |
158 | çalışıyorsa fare desteği vardır. En hoş özellikleri FTP yapabilmesi, | |
159 | tar, zip ve RPM dosyalarının içeriklerini gösterebilmesidir. | |
0107cf03 | 160 | |
b225fe80 | 161 | %prep |
57af47f2 | 162 | %setup -q -a3 |
b85889ee TP |
163 | #rpm wrapper rewritten |
164 | #%patch0 -p1 | |
db2935bf | 165 | # doesn't apply |
080172a7 | 166 | #%patch1 -p1 |
db2935bf | 167 | # doesn't apply |
080172a7 | 168 | #%patch2 -p1 |
169 | %patch3 -p1 | |
170 | %{!?with_perl_vfs:%patch4 -p1} | |
171 | %patch5 -p1 | |
69d23796 | 172 | |
114638a2 | 173 | %{__rm} po/stamp-po |
b225fe80 | 174 | |
080172a7 | 175 | %{__sed} -i 's:|hxx|:|hh|hpp|hxx|tcc|:' misc/syntax/Syntax |
27d0a08b | 176 | |
b225fe80 | 177 | %build |
ebf0d7d4 | 178 | %{__gettextize} |
ef93830a | 179 | %{__libtoolize} |
8a749106 | 180 | %{__aclocal} -I m4 |
569ca9b0 | 181 | %{__autoconf} |
182 | %{__automake} | |
bf80beca | 183 | |
d9d4206b | 184 | export X11_WWW="xdg-open" |
014925d9 | 185 | %configure \ |
4c158b5d TP |
186 | %{?with_ext2undel:--enable-vfs-undelfs} \ |
187 | %{?with_samba:--enable-vfs-smb} \ | |
188 | --with-smb-configdir=/etc/samba \ | |
189 | --with-smb-codepagedir=/etc/samba/codepages \ | |
69d23796 | 190 | --with%{!?with_x:out}-x \ |
e6bd752d | 191 | --with-gpm-mouse \ |
1659ad0a | 192 | --with-pcre \ |
aa2087ca | 193 | --with-screen=slang \ |
194 | --disable-silent-rules | |
e6bd752d AM |
195 | |
196 | %{__make} | |
b225fe80 | 197 | |
b225fe80 | 198 | %install |
199 | rm -rf $RPM_BUILD_ROOT | |
ee7810f9 | 200 | install -d $RPM_BUILD_ROOT{%{_sbindir},%{_pixmapsdir},%{_desktopdir}} \ |
189df32c | 201 | $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,shrc.d,sysconfig} \ |
ee7810f9 | 202 | $RPM_BUILD_ROOT%{_mandir}/man8 |
c2b7cdae | 203 | |
aaabaa35 | 204 | %{__make} install \ |
c2b7cdae | 205 | DESTDIR=$RPM_BUILD_ROOT |
06df6411 | 206 | |
9869577c | 207 | install %{SOURCE7} $RPM_BUILD_ROOT%{_desktopdir} |
0f5143bd | 208 | install %{SOURCE8} $RPM_BUILD_ROOT%{_pixmapsdir} |
a2a8cff1 | 209 | |
99de6f42 | 210 | for a in es pl ; do |
267b57f9 | 211 | for b in man1 man8 ; do |
212 | install -d $RPM_BUILD_ROOT%{_mandir}/{$a,$a/$b} | |
213 | for c in man/$a/$b/* ; do | |
214 | install $c $RPM_BUILD_ROOT%{_mandir}/$a/$b | |
99de6f42 | 215 | done |
216 | done | |
217 | done | |
218 | ||
db2935bf | 219 | install contrib/{mc.sh,mc.csh} $RPM_BUILD_ROOT/etc/shrc.d |
b225fe80 | 220 | |
114638a2 | 221 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/*/man8/mcserv.8 |
aa2087ca | 222 | |
114638a2 JB |
223 | # fi_FI is currently (i.e. in 4.7.5.2) more complete |
224 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/fi | |
225 | mv -f $RPM_BUILD_ROOT%{_datadir}/locale/{fi_FI,fi} | |
226 | ||
aa2087ca | 227 | # unsupported |
228 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/it_IT | |
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) |
1659ad0a | 237 | %doc NEWS README doc/keybind-migration.txt |
f0858a92 | 238 | %config /etc/shrc.d/* |
4c158b5d | 239 | %attr(755,root,root) %{_bindir}/mc* |
8714df24 | 240 | %dir %{_libdir}/mc |
4c158b5d | 241 | %attr(755,root,root) %{_libdir}/mc/cons.saver |
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 | |
4c158b5d | 246 | %{_datadir}/mc/mc.* |
ef93830a | 247 | %{_datadir}/mc/skins |
8714df24 | 248 | %{_datadir}/mc/syntax |
8714df24 | 249 | |
4c158b5d TP |
250 | %dir %{_datadir}/mc/help |
251 | %{_datadir}/mc/help/mc.hlp | |
252 | %lang(es) %{_datadir}/mc/help/mc.hlp.es | |
253 | %lang(hu) %{_datadir}/mc/help/mc.hlp.hu | |
254 | %lang(it) %{_datadir}/mc/help/mc.hlp.it | |
255 | %lang(pl) %{_datadir}/mc/help/mc.hlp.pl | |
256 | %lang(ru) %{_datadir}/mc/help/mc.hlp.ru | |
257 | %lang(sr) %{_datadir}/mc/help/mc.hlp.sr | |
258 | %dir %{_datadir}/mc/hints | |
259 | %{_datadir}/mc/hints/mc.hint | |
260 | %lang(cs) %{_datadir}/mc/hints/mc.hint.cs | |
261 | %lang(es) %{_datadir}/mc/hints/mc.hint.es | |
262 | %lang(hu) %{_datadir}/mc/hints/mc.hint.hu | |
263 | %lang(it) %{_datadir}/mc/hints/mc.hint.it | |
264 | %lang(nl) %{_datadir}/mc/hints/mc.hint.nl | |
265 | %lang(pl) %{_datadir}/mc/hints/mc.hint.pl | |
266 | %lang(ru) %{_datadir}/mc/hints/mc.hint.ru | |
267 | %lang(sr) %{_datadir}/mc/hints/mc.hint.sr | |
268 | %lang(uk) %{_datadir}/mc/hints/mc.hint.uk | |
269 | %lang(zh) %{_datadir}/mc/hints/mc.hint.zh | |
e6bd752d | 270 | |
496038e0 TP |
271 | %dir %{_libdir}/mc/extfs.d |
272 | %{_libdir}/mc/extfs.d/README* | |
26aa770b | 273 | %if %{with perl_vfs} |
496038e0 TP |
274 | %attr(755,root,root) %{_libdir}/mc/extfs.d/a+ |
275 | %attr(755,root,root) %{_libdir}/mc/extfs.d/apt+ | |
276 | %attr(755,root,root) %{_libdir}/mc/extfs.d/deb* | |
277 | %attr(755,root,root) %{_libdir}/mc/extfs.d/dpkg+ | |
278 | %attr(755,root,root) %{_libdir}/mc/extfs.d/mailfs | |
279 | %attr(755,root,root) %{_libdir}/mc/extfs.d/patchfs | |
280 | %attr(755,root,root) %{_libdir}/mc/extfs.d/rpms+ | |
281 | %attr(755,root,root) %{_libdir}/mc/extfs.d/uzip | |
26aa770b | 282 | %endif |
496038e0 TP |
283 | %attr(755,root,root) %{_libdir}/mc/extfs.d/audio |
284 | %attr(755,root,root) %{_libdir}/mc/extfs.d/bpp | |
1659ad0a AM |
285 | %attr(755,root,root) %{_libdir}/mc/extfs.d/changesetfs |
286 | %attr(755,root,root) %{_libdir}/mc/extfs.d/gitfs+ | |
496038e0 TP |
287 | %attr(755,root,root) %{_libdir}/mc/extfs.d/hp48+ |
288 | %attr(755,root,root) %{_libdir}/mc/extfs.d/iso9660 | |
289 | %attr(755,root,root) %{_libdir}/mc/extfs.d/lslR | |
1659ad0a | 290 | %attr(755,root,root) %{_libdir}/mc/extfs.d/patchsetfs |
496038e0 TP |
291 | %attr(755,root,root) %{_libdir}/mc/extfs.d/rpm |
292 | %attr(755,root,root) %{_libdir}/mc/extfs.d/s3+ | |
293 | %attr(755,root,root) %{_libdir}/mc/extfs.d/trpm | |
294 | %attr(755,root,root) %{_libdir}/mc/extfs.d/u7z | |
295 | %attr(755,root,root) %{_libdir}/mc/extfs.d/uace | |
296 | %attr(755,root,root) %{_libdir}/mc/extfs.d/ualz | |
297 | %attr(755,root,root) %{_libdir}/mc/extfs.d/uar* | |
298 | %attr(755,root,root) %{_libdir}/mc/extfs.d/uc1541 | |
299 | %attr(755,root,root) %{_libdir}/mc/extfs.d/ucab | |
300 | %attr(755,root,root) %{_libdir}/mc/extfs.d/uha | |
301 | %attr(755,root,root) %{_libdir}/mc/extfs.d/ulha | |
302 | %attr(755,root,root) %{_libdir}/mc/extfs.d/urar | |
303 | %attr(755,root,root) %{_libdir}/mc/extfs.d/uzoo | |
3c1fd620 TP |
304 | %dir %{_libdir}/mc/fish |
305 | %{_libdir}/mc/fish/README.fish | |
306 | %attr(755,root,root) %{_libdir}/mc/fish/[a-z]* | |
c3652360 | 307 | %{_desktopdir}/mc.desktop |
308 | %{_pixmapsdir}/mc.png | |
06df6411 | 309 | |
fb0aa8ab | 310 | %{_mandir}/man1/* |
99de6f42 | 311 | %lang(es) %{_mandir}/es/man1/* |
e6bd752d AM |
312 | %lang(hu) %{_mandir}/hu/man1/* |
313 | %lang(it) %{_mandir}/it/man1/* | |
f0fc3ecc | 314 | %lang(pl) %{_mandir}/pl/man1/* |
e6bd752d | 315 | %lang(ru) %{_mandir}/ru/man1/* |
4341efe2 | 316 | %lang(sr) %{_mandir}/sr/man1/* |
3f46a95e | 317 | |
db2935bf | 318 | %dir %{_sysconfdir}/mc |
57af47f2 | 319 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mc/*.* |