]> git.pld-linux.org Git - packages/man-pages.git/blobdiff - man-pages.spec
- up to 2.42
[packages/man-pages.git] / man-pages.spec
index e05e41e78e155d73e23bea1f38ba3ca7f8184d15..2b87948061419af25ed527f42c20eafe8187e256 100644 (file)
@@ -1,6 +1,6 @@
 #
 # Conditional build:
-# _with_tars         generate man-pages tars for other packages
+%bcond_with    tars    # generate man-pages tars for other packages [not done yet]
 #
 Summary:       System manual pages from the Linux Documentation Project
 Summary(de):   System-man-Seiten vom Linux Documentation Project
@@ -15,84 +15,92 @@ Summary(ru):        
 Summary(tr):   Linux Belgeleme Projesinin sistem kýlavuz sayfalarý
 Summary(uk):   óÔÏÒ¦ÎËÉ ÍÁÎÕÁÌÕ (man) Ú Linux Documentation Project
 Name:          man-pages
-Version:       1.63
-Release:       0.1
+Version:       2.42
+Release:       1
 License:       distributable
 Group:         Documentation
 %define                cs_version              0.16
 %define                da_version              0.1.1
 %define                de_version              0.4
-%define                es_version              1.28
+%define                es_version              1.55
 %define                es_extra_version        0.8a
-%define                fi_version              0.1
-%define                fr_version              1.58.0
-%define                hu_version              2001_01_05
+%define                fi_version              0.2
+%define                fr_version              2.39.0
+%define                hu_version              20010119
 %define                id_version              20011116
-%define                it_version              0.3.4
-%define                ja_version              20031115
-%define                ko_version              20010901
+%define                it_version              2.34
+%define                ja_version              20060815
+%define                ko_version              20050219
 %define                nl_version              0.13.3
-%define                pl_version              20020828
+%define                pl_version              20051105
 %define                pt_version              1.39
-%define                ru_version              0.7
-%define                uk_version              0.1.1
-%define                zh_version              1.4
+%define                ro_version              0.2
+#%%define      ru_version              0.98
+%define                ru_asp_version          1.4
+%define                tr_version              1.0.3
+%define                zh_version              1.5
 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
+# Source0-md5: 9e9ca369c2686014eba5db9cf05cb264
 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
+# there is no LDP man page here, yet - but include it in sources for completeness
+Source2:       http://www.sslug.dk/locale/man-sider/manpages-da-%{da_version}.tar.gz
+# Source2-md5: d12ba0481d824c28a8b7d6b73e20d7c0
 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
-# Source4-md5: b58b76cdd2b2174ba216fa30e5d83518
+Source4:       http://www.ditec.um.es/~piernas/manpages-es/%{name}-es-%{es_version}.tar.bz2
+# Source4-md5: b71f701dcae827f2f5e4e848c66321fc
 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.
-# based on http://nakula.rvs.uni-bielefeld.de/made/my_project/ManPage/
-# Source9:     man-pages-from-www-id-%{id_version}.tar.gz
+# extracted from http://www.ftp.funet.fi/index/sotlinux/bestlinux-2000R3/BL_2000_R3_FINAL/update/Finnish/man-pages-fi-0.2-1.src.rpm
+# (despite archive filename it's 0.2 version)
+Source6:       man-fi-0.1.tar.bz2
+# Source6-md5: bb266d3797cdf71bfbe1da190196f455
+Source7:       http://manpagesfr.free.fr/download/man-pages-fr-%{fr_version}.tar.bz2
+# Source7-md5: 7e9ecdd134703e8172107124f1f3fec4
+#Source8:      http://download.uhulinux.hu/sources/man-pages-hu/man_hu_%{hu_version}.tar.gz (older)
+Source8:       http://ftp.debian.org/debian/pool/main/m/manpages-hu/manpages-hu_%{hu_version}.orig.tar.gz
+# Source8-md5: 742b682c5237a1e370b28f363826b2d5
+# there is no LDP man page here, yet, but included for completeness
+# based on http://nakula.rvs.uni-bielefeld.de/made/my_project/ManPage/ (dead now)
+Source9:       http://www.mif.pg.gda.pl/homepages/ankry/man-pages/man-pages-from-www-id-%{id_version}.tar.gz
+# Source9-md5: 34a69de42ec4ae8180b947f8777a3e7a
 # available also as http://
 Source10:      ftp://ftp.pluto.linux.it/pub/pluto/ildp/man/%{name}-it-%{it_version}.tar.gz
-# Source10-md5:        4e072cafbd196654c925ff0a0dca2c8f
+# Source10-md5:        259868d64ee589828b4cc43e8769507b
 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
+# Source11-md5:        0d5f64ddaf4ee862d1a03c72acc20c15
+Source12:      http://download.kldp.net/man/man-pages-ko/%{ko_version}/%{name}-ko-%{ko_version}.tar.gz
+# Source12-md5:        e31dc6a51c02436371373dedaeeeacab
 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
+#Source14:     http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/PTM-snapshots/%{name}-pl-PTM-snapshot.%{pl_version}.tar.bz2
+Source14:      %{name}-pl-PTM-snapshot.%{pl_version}.tar.bz2
+# Source14-md5:        b9b5751fcde4c36022850d0e5a4757d3
+Source15:      ftp://ftp.win.tue.nl/pub/home/aeb/linux-local/manpages/tr/%{name}-pt_BR-%{pt_version}.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
+# no LDP man pages yet
+Source16:      http://www.rolix.org/man/arhiva/man-pages-ro-%{ro_version}.tar.gz
+# Source16-md5:        ac5b2c970a31cb721e068ff80e5bd466
+#Source17:     http://www.linuxshare.ru/projects/trans/manpages-ru-%{ru_version}.tar.bz2
+# ASP-linux have more up-to-date manpages (but 0.98 contains some updated pages)
+Source17:      http://www.mif.pg.gda.pl/homepages/ankry/man-pages/manpages-ru-asp-%{ru_asp_version}.tar.bz2
+# Source17-md5:        fffb27648417c8dd551e2a4403eefc64
+Source18:      http://dl.sourceforge.net/belgeler/man-pages-tr-%{tr_version}.tar.gz
+# Source18-md5:        903c7b22a87961842dec8f4f1adeeaf3
+Source19:      http://www.linux.org.ua/twiki/pub/Projects/ManUk/man-pages-uk_UA.alfa.tar.gz
+# Source19-md5:        89576c5b51bb83c8bfa8bda794b96e21
+#Source20:     http://cmpp.linuxforum.net/download/man-pages-zh_CN-%{zh_version}.tar.gz
+Source20:      http://download.sf.linuxforum.net/cmpp/man-pages-zh_CN-%{zh_version}.tar.gz
+# Source20-md5:        edfe517621579520cf7451088ab126ea
 Source50:      %{name}-extra.tar.bz2
-# Source50-md5:        967e10b6b691f53885ffa01695657f79
-Source51:      mbox.5
+# NoSource50-md5:      ea9f180127076c37f274639cfb286bc3
+Source100:     %{name}-tars.list
 Patch0:                %{name}-localtime.patch
-BuildArch:     noarch
+Patch1:                %{name}-zh_fixes.patch
+Patch2:                %{name}-misc.patch
+Patch3:                %{name}-extra.patch
+BuildRequires: sed >= 4.0
 AutoReqProv:   no
 Obsoletes:     man-pages-cs
 Obsoletes:     man-pages-de
@@ -113,6 +121,9 @@ Obsoletes:  man-pages-ru-asp
 Obsoletes:     man-pages-uk
 Obsoletes:     man-pages-zh
 Conflicts:     attr-devel < 2.2.0-2
+Conflicts:     kbd < 1.12-9
+Conflicts:     libcap < 1:1.10-5
+BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -154,7 +165,6 @@ APIs, formatos de archivos, protocolos, etc.
 - seción 6: juegos (solamente introducción)
 - seción 7: convenciones, paquetes de macros, etc. (ej: nroff, ascii)
 - seción 8: administración de sistema (solamente introducción)
-- seción 9: kernel
 
 %description -l fi
 Kokoelma man-sivujen käännöksiä suomenkielelle. Sivuja on mukana
@@ -175,7 +185,6 @@ organis
 - section 6: Jeux (intro seulement)
 - section 7: Conventions, macro packages, etc. (par ex. nroff, ascii)
 - section 8: Administration système (intro seulement)
-- section 9: Routines du noyau
 
 %description -l it
 Traduzioni italiane delle pagine di manuale per Linux: questo
@@ -186,7 +195,7 @@ altre pagine di uso comune. ATTENZIONE: alcune pagine sono obsolete!
 Pakiet ten zawiera du¿± kolekcjê podrêczników ekranowych (man pages),
 opisuj±cych format plików, protoko³y itp.
 
-- sekcja 1: komendy u¿ytkowników (tylko wstêp)
+- sekcja 1: polecenia u¿ytkowników (tylko wstêp)
 - sekcja 2: wywo³ania systemowe
 - sekcja 3: wywo³ania bibliotek (tylko wstêp)
 - sekcja 4: urz±dzenia (np., hd, sd)
@@ -208,7 +217,6 @@ formatos de arquivos, protocolos, etc.
 - 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,
@@ -223,7 +231,6 @@ formatos de arquivos, protocolos, etc.
 - 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 ru
 îÅÂÏÌØÛÁÑ ËÏÌÌÅËÃÉÑ ÓÔÒÁÎÉàÒÕËÏ×ÏÄÓÔ×Á ÉÚ ðÒÏÅËÔÁ äÏËÕÍÅÎÔÁÃÉÉ ÎÁ
@@ -253,126 +260,210 @@ Project (LDP). 
 (ÎÁÐÒÉËÌÁÄ, nroff, ascii); óÅËæѠ8, ÓÉÓÔÅÍÎÅ ÁÄͦΦÓÔÒÕ×ÁÎÎÑ (Ô¦ÌØËÉ
 ×ÓÔÕÐ).
 
+%package posix
+Summary:       POSIX manual pages from the Linux Documentation Project
+Summary(de):   POSIX-man-Seiten vom Linux Documentation Project
+Summary(pl):   Podrêczniki systemowe z Linux Documentation Project dotycz±ce POSIX
+Group:         Documentation
+
+%description posix
+Part of POSIX 1003.1-2003 in man pages format.
+
+%description posix -l pl
+Fragmenty POSIX 1003.1-2003 w postaci stron podrêcznika systemowego.
+
 %prep
-#%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
+%setup -q -a1 -a2 -a3 -a4 -a5 -a6 -a7 -a8 -a9 -a10 -a11 -a13 -a14 -a15 -a16 -a17 -a18 -a19 -a20
 %patch0 -p1
-rm -f cman/man*/*.html
+%patch1 -p0
 
-mkdir hu it ko
-tar xzf %{SOURCE8} -C hu
-tar xzf %{SOURCE10} -C it
+mkdir ko
 tar xzf %{SOURCE12} -C ko
 
-%build
-rm -f man1/{chgrp,chmod,chown,cp,dd,df,dircolors,du,install,diff}.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
-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
+find man-pages-tr-%{tr_version} -name '*.gz' | xargs gzip -d
 
-rm -f man*/README*
+# unify trees for easier processing
+mv -f man-pages-%{pt_version}-pt_BR pt_BR
+mv -f man-pages-cs-%{cs_version} cs
+# replace symlinks by .so pointers
+for l in `find cs -type l` ; do
+       t=`readlink "$l"`
+       rm -f "$l"
+       echo ".so $t" > "$l"
+done
+mv -f manpages-da-%{da_version} da
+install -d da/man1
+mv -f da/*.1 da/man1
+mv -f manpages-de-%{de_version} de
+mv -f man-pages-es-%{es_version} es
+# already in main es
+rm -f man-pages-es-extra-%{es_extra_version}/man3/dl*.3
+rm -f man-pages-es-extra-%{es_extra_version}/man5/{acct,host.conf,resolv.conf,resolver}.5
+rm -f man-pages-es-extra-%{es_extra_version}/man8/ld.so.8
+for f in 1 2 4 5 6 7 8 ; do
+       mv -i man-pages-es-extra-%{es_extra_version}/man${f}/* es/man${f}
+done
+mv -f manpages-fi fi
+mv -f man-pages-fr-%{fr_version} fr
+mv -f manpages-hu-%{hu_version}.orig/usr/share/man/hu hu
+mv -f man-pages-it-%{it_version} it
+mv -f man-pages-ja-%{ja_version}/manual/LDP_man-pages ja
+# duplicates of LDP man pages
+rm -rf man-pages-ja-%{ja_version}/manual/{gnumaniak,ld.so,modutils/man2,glibc-linuxthreads/man3,netkit/{man3/{daemon,err,login}.3,man5/ftpusers.5},bind/{man5/resolver.5,man7/mailaddr.7},util-linux/man1/tailf.1}
+# shadow manuals already in shadow package
+rm -rf man-pages-ja-%{ja_version}/manual/shadow
+# we have man not man-db
+rm -rf man-pages-ja-%{ja_version}/manual/man-db
+# dhcp 3 not dhcp2
+rm -rf man-pages-ja-%{ja_version}/manual/dhcp2
+# nfs-utils not nfs-server
+rm -rf man-pages-ja-%{ja_version}/manual/nfs-server
+# ypbind-mt not ypbind
+rm -rf man-pages-ja-%{ja_version}/manual/ypbind
+# we use: net-tools/hostname, util-linux/{kill,write}, SysVinit/{last,mesg,wall,halt,reboot,shutdown}, textutils/od, quota/rquotad
+rm -f man-pages-ja-%{ja_version}/manual/{GNU_sh-utils/man1/hostname.1,procps/man1/kill.1,util-linux/man1/{last,mesg,od,wall}.1,netkit/man1/write.1,nfs-utils/man8/rquotad.8,util-linux/man8/{halt,reboot,shutdown}.8}
+# following modutils changes
+for f in man-pages-ja-%{ja_version}/manual/modutils/man8/{depmod,insmod,lsmod,modinfo,modprobe,rmmod} ; do
+       mv -f ${f}.8 ${f}.modutils.8
+done
+# avoid filename conflict
+mv -f man-pages-ja-%{ja_version}/manual/netkit/man8/ftpd.{8,8n}
+for f in 1 3 4 5 6 7 8 ; do
+       mv -i man-pages-ja-%{ja_version}/manual/*/man${f}/* ja/man${f}
+done
+mv -f manpages-nl-%{nl_version} nl
+mv -f pl_PL pl
+mv -f man-ro ro
+mv -f manpages-ru-asp-%{ru_asp_version} ru
+mv -f man-pages-tr-%{tr_version}/tr tr
+mv -f man-pages-uk_UA.alfa uk
+mv -f man-pages-zh_CN-%{zh_version}/src zh_CN
+find zh_CN -name CVS -o -name '*.orig' -o -name '*~' | xargs rm -rf
+# would go in big5 or gb18030, but not gb2312
+rm -f zh_CN/man1/perltw.1
+# would go in gb18030, but not gb2312
+rm -f zh_CN/man8/{chat,printcap}.8
 
-%install
-rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_mandir}/man{1,2,3,4,5,6,7,8}
+# these man-pages are in UTF-8
+for f in zh_CN/man?/* ; do
+       iconv -f UTF8 -t GB2312 $f > ${f}.tmp
+       mv -f ${f}.tmp $f
+done
+
+mv -f cs/man8/at.1 cs/man1
+# unify name
+mv -f de/man7/{iso_8859_1,iso_8859-1}.7
+mv -f es/man4/magic.4 es/man5/magic.5
+mv -f es/man8/sync.8 es/man1/sync.1
+mv -f fr/man8/sync.8 fr/man1/sync.1
+mv -f hu/man1/gpm.1 hu/man8/gpm.8
+# man1/sync.1 already exists
+rm -f hu/man8/sync.8
+# unify name + fix infinite loop
+mv -f it/man7/{iso_8859-1,tmp}.7
+mv -f it/man7/{iso_8859_1,iso_8859-1}.7
+mv -f it/man7/{tmp,iso_8859_1}.7
+# non-existing target
+rm -f it/man7/latin.2
+mv -f ja/man4/magic.4 ja/man5/magic.5
+mv -f ja/man8/nslookup.8 ja/man1/nslookup.1
+mv -f ja/man8/sync.8 ja/man1/sync.1
+mv -f ko/man8/sync.8 ko/man1/sync.1
+# filename typo?
+mv -f pl/man5/{at_acces,at_access}.5
+# man1/sync.1 already exists
+rm -f pl/man8/sync.8
+mv -f pt_BR/man8/sync.8 pt_BR/man1/sync.1
+mv -f ru/man8/sync.8 ru/man1/sync.1
+# man1/sync.1 already exists
+rm -f zh_CN/man8/sync.8
+
+%patch2 -p1
+
+bzip2 -dc %{SOURCE50} | tar xf -
+%patch3 -p0
+
+# patching creates backups
+find . '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -rf
+
+# cleanup
+rm -f man1/COPYING
+rm -f man*/README*
 
-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
+for n in man{1,2,3,4,5,6,7,8,0p,1p,3p}/* */man{1,2,3,4,5,6,7,8,9}/* ; do
+       x=`echo $n | sed -e 's,^.*man\([^/]\)/.*,\1,'`
+       if head -n 1 $n| grep "^\.so man$x/" >/dev/null 2>&1 ; then
+               sed -i -e 's,\.so man./,.so ,' $n
        fi
-       install $n $RPM_BUILD_ROOT%{_mandir}/$n
 done
 
-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}
-install -d $RPM_BUILD_ROOT%{_mandir}/fi/man{1,2,3,4,5,6,7,8}
-install -d $RPM_BUILD_ROOT%{_mandir}/fr/man{1,2,3,4,5,6,7,8}
-install -d $RPM_BUILD_ROOT%{_mandir}/hu/man{1,2,3,4,5,6,7,8}
-install -d $RPM_BUILD_ROOT%{_mandir}/it/man{1,2,3,4,5,6,7,8}
-install -d $RPM_BUILD_ROOT%{_mandir}/ja/man{1,2,3,4,5,6,7,8}
-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
-       fi
-       if [ -f manpages-de-%{de_version}/$n ]; then
-               install manpages-de-%{de_version}/$n $RPM_BUILD_ROOT%{_mandir}/de/$n
-       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/$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 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
-       fi
-       if [ -f ko/$n ]; then
-               install ko/$n $RPM_BUILD_ROOT%{_mandir}/ko/$n
-       fi
-       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
+ln -sf pt_BR pt
+
+# these belong to coreutils (sync is man1 BTW)
+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,touch,dir,vdir}.1
+rm -f man8/sync.8
+# time
+rm -f man1/time.1
+# ftp servers
+rm -f man5/ftpusers.5
+
+%if %{with tars}
+package=NONE
+while read line ; do
+       if echo $line | grep -q '^\[.\+\]$' ; then
+               package=`echo $line | sed -e 's/^\[//;s/\]$//;'`
+       else
+               if [ -f "$line" ]; then
+                       echo "$line" >> ${package}-man.list
+               fi
+               # omit pt_BR here, package them as pt
+               for l in cs da de es fi fr hu id it ja ko nl pl pt ru tr uk zh_CN ; do
+                       if [ -f "$l/$line" ]; then
+                               echo "$l/$line" >> ${package}-man.list
+                       fi
+               done
        fi
-       if [ -f cman/$n ]; then
-               install cman/$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
+done < %{SOURCE100}
+for l in *-man.list ; do
+       t=`basename $l .list`
+       if [ -f README.${t}-pages ]; then
+               echo "README.${t}-pages" >> "$l"
        fi
+       tar cjf %{_sourcedir}/${t}-pages.tar.bz2 --files-from "$l"
+       grep '^man' "$l" | xargs rm -f
 done
-bzip2 -dc %{SOURCE50} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
+%else
+# glibc
+find man3 -type f | grep -v 'intro\.3' | xargs rm -f
+rm -f man1/ldd.1
+rm -f man5/{locale,nscd.conf,nsswitch.conf,tzfile}.5
+rm -f man7/{ascii,charsets,iso*,koi8-r,latin*,locale,unicode,utf*}.7
+rm -f man8/{ld.so,ldconfig,nscd,tzselect,zdump,zic}.8
+rm -f */man1/ldd.1 */man8/sln.8 */man1/iconv.1
+%endif
 
-install %{SOURCE51} $RPM_BUILD_ROOT%{_mandir}/man5/mbox.5
+# shadow (but not pwdutils!); shadow(5) is missing in pwdutils too
+rm -f man5/passwd.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
+rm -f man1/{i,}gawk.1
+rm -f man1/{i,}gawk.1
+rm -f {it,ja,pl}/man1/{i,}gawk.1
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_mandir}/man{1,2,3,4,5,6,7,8,0p,1p,3p}
+
+for n in man{1,2,3,4,5,6,7,8,0p,1p,3p}/*; do
+       install $n $RPM_BUILD_ROOT%{_mandir}/$n
+done
+
+# omit pt_BR here, package them as pt
+for l in cs da de es fi fr hu id it ja ko nl pl pt ru tr uk zh_CN ; do
+       install -d $RPM_BUILD_ROOT%{_mandir}/$l/man{1,2,3,4,5,6,7,8}
+       for n in man{1,2,3,4,5,6,7,8}/*; do
+               if [ -f $l/$n ]; then
+                       install $l/$n $RPM_BUILD_ROOT%{_mandir}/$l/$n
                fi
        done
 done
@@ -382,7 +473,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%{_mandir}/man*/*
+%{_mandir}/man?/*
 %lang(cs) %{_mandir}/cs/man*/*
 %lang(de) %{_mandir}/de/man*/*
 %lang(es) %{_mandir}/es/man*/*
@@ -395,8 +486,13 @@ 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(pt_BR) %{_mandir}/pt_BR/man*/*
 %lang(ru) %{_mandir}/ru/man*/*
+%lang(tr) %{_mandir}/tr/man*/*
 %lang(uk) %{_mandir}/uk/man*/*
 %lang(zh_CN) %{_mandir}/zh_CN/man*/*
-#%lang(zh_TW) %{_mandir}/zh_TW/man*/*
+
+%files posix
+%defattr(644,root,root,755)
+%dir %{_mandir}/man?p
+%{_mandir}/man?p/*
This page took 0.085235 seconds and 4 git commands to generate.