Summary(tr.UTF-8): Linux Belgeleme Projesinin sistem kılavuz sayfaları
Summary(uk.UTF-8): Сторінки мануалу (man) з Linux Documentation Project
Name: man-pages
-Version: 5.00
+Version: 5.01
Release: 1
License: distributable
Group: Documentation
%define hu_version 20010119
%define id_version 20011116
%define it_version 4.08
-%define ja_version 20190215
+%define ja_version 20190515
%define ko_version 20050219
%define nl_version 0.13.3
%define pl_version 20051105
%define zh_version 1.5.2
%define posix_version 2013-a
Source0: https://www.kernel.org/pub/linux/docs/man-pages/%{name}-%{version}.tar.xz
-# Source0-md5: d3be22b49e52d93734343c0df52dad01
+# Source0-md5: 5f75f72efcbe5cd245c4d9f36005d070
Source1: ftp://ftp.linux.cz/pub/localization/linux/czman/%{name}-cs-%{cs_version}.tar.bz2
# Source1-md5: a3df67d98ab63a0a360cd0794ec87e0e
# there is no LDP man page here, yet - but include it in sources for completeness
# note: man-pages-it-extra-0.5.0.tar.gz is also covered by the above version
#Source11Download: http://linuxjm.osdn.jp/download.html
Source11: http://linuxjm.osdn.jp/%{name}-ja-%{ja_version}.tar.gz
-# Source11-md5: 6ccca47c5fb401b2c83063e40acbb161
+# Source11-md5: 8c0d449619f755d03ea75de386ad2df9
Source12: http://download.kldp.net/man/man-pages-ko/%{ko_version}/%{name}-ko-%{ko_version}.tar.gz
# Source12-md5: e31dc6a51c02436371373dedaeeeacab
# TODO: check 20051127 in Debian/Ubuntu?
%patch2 -p0 -d man-pages-extra
install -d man-pages-extra/C
%{__mv} man-pages-extra/man* man-pages-extra/C
-# extra so links (via man-pages-extra)
-while read LINE ; do
- if echo "$LINE" | grep -q '^#' ; then
- continue
- fi
- set -- $LINE
- install -d man-pages-extra/${1}/$(dirname $2)
- if [ -f man-pages-extra/${1}/${2} ]; then
- echo "man-pages-extra/${1}/${2} already exists!"
- exit 1
- fi
- echo ".so $3" >>man-pages-extra/${1}/${2}
-done < %{SOURCE50}
# prepare somehow unified source trees
install -d src
%{__mv} man-pages-uk_UA.alfa src/uk
%{__mv} manpages-zh-%{zh_version} src/zh
+# extra so links (via man-pages-extra)
+while read LINE ; do
+ if echo "$LINE" | grep -q '^#' ; then
+ continue
+ fi
+ set -- $LINE
+ install -d man-pages-extra/${1}/$(dirname $2)
+ if [ -f man-pages-extra/${1}/${2} ]; then
+ echo "man-pages-extra/${1}/${2} already exists!"
+ exit 1
+ fi
+ echo ".so $3" >>man-pages-extra/${1}/${2}
+ # special case for zh
+ if [ "$1" = "zh_CN" ]; then
+ zhmandir="src/zh/src/$(dirname "$2")"
+ makefile="$zhmandir/manpages"
+ if [ ! -f "$zhmandir/.init.mark" ]; then
+ # allow continuation in next line
+ %{__sed} -i -e 's/\(\.[1-8]\)$/\1 \\/' "$makefile"
+ touch "$zhmandir/.init.mark"
+ fi
+ printf " %s" "$(basename "$2")" >> "$makefile"
+ fi
+done < %{SOURCE50}
+
# unify trees for easier processing (where possible)
# da: add man1 subdir
for d in man-pages-extra/C/man* ; do
mv -i $d/*.* src/C/${d#man-pages-extra/C/}
done
-# note: cs and zh_CN are omitted here and processed later
+# note: cs and zh_CN are omitted here and processed in separate special pass
for d in man-pages-extra/{de,es,fi,fr,hu,id,it,ja,ko,nl,pl,pt_BR,ru}/man* ; do
mv -i $d/*.* src/${d#man-pages-extra/}
done
if [ -f tarsrc/README.${t}-pages ]; then
echo "README.${t}-pages" >> "$l"
fi
- tar cJf tar/${t}-pages.tar.xz -C tarsrc --files-from "$l"
+ tar chJf tar/${t}-pages.tar.xz -C tarsrc --files-from "$l"
done
%endif