X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=man-pages.spec;h=681aee84ec0a90045bc43fa61fbb03ffaac03027;hb=f21bff4aae8173a4bf2520683f9736e94b78462e;hp=7f4937d337dc17aaedcadb576244baa82650495f;hpb=1eef344c95a6b2fa007e792411efe6a9e63835c5;p=packages%2Fman-pages.git diff --git a/man-pages.spec b/man-pages.spec index 7f4937d..681aee8 100644 --- a/man-pages.spec +++ b/man-pages.spec @@ -1,3 +1,7 @@ +# +# Conditional build: +# _with_tars generate man-pages tars for other packages +# Summary: System manual pages from the Linux Documentation Project Summary(de): System-man-Seiten vom Linux Documentation Project Summary(es): Páginas de manual, del Proyecto de Documentación del Linux (LDP) @@ -5,76 +9,112 @@ Summary(fi): Suomenkieliset man-sivut Summary(fr): Pages man système du Projet de Documentation Linux Summary(it): Pagine di manuale Summary(pl): Podrêczniki systemowe z Linux Documentation Project +Summary(pt): Páginas de manual, do Projeto de Documentação do Linux (LDP) Summary(pt_BR): Páginas de manual, do Projeto de Documentação do Linux (LDP) Summary(ru): óÔÒÁÎÉÃÙ ÒÕËÏ×ÏÄÓÔ×Á ÉÚ ðÒÏÅËÔÁ äÏËÕÍÅÎÔÁÃÉÉ ÎÁ ìÉÎÕËÓ Summary(tr): Linux Belgeleme Projesinin sistem kýlavuz sayfalarý +Summary(uk): óÔÏÒ¦ÎËÉ ÍÁÎÕÁÌÕ (man) Ú Linux Documentation Project Name: man-pages -Version: 1.39 -Release: 2 -License: Distributable +Version: 1.63 +Release: 1 +License: distributable Group: Documentation -Group(de): Dokumentation -Group(es): Documentación -Group(pl): Dokumentacja -Group(pt): Documentação -Group(ru): äÏËÕÍÅÎÔÁÃÉÑ -%define cs_version 0.14 -%define da_version 0.1.1 -%define de_version 0.3 -%define es_version 1.28 -%define fi_version 0.1 -%define fr_version 0.9 -%define hu_version 2001_01_05 -%define id_version 20010914 -%define it_version 0.3.0 -%define ja_version 20010815 -%define ko_version 20010605 -%define pl_version 20010913 -%define pt_version 1.39 -%define ru_version 0.7 -%define zh_version 0.1 -Source0: ftp://ftp.win.tue.nl/pub/linux-local/manpages/%{name}-%{version}.tar.gz -Source1: ftp://ftp.muni.cz/pub/linux/people/petr_kolar/localization/man-pages-cs/%{name}-cs-%{cs_version}.tar.gz +%define cs_version 0.16 +%define da_version 0.1.1 +%define de_version 0.4 +%define es_version 1.28 +%define es_extra_version 0.8a +%define fi_version 0.1 +%define fr_base_version 1.58 +%define fr_version %{fr_base_version}.0 +%define hu_version 2001_01_05 +%define id_version 20011116 +%define it_version 0.3.4 +%define ja_version 20031115 +%define ko_version 20010901 +%define nl_version 0.13.3 +%define pl_version 20020828 +%define pt_version 1.39 +%define ru_version 0.7 +%define uk_version 0.1.1 +%define zh_version 1.4 +Source0: ftp://ftp.win.tue.nl/pub/home/aeb/linux-local/manpages/%{name}-%{version}.tar.gz +# Source0-md5: 235d9a3df5bc4eaf926622c5deec7a2a +# +# Source1: ftp://ftp.muni.cz/pub/linux/people/petr_kolar/localization/man-pages-cs/%{name}-cs-%{cs_version}.tar.gz +Source1: ftp://ftp.linux.cz/pub/localization/linux/czman/%{name}-cs-%{cs_version}.tar.gz +# Source1-md5: e8036794c1762804f2e242cc5b52001e +# # there is no LDP man page here, yet. -#Source2: http://www.sslug.dk/locale/man-sider/manpages-da-%{da_version}.tar.gz -Source3: http://www.infodrom.ffis.de/projects/manpages-de/download/manpages-de-%{de_version}.tar.gz +# Source2: http://www.sslug.dk/locale/man-sider/manpages-da-%{da_version}.tar.gz +Source3: http://www.infodrom.org/projects/manpages-de/download/manpages-de-%{de_version}.tar.gz +# Source3-md5: 6a2a1cd24b0bd61c4ab384324e707a95 Source4: http://www.ditec.um.es/~piernas/manpages-es/%{name}-es-%{es_version}.tar.gz -Source5: man-fi-%{fi_version}.tar.bz2 -#Source5: http://developer.bestlinux.net/man-fi/usr/man/RPMS/%{name}-fi-%{fi_version}-4.src.rpm -Source6: ftp://ftp.lip6.fr/pub/linux/french/docs/man-fr-%{fr_version}.tar.gz -#Source6: ftp://ftp.win.tue.nl/pub/home/aeb/linux-local/manpages/tr/%{name}-fr-%{fr_version}.tar.gz -Source7: http://www.kde.hu/mlp/man/man_hu_%{hu_version}.tar.gz +# Source4-md5: b58b76cdd2b2174ba216fa30e5d83518 +Source5: http://www.ditec.um.es/~piernas/manpages-es/%{name}-es-extra-%{es_extra_version}.tar.gz +# Source5-md5: 5827f41f77658df17f550b7f8e831432 +# extracted from http://developer.bestlinux.net/man-fi/usr/man/RPMS/%{name}-fi-%{fi_version}-4.src.rpm +Source6: http://www.mif.pg.gda.pl/homepages/ankry/man-pages/man-fi-%{fi_version}.tar.bz2 +# Source6-md5: 53dcf98b573c6e00c45eb91affca0a2e +# Source7: ftp://ftp.lip6.fr/pub/linux/french/docs/man-fr-%{fr_version}.tar.gz +Source7: http://perso.club-internet.fr/ccb/man/man-fr-%{fr_version}.tar.bz2 +# Source7-md5: 50c82c2114ccca1dcb691f4122b7b4ff +#Source8: http://www.kde.hu/mlp/man/man_hu_%{hu_version}.tar.gz +Source8: http://www.mif.pg.gda.pl/homepages/ankry/man-pages/man_hu_%{hu_version}.tar.gz +# Source8-md5: 8b94f02287672c5a0601c1ad422a8e07 +# # there is no LDP man page here, yet. -#Source8: man-pages-from-www-id-%{id_version}.tar.gz -#Source8: http://nakula.rvs.uni-bielefeld.de/made/my_project/ManPage/id-man.tar.bz2 -Source9: ftp://ftp.win.tue.nl/pub/home/aeb/linux-local/manpages/tr/%{name}-it-%{it_version}.tar.gz -Source10: ftp://metalab.unc.edu/pub/Linux/docs/LDP/man-pages/%{name}-ja-%{ja_version}.tar.gz -#Source10: http://www.linux.or.jp/JM/%{name}-ja-%{ja_version}.tar.bz2 -Source11: ftp://metalab.unc.edu/pub/Linux/docs/LDP/man-pages/%{name}-ko-%{ko_version}.tar.gz -Source12: ftp://ftp.win.tue.nl/pub/home/aeb/linux-local/manpages/tr/%{name}-nl.tar.gz -Source13: %{name}-pl-PTM-snapshot.%{pl_version}.tar.gz -Source14: ftp://ftp.win.tue.nl/pub/home/aeb/linux-local/manpages/tr/%{name}-%{pt_version}-pt_BR.tgz -Source15: http://alexm.here.ru/manpages-ru/download/manpages-ru-%{ru_version}.tar.gz -#Source16: http://www.cmpp.net/download/cman-%{zh_version}.tar.gz -Patch0: %{name}-iconv.patch -Patch1: %{name}-ctype.patch -Patch2: %{name}-localtime.patch +# based on http://nakula.rvs.uni-bielefeld.de/made/my_project/ManPage/ +# Source9: man-pages-from-www-id-%{id_version}.tar.gz +# available also as http:// +Source10: ftp://ftp.pluto.linux.it/pub/pluto/ildp/man/%{name}-it-%{it_version}.tar.gz +# Source10-md5: 4e072cafbd196654c925ff0a0dca2c8f +Source11: http://www.linux.or.jp/JM/%{name}-ja-%{ja_version}.tar.gz +# Source11-md5: 91290eab138a266b41f33a36a0cfd2a6 +# +# Source12: ftp://metalab.unc.edu/pub/Linux/docs/LDP/man-pages/%{name}-ko-%{ko_version}.tar.gz +Source12: http://download.kldp.net/man/%{name}-ko-%{ko_version}.tar.gz +# Source12-md5: e73c7999af103208e5497f939de764ca +Source13: ftp://ftp.nl.linux.org/pub/DOC-NL/manpages-nl/manpages-nl-%{nl_version}.tar.gz +# Source13-md5: b37b0216a87db7583e88ba87031a0b4a +Source14: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/PTM-snapshots/%{name}-pl-PTM-snapshot.%{pl_version}.tar.bz2 +# Source14-md5: 2ad83c91c1a568c1c5f40ba699077cd6 +Source15: ftp://ftp.win.tue.nl/pub/home/aeb/linux-local/manpages/tr/%{name}-%{pt_version}-pt_BR.tgz +# Source15-md5: 3f8db6dd6a7884b595e70f624ac93735 +Source16: http://alexm.here.ru/manpages-ru/download/manpages-ru-%{ru_version}.tar.gz +# Source16-md5: bfd5a8f20a12b994e19cfca0c4a21249 +# +# from ASP Linux +Source17: http://www.mif.pg.gda.pl/homepages/ankry/man-pages/man-pages-uk-%{uk_version}.tar.bz2 +# Source17-md5: a4f11eb6cdd2af4d57b967de868eb7fd +Source18: http://cmpp.linuxforum.net/download/man-pages-zh_CN-%{zh_version}.tar.gz +# Source18-md5: 2638da6c30a83b443064ca7353563a09 +Source50: %{name}-extra.tar.bz2 +# Source50-md5: 967e10b6b691f53885ffa01695657f79 +Source51: mbox.5 +Patch0: %{name}-localtime.patch BuildArch: noarch -BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -Autoreqprov: false +AutoReqProv: no Obsoletes: man-pages-cs Obsoletes: man-pages-de Obsoletes: man-pages-es Obsoletes: man-pages-fi Obsoletes: man-pages-fr Obsoletes: man-pages-hu +Obsoletes: manpages-hu Obsoletes: man-pages-it Obsoletes: man-pages-ja Obsoletes: man-pages-ko Obsoletes: man-pages-nl Obsoletes: man-pages-pl Obsoletes: man-pages-pt +Obsoletes: man-pages-pt_BR Obsoletes: man-pages-ru +Obsoletes: man-pages-ru-asp +Obsoletes: man-pages-uk +Obsoletes: man-pages-zh +Conflicts: attr-devel < 2.2.0-2 +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description A large collection of man pages covering programming APIs, file @@ -82,7 +122,7 @@ formats, protocols, etc. - section 1: user commands (intro only) - section 2: system calls -- section 3: libc calls +- section 3: libc calls (intro only) - section 4: devices (e.g., hd, sd) - section 5: file formats and protocols (e.g., wtmp, /etc/passwd, nfs) - section 6: games (intro only) @@ -95,7 +135,7 @@ Dateiformate, Protokolle, usw.. - section 1: Benutzerbefehle (nur intro) - section 2: Systemaufrufe -- section 3: libc-Aufrufe +- section 3: libc-Aufrufe (nur intro) - section 4: Geräte (z.B. hd, sd) - section 5: Dateiformate und Protokolle (z.B. wtmp, /etc/passwd, nfs) - section 6: Spiele (nur intro) @@ -108,7 +148,7 @@ APIs, formatos de archivos, protocolos, etc. - seción 1: comandos de usuario (solamente introducción) - seción 2: llamadas de sistema -- seción 3: llamadas libc +- seción 3: llamadas libc (solamente introducción) - seción 4: dispositivos (ej.: hd, sd) - seción 5: formatos de archivos y protocolos (ej: wtmp, /etc/passwd, nfs) @@ -127,9 +167,9 @@ Une large collection de pages de manuel du Project de Documentation Linux (LDP), traduites en Français. Les pages de manuel sont organisées en differentes sections : -- section 1: Commandes utilisateur +- section 1: Commandes utilisateur (intro seulement) - section 2: Appels système -- section 3: Appels de la Libc +- section 3: Appels de la Libc (intro seulement) - section 4: Périphériques (par ex. hd, sd) - section 5: Formats de fichiers et de protocoles (par ex. wtmp, /etc/passwd, nfs) @@ -149,20 +189,35 @@ opisuj - sekcja 1: komendy u¿ytkowników (tylko wstêp) - sekcja 2: wywo³ania systemowe -- sekcja 3: wywo³ania bibliotek +- sekcja 3: wywo³ania bibliotek (tylko wstêp) - sekcja 4: urz±dzenia (np., hd, sd) - sekcja 5: format plików i protoko³y (np., wtmp, /etc/passwd, nfs) - sekcja 6: gry (tylko wstêp) - sekcja 7: konwencje, makro-pakiety, itp. (np., nroff, ascii) - sekcja 8: administracja systemu (tylko wstêp) +%description -l pt +Uma larga coleção de páginas de manuais cobrindo programação APIs, +formatos de arquivos, protocolos, etc. + +- seção 1: comandos de usuário (somente introdução) +- seção 2: chamadas de sistema +- seção 3: chamadas libc (somente introdução) +- seção 4: dispositivos (ex.: hd, sd) +- seção 5: formatos de arquivos e protocolos (ex: wtmp, /etc/passwd, + nfs) +- seção 6: jogos (somente introdução) +- seção 7: convenções, pacotes de macros, etc. (ex: nroff, ascii) +- seção 8: administração de sistema (somente introdução) +- seção 9: kernel + %description -l pt_BR Uma larga coleção de páginas de manuais cobrindo programação APIs, formatos de arquivos, protocolos, etc. - seção 1: comandos de usuário (somente introdução) - seção 2: chamadas de sistema -- seção 3: chamadas libc +- seção 3: chamadas libc (somente introdução) - seção 4: dispositivos (ex.: hd, sd) - seção 5: formatos de arquivos e protocolos (ex: wtmp, /etc/passwd, nfs) @@ -177,9 +232,9 @@ formatos de arquivos, protocolos, etc. - ÓÅËÃÉÑ 1: ËÏÍÁÎÄ ÐÏÌØÚÏ×ÁÔÅÌÑ (ÔÏÌØËÏ ××ÅÄÅÎÉÅ) - ÓÅËÃÉÑ 2: ÓÉÓÔÅÍÎÙÅ ×ÙÚÏ×Ù -- ÓÅËÃÉÑ 3: ÆÕÎËÃÉÉ ÂÉÂÌÉÏÔÅËÉ ÑÚÙËÁ C +- ÓÅËÃÉÑ 3: ÆÕÎËÃÉÉ ÂÉÂÌÉÏÔÅËÉ ÑÚÙËÁ C (ÔÏÌØËÏ ××ÅÄÅÎÉÅ) - ÓÅËÃÉÑ 4: ÕÓÔÒÏÊÓÔ×Á (ÎÁÐÒÉÍÅÒ, hd, sd) -- ÓÅËÃÉÑ 4: ÆÏÒÍÁÔÙ ÆÁÊÌÏ× É ÐÒÏÔÏËÏÌÙ (ÎÁÐÒÉÍÅÒ, wtmp, /etc/passwd, +- ÓÅËÃÉÑ 5: ÆÏÒÍÁÔÙ ÆÁÊÌÏ× É ÐÒÏÔÏËÏÌÙ (ÎÁÐÒÉÍÅÒ, wtmp, /etc/passwd, nfs) - ÓÅËÃÉÑ 6: ÉÇÒÙ (ÔÏÌØËÏ ××ÅÄÅÎÉÅ) - ÓÅËÃÉÑ 7: ÓÏÇÌÁÛÅÎÉÑ, ÍÁËÒÏ-ÐÁËÅÔÙ, É Ô. Ð. (ÎÁÐÒÉÍÅÒ, nroff, ascii) @@ -189,25 +244,37 @@ formatos de arquivos, protocolos, etc. Programlama arayüzlerini, dosya formatlarýný, protokolleri vs. kapsayan, geniþ bir kýlavuz sayfalarý derlemesi. +%description -l uk +÷ÅÌÉËÉÊ ÎÁÂ¦Ò ÓÔÏÒ¦ÎÏË ÍÁÎÕÁÌÕ (ÄÏËÕÍÅÎÔÁæ§) Ú Linux Documentation +Project (LDP). óÔÏÒ¦ÎËÉ ÏÒÇÁΦÚÏ×ÁΦ Õ ÔÁ˦ ÓÅËæ§: óÅËÃ¦Ñ 1, ËÏÍÁÎÄÉ +ËÏÒÉÓÔÕ×ÁÞÁ (Ô¦ÌØËÉ ×ÓÔÕÐ); óÅËÃ¦Ñ 2, ÓÉÓÔÅÍΦ ×ÉËÌÉËÉ; óÅËÃ¦Ñ 3, +×ÉËÌÉËÉ libc; óÅËÃ¦Ñ 4, ÐÒÉÓÔÒϧ (ÎÁÐÒÉËÌÁÄ, hd, sd); óÅËÃ¦Ñ 5, +ÆÏÒÍÁÔÉ ÆÁÊÌ¦× ÔÁ ÐÒÏÔÏËÏÌÉ (ÎÁÐÒÉËÌÁÄ, wtmp, /etc/passwd, nfs); +óÅËÃ¦Ñ 6, ¦ÇÒÉ (Ô¦ÌØËÉ ×ÓÔÕÐ); óÅËÃ¦Ñ 7, ÕÇÏÄÉ, ÍÁËÒÏÐÁËÅÔÉ ¦ Ô.¦. +(ÎÁÐÒÉËÌÁÄ, nroff, ascii); óÅËÃ¦Ñ 8, ÓÉÓÔÅÍÎÅ ÁÄͦΦÓÔÒÕ×ÁÎÎÑ (Ô¦ÌØËÉ +×ÓÔÕÐ). + %prep -%setup -q -a1 -a3 -a4 -a5 -a6 -a9 -a10 -a12 -a13 -a14 -a15 +#%setup -q -a1 -a3 -a4 -a5 -a6 -a7 -a10 -a11 -a13 -a14 -a15 -a16 -a17 -a18 +%setup -q -a1 -a3 -a4 -a5 -a6 -a7 -a11 -a13 -a14 -a15 -a16 -a17 -a18 %patch0 -p1 -%patch1 -p1 -%patch2 -p1 +rm -f cman/man*/*.html -mkdir hu ko -tar xzf %{SOURCE7} -C hu -tar xzf %{SOURCE11} -C ko +mkdir hu it ko +tar xzf %{SOURCE8} -C hu +tar xzf %{SOURCE10} -C it +tar xzf %{SOURCE12} -C ko %build rm -f man1/{chgrp,chmod,chown,cp,dd,df,dircolors,du,install,diff}.1 -rm -f man1/{ln,ls,mkdir,mkfifo,mknod,mv,rm,rmdir,time,touch,dir,vdir}.1 +rm -f man1/{ldd,ln,ls,mkdir,mkfifo,mknod,mv,rm,rmdir,time,touch,dir,vdir}.1 rm -f man1/COPYING -rm -f man2/{capget,capset}.2 -rm -f man4/console.4 -rm -f man5/{locale,nsswitch.conf,passwd,tzfile}.5 -rm -f man7/{ascii,charsets,iso*,latin*,locale,unicode,utf*}.7 -rm -f man8/{sync,tzselect,zdump,zic,ldconfig}.8 +rm -f man2/{capget,capset}.2 +find man3 -type f | grep -v 'intro\.3' | xargs rm -f +rm -f man4/{console,console_ioctl}.4 +rm -f man5/{ftpusers,locale,nscd.conf,nsswitch.conf,passwd,tzfile}.5 +rm -f man7/{ascii,charsets,iso*,koi8-r,latin*,locale,unicode,utf*}.7 +rm -f man8/{ld.so,ldconfig,nscd,sync,tzselect,zdump,zic}.8 rm -f man*/README* @@ -216,11 +283,13 @@ rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_mandir}/man{1,2,3,4,5,6,7,8} for n in man{1,2,3,4,5,6,7,8}/*; do + if head -1 $n| grep '^\.so' >/dev/null 2>&1 ; then + sed 's,\.so man./,.so ,' < $n > $n. + mv $n. $n + fi install $n $RPM_BUILD_ROOT%{_mandir}/$n done -# rm -f $RPM_BUILD_ROOT%{_mandir}/man*/README* - install -d $RPM_BUILD_ROOT%{_mandir}/cs/man{1,2,3,4,5,6,7,8} install -d $RPM_BUILD_ROOT%{_mandir}/de/man{1,2,3,4,5,6,7,8} install -d $RPM_BUILD_ROOT%{_mandir}/es/man{1,2,3,4,5,6,7,8} @@ -233,7 +302,11 @@ install -d $RPM_BUILD_ROOT%{_mandir}/ko/man{1,2,3,4,5,6,7,8} install -d $RPM_BUILD_ROOT%{_mandir}/nl/man{1,2,3,4,5,6,7,8} install -d $RPM_BUILD_ROOT%{_mandir}/pl/man{1,2,3,4,5,6,7,8} install -d $RPM_BUILD_ROOT%{_mandir}/pt/man{1,2,3,4,5,6,7,8} +install -d $RPM_BUILD_ROOT%{_mandir}/pt_BR/man{1,2,3,4,5,6,7,8} install -d $RPM_BUILD_ROOT%{_mandir}/ru/man{1,2,3,4,5,6,7,8} +install -d $RPM_BUILD_ROOT%{_mandir}/uk/man{1,2,3,4,5,6,7,8} +install -d $RPM_BUILD_ROOT%{_mandir}/zh_CN/man{1,2,3,4,5,6,7,8} +install -d $RPM_BUILD_ROOT%{_mandir}/zh_TW/man{1,2,3,4,5,6,7,8} for n in man{1,2,3,4,5,6,7,8}/*; do if [ -f %{name}-cs-%{cs_version}/$n ]; then install %{name}-cs-%{cs_version}/$n $RPM_BUILD_ROOT%{_mandir}/cs/$n @@ -243,18 +316,24 @@ for n in man{1,2,3,4,5,6,7,8}/*; do fi if [ -f %{name}-es-%{es_version}/$n ]; then install %{name}-es-%{es_version}/$n $RPM_BUILD_ROOT%{_mandir}/es/$n + elif [ -f %{name}-es-extra-%{es_extra_version}/$n ]; then + install %{name}-es-extra-%{es_extra_version}/$n $RPM_BUILD_ROOT%{_mandir}/es/$n fi if [ -f manpages-fi/$n ]; then install manpages-fi/$n $RPM_BUILD_ROOT%{_mandir}/fi/$n fi - if [ -f man-fr-%{fr_version}/$n ]; then - install man-fr-%{fr_version}/$n $RPM_BUILD_ROOT%{_mandir}/fr/$n + if [ -f man-fr-%{fr_base_version}/$n ]; then + install man-fr-%{fr_base_version}/$n $RPM_BUILD_ROOT%{_mandir}/fr/$n +# if [ -f man-fr/$n ]; then +# install man-fr/$n $RPM_BUILD_ROOT%{_mandir}/fr/$n fi if [ -f hu/$n ]; then install hu/$n $RPM_BUILD_ROOT%{_mandir}/hu/$n fi - if [ -f %{name}-it-%{it_version}/$n ]; then - install %{name}-it-%{it_version}/$n $RPM_BUILD_ROOT%{_mandir}/it/$n +# if [ -f %{name}-it-%{it_version}/$n ]; then +# install %{name}-it-%{it_version}/$n $RPM_BUILD_ROOT%{_mandir}/it/$n + if [ -f it/$n ]; then + install it/$n $RPM_BUILD_ROOT%{_mandir}/it/$n fi if [ -f %{name}-ja-%{ja_version}/manual/LDP_man-pages/$n ]; then install %{name}-ja-%{ja_version}/manual/LDP_man-pages/$n $RPM_BUILD_ROOT%{_mandir}/ja/$n @@ -262,18 +341,45 @@ for n in man{1,2,3,4,5,6,7,8}/*; do if [ -f ko/$n ]; then install ko/$n $RPM_BUILD_ROOT%{_mandir}/ko/$n fi - if [ -f nl/$n ]; then - install nl/$n $RPM_BUILD_ROOT%{_mandir}/nl/$n + if [ -f manpages-nl-%{nl_version}/$n ]; then + install manpages-nl-%{nl_version}/$n $RPM_BUILD_ROOT%{_mandir}/nl/$n fi if [ -f pl_PL/$n ]; then install pl_PL/$n $RPM_BUILD_ROOT%{_mandir}/pl/$n fi + if [ -f %{name}-%{pt_version}-pt_BR/$n ]; then + install %{name}-%{pt_version}-pt_BR/$n $RPM_BUILD_ROOT%{_mandir}/pt_BR/$n + fi if [ -f %{name}-%{pt_version}-pt_BR/$n ]; then install %{name}-%{pt_version}-pt_BR/$n $RPM_BUILD_ROOT%{_mandir}/pt/$n fi if [ -f manpages-ru-%{ru_version}/$n ]; then install manpages-ru-%{ru_version}/$n $RPM_BUILD_ROOT%{_mandir}/ru/$n fi + if [ -f %{name}-uk-%{uk_version}/$n ]; then + install %{name}-uk-%{uk_version}/$n $RPM_BUILD_ROOT%{_mandir}/uk/$n + fi +# if [ -f cman/$n ]; then +# install cman/$n $RPM_BUILD_ROOT%{_mandir}/zh_CN/$n + if [ -f man-pages-zh_CN-%{zh_version}/src/$n ]; then + # these man-pages are in UTF-8 +# iconv -f UTF8 -t GB2312 man-pages-zh_CN-%{zh_version}/src/$n > $RPM_BUILD_ROOT%{_mandir}/zh_CN/$n + install man-pages-zh_CN-%{zh_version}/src/$n $RPM_BUILD_ROOT%{_mandir}/zh_CN/$n +# Doesn't work. Bad encoding ? +# iconv -f GB2312 -t Big5 cman/$n > $RPM_BUILD_ROOT%{_mandir}/zh_TW/$n + fi +done +bzip2 -dc %{SOURCE50} | tar xf - -C $RPM_BUILD_ROOT%{_mandir} + +install %{SOURCE51} $RPM_BUILD_ROOT%{_mandir}/man5/mbox.5 + +for k in $RPM_BUILD_ROOT%{_mandir}/{cs,de,es,fi,fr,hu,it,ja,ko,nl,pl,pt,pt_BR,ru,uk,zh_CN,zh_TW} ; do + for n in $k/man{1,2,3,4,5,6,7,8}/*; do + if head -1 $n| grep '^\.so' >/dev/null 2>&1 ; then + sed 's,\.so man./,.so ,' < $n > $n. + mv $n. $n + fi + done done %clean @@ -294,4 +400,8 @@ rm -rf $RPM_BUILD_ROOT %lang(nl) %{_mandir}/nl/man*/* %lang(pl) %{_mandir}/pl/man*/* %lang(pt) %{_mandir}/pt/man*/* +%lang(pt_BR) %{_mandir}/pt_BR/man*/* %lang(ru) %{_mandir}/ru/man*/* +%lang(uk) %{_mandir}/uk/man*/* +%lang(zh_CN) %{_mandir}/zh_CN/man*/* +#%lang(zh_TW) %{_mandir}/zh_TW/man*/*