Summary(tr): Linux Belgeleme Projesinin sistem kýlavuz sayfalarý
Summary(uk): óÔÏÒ¦ÎËÉ ÍÁÎÕÁÌÕ (man) Ú Linux Documentation Project
Name: man-pages
-Version: 2.13
-Release: 1.1
+Version: 2.18
+Release: 1
License: distributable
Group: Documentation
%define cs_version 0.16
%define es_version 1.55
%define es_extra_version 0.8a
%define fi_version 0.2
-%define fr_version 1.64.0
+%define fr_version 1.67.0
%define hu_version 20010119
%define id_version 20011116
%define it_version 0.3.4
-%define ja_version 20051015
+%define ja_version 20051215
%define ko_version 20050219
%define nl_version 0.13.3
%define pl_version 20051105
%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: 8b5a9c069013ba2402da1a2339f727af
+# Source0-md5: d0b6472fcabf2aecf0ede6f8dbd0252d
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 - but include it in sources for completeness
Source6: man-fi-0.1.tar.bz2
# Source6-md5: bb266d3797cdf71bfbe1da190196f455
Source7: http://manpagesfr.free.fr/download/man-fr-%{fr_version}.tar.bz2
-# Source7-md5: 336029199c9dd6c16ed85f8b7039dd2e
+# Source7-md5: 45d79316e7078f1a1ff575e01afc7a97
#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
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: fbc4c3bf09038ff0765596103fd37062
+# Source11-md5: dd8d4b42f5e7ab456ed93a0099d9602e
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
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
-Source52: sk98lin.4
+# NoSource50-md5: 2a23f3fb5f4e94d898cb514267fee350
+Source100: %{name}-tars.list
Patch0: %{name}-localtime.patch
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-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)
find man-pages-tr-%{tr_version} -name '*.gz' | xargs gzip -d
-# unify tries for easier processing
+# unify trees for easier processing
mv -f man-pages-%{pt_version}-pt_BR pt_BR
mv -f man-pages-cs-%{cs_version} cs
mv -f manpages-da-%{da_version} da
mv -f ${f}.tmp $f
done
-bzip2 -dc %{SOURCE50} | tar xf -
-rm -rf pt
+# unify name
+mv -f de/man7/{iso_8859_1,iso_8859-1}.7
+# 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
+%patch2 -p1
-# common for few packages (taken from tin)
-cp -f %{SOURCE51} man5/mbox.5
-# updated version
-cp -f %{SOURCE52} man4/sk98lin.4
+bzip2 -dc %{SOURCE50} | tar xf -
+%patch3 -p0
# cleanup
rm -f man1/COPYING
rm -f man*/README*
-find man3 -type f | grep -v 'intro\.3' | xargs rm -f
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,'`
ln -sf pt_BR pt
-%build
# 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/{ldd,ln,ls,mkdir,mkfifo,mknod,mv,rm,rmdir,time,touch,dir,vdir}.1
+rm -f man1/{ln,ls,mkdir,mkfifo,mknod,mv,rm,rmdir,touch,dir,vdir}.1
rm -f man8/sync.8
-# libcap-devel - but better place is here or in glibc IMO
-rm -f man2/{capget,capset}.2
-# kbd - but better place is here IMO
-rm -f man4/{console,console_ioctl}.4
+# time
+rm -f man1/time.1
# ftp servers
rm -f man5/ftpusers.5
-# shadow (but not pwdutils!); shadow(5) is missing in pwdutils too
-rm -f man5/passwd.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 de es fi fr hu 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
+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"
+ cat "$l" | xargs rm -f
+done
+%else
# glibc
+find man3 -type f | grep -v 'intro\.3' | xargs rm -f
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
+%endif
+
+# shadow (but not pwdutils!); shadow(5) is missing in pwdutils too
+rm -f man5/passwd.5
%install
rm -rf $RPM_BUILD_ROOT
install $n $RPM_BUILD_ROOT%{_mandir}/$n
done
-for l in cs de es fi fr hu it ja ko nl pl pt pt_BR ru tr uk zh_CN ; do
+# omit pt_BR here, package them as pt
+for l in cs de es fi fr hu 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
%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*/*