]> git.pld-linux.org Git - packages/man-pages.git/blobdiff - man-pages.spec
- one more fr link
[packages/man-pages.git] / man-pages.spec
index f21aec0efd63c0a97cf831b5612b1bc4c0cf5306..c7e97fc5564138c96d5d683547797313c413a5d8 100644 (file)
@@ -15,7 +15,7 @@ Summary(ru.UTF-8):    Страницы руководства из Проекта 
 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
@@ -29,7 +29,7 @@ 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
@@ -41,7 +41,7 @@ Group:                Documentation
 %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
@@ -78,7 +78,7 @@ Source10:     ftp://ftp.pluto.linux.it/pub/pluto/ildp/man/%{name}-it-%{it_version}.t
 # 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?
@@ -315,19 +315,6 @@ Fragmenty POSIX 1003.1-2003 w postaci stron podręcznika systemowego.
 %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
@@ -354,6 +341,31 @@ tar xzf %{SOURCE12} -C src/ko
 %{__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
@@ -447,7 +459,7 @@ find . '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -rf
 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
@@ -526,7 +538,7 @@ for l in *-man.list ; do
        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
 
This page took 0.041902 seconds and 4 git commands to generate.