]> git.pld-linux.org Git - packages/man-pages.git/blobdiff - man-pages.spec
- release 2 (by relup.sh)
[packages/man-pages.git] / man-pages.spec
index 458469c8ec2c57f24774a9967f84aa3d6fa73208..404f72671913e481740e42c7c63adf079ce33d36 100644 (file)
@@ -15,21 +15,21 @@ 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:       4.11
+Version:       5.09
 Release:       2
 License:       distributable
 Group:         Documentation
 %define                cs_version              0.17.20080113
-%define                da_version              0.1.1
+%define                da_version              0.1.2
 %define                de_version              0.5
 %define                es_version              1.55
 %define                es_extra_version        0.8a
 %define                fi_version              0.2
-%define                fr_version              3.03.0
+%define                fr_version              3.70-1
 %define                hu_version              20010119
 %define                id_version              20011116
-%define                it_version              4.08
-%define                ja_version              20170615
+%define                it_version              5.06
+%define                ja_version              20201015
 %define                ko_version              20050219
 %define                nl_version              0.13.3
 %define                pl_version              20051105
@@ -41,12 +41,14 @@ 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: c2f25e2367fc12267bb85abe7b39f173
+# Source0-md5: 3821e8d05f6f253e136ca2a4ff0aafbf
 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
-Source2:       http://www.sslug.dk/locale/man-sider/manpages-da-%{da_version}.tar.gz
-# Source2-md5: d12ba0481d824c28a8b7d6b73e20d7c0
+# http://www.sslug.dk/locale/man-sider/manpages-da-%{da_version}.tar.gz (404 as of Feb 2018)
+Source2:       manpages-da-%{da_version}.tar.gz
+# Source2-md5: 26cdd12ea7c62e595fc1a3a39bf53115
+# TODO: new project at https://manpages-de-team.pages.debian.net/manpages-de/, current version is 2.12
 Source3:       http://www.infodrom.org/projects/manpages-de/download/manpages-de-%{de_version}.tar.gz
 # Source3-md5: 6686b1be6da01cdbb5ea7511ddcf61a0
 Source4:       http://www.ditec.um.es/~piernas/manpages-es/%{name}-es-%{es_version}.tar.bz2
@@ -57,10 +59,10 @@ Source5:    http://www.ditec.um.es/~piernas/manpages-es/%{name}-es-extra-%{es_extra
 # (despite archive filename it's 0.2 version)
 Source6:       man-fi-0.1.tar.bz2
 # Source6-md5: bb266d3797cdf71bfbe1da190196f455
-# TODO: http://www.win.tue.nl/~aeb/ftpdocs/linux-local/manpages/tr/man-pages-fr-3.70-1.tar.xz - what is the original source?
-#Source7Download: http://manpagesfr.free.fr/
-Source7:       http://manpagesfr.free.fr/download/%{name}-fr-%{fr_version}.tar.bz2
-# Source7-md5: 64046b022c7c8d559d78dd05f953261b
+#Source7Download: https://gitlab.com/perkamon/man-pages-fr/tags
+# TODO: use https://gitlab.com/perkamon/man-pages-fr/-/archive/%{fr_version}/man-pages-fr-%{fr_version}.tar.bz2, then make dist-fr to get tarball - but 4.16 produces very few translations
+Source7:       man-pages-fr-%{fr_version}.tar.xz
+# Source7-md5: 66a6033fb2ed3641c35b1d53c0fe5deb
 # there is also: http://manpagesfr.free.fr/download/man-pages-extras-fr-0.8.1.tar.bz2
 # and: http://manpagesfr.free.fr/download/man-pages-sup-fr-20080606.tar.bz2
 #Source8:      http://download.uhulinux.hu/sources/man-pages-hu/man_hu_%{hu_version}.tar.gz (older)
@@ -72,18 +74,18 @@ Source9:    http://www.mif.pg.gda.pl/homepages/ankry/man-pages/%{name}-from-www-id-
 # Source9-md5: 34a69de42ec4ae8180b947f8777a3e7a
 # available also as http://
 Source10:      ftp://ftp.pluto.linux.it/pub/pluto/ildp/man/%{name}-it-%{it_version}.tar.xz
-# Source10-md5:        869cf8ff2aa5c11b8d15d1ba7a47f4fa
+# Source10-md5:        80329fc120d4ea29cd3408b7ced4f4c3
 # 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:        ee20907738e957d4956197bb0163c9cd
+# Source11-md5:        2ca73214a0027747ec3cc59e8059bc58
 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?
 Source13:      ftp://ftp.nl.linux.org/pub/DOC-NL/manpages-nl/manpages-nl-%{nl_version}.tar.gz
 # Source13-md5:        b37b0216a87db7583e88ba87031a0b4a
 # TODO: PTM has been overtaken by new project at http://manpages-pl.sourceforge.net/
-# http://downloads.sourceforge.net/manpages-pl/manpages-pl-%{pl_version}.tar.bz2 with pl_version=0.6
+# http://downloads.sourceforge.net/manpages-pl/manpages-pl-%{pl_version}.tar.bz2 with pl_version=0.7
 Source14:      %{name}-pl-PTM-snapshot.%{pl_version}.tar.bz2
 # Source14-md5:        b9b5751fcde4c36022850d0e5a4757d3
 Source15:      http://www.win.tue.nl/~aeb/ftpdocs/linux-local/manpages/tr/%{name}-pt_BR-%{pt_version}.tgz
@@ -91,7 +93,7 @@ Source15:     http://www.win.tue.nl/~aeb/ftpdocs/linux-local/manpages/tr/%{name}-pt_
 # no LDP man pages yet
 Source16:      http://www.rolix.org/man/arhiva/man-pages-ro-%{ro_version}.tar.gz
 # Source16-md5:        ac5b2c970a31cb721e068ff80e5bd466
-# TODO: http://www.win.tue.nl/~aeb/ftpdocs/linux-local/manpages/tr/man-pages-ru-3.81-20160117.tar.bz2 - what is the original source?
+# TODO: new project at: https://sourceforge.net/projects/man-pages-ru/files/, latest version man-pages-ru_4.17-2385-2385-20181124.tar.bz2
 #Source17:     http://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
@@ -112,16 +114,19 @@ Patch0:           %{name}-zh_fixes.patch
 Patch1:                %{name}-misc.patch
 Patch2:                %{name}-extra.patch
 Patch3:                %{name}-tr-bash.patch
-Patch4:                %{name}-misc-localized.patch
-Patch5:                %{name}-cs-bash.patch
+Patch4:                %{name}-tr-so-links.patch
+Patch5:                %{name}-misc-localized.patch
+Patch6:                %{name}-cs-bash.patch
 Patch10:       %{name}-extra-files.patch
 URL:           https://www.kernel.org/doc/man-pages/
 BuildRequires: autoconf >= 2.61
 BuildRequires: automake
 BuildRequires: rpmbuild(macros) >= 1.566
 BuildRequires: sed >= 4.0
+BuildRequires: tar >= 1:1.22
 # for man-pages-zh
 BuildRequires: zh-autoconvert
+BuildRequires: xz
 # for man-pages-tr
 BuildRequires: zlib-devel
 Obsoletes:     man-pages-cs
@@ -305,25 +310,13 @@ Fragmenty POSIX 1003.1-2003 w postaci stron podręcznika systemowego.
 %setup -q -c -a1 -a2 -a3 -a4 -a5 -a6 -a7 -a8 -a9 -a10 -a11 -a13 -a14 -a15 -a16 -a17 -a18 -a19 -a20 -a30
 %patch0 -p1 -d manpages-zh-%{zh_version}
 %patch3 -p1 -d man-pages-tr-%{tr_version}
-%patch5 -p1 -d man-pages-cs-%{cs_version}
+%patch4 -p1 -d man-pages-tr-%{tr_version}
+%patch6 -p1 -d man-pages-cs-%{cs_version}
 # man-pages-extra
 %patch10 -p0
 %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
@@ -334,7 +327,7 @@ install -d src
 %{__mv} manpages-de-%{de_version} src/de
 %{__mv} man-pages-es-%{es_version} src/es
 %{__mv} manpages-fi src/fi
-%{__mv} man-pages-fr-%{fr_version} src/fr
+%{__mv} fr src/fr
 %{__mv} manpages-hu-%{hu_version}.orig/usr/share/man/hu src/hu
 install -d src/id/man{1,8}
 %{__mv} man-pages-it-%{it_version} src/it
@@ -350,6 +343,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
@@ -374,36 +392,49 @@ done
 # ja: merge per-package trees
 %{__mv} src/ja/manual/LDP_man-pages/man* src/ja
 # duplicates of LDP man pages
-%{__rm} -r src/ja/manual/{gnumaniak,ld.so,modutils/man2,glibc-linuxthreads/man3,man/man1/{apropos,man,whatis}.1,netkit/{man3/{daemon,err,login}.3,man5/ftpusers.5},bind/{man5/resolver.5,man7/mailaddr.7},util-linux/man1/tailf.1}
+%{__rm} -r src/ja/manual/{gnumaniak,ld.so,modutils/man2,glibc-linuxthreads/man3}
+%{__rm} src/ja/manual/bind/{man5/resolver.5,man7/{hostname,mailaddr}.7}
+%{__rm} src/ja/manual/netkit/{man3/{daemon,err,login}.3,man5/ftpusers.5}
 # shadow manuals already in shadow package
 %{__rm} -r src/ja/manual/shadow
+# PLD uses:
+# coreutils not {file,sh-,text}utils
+%{__rm} -r src/ja/manual/GNU_{fileutils,sh-utils,textutils}
 # dhcp 3 not dhcp2
 %{__rm} -r src/ja/manual/dhcp2
+# kmod (ex-module-init-tools) not modutils
+%{__rm} -r src/ja/manual/modutils
 # nfs-utils not nfs-server
 %{__rm} -r src/ja/manual/nfs-server
 # ypbind-mt not ypbind
 %{__rm} -r src/ja/manual/ypbind
-# we use: net-tools/hostname, util-linux/{kill,write}, SysVinit/{last,mesg,wall,halt,reboot,shutdown}, textutils/od, quota/rquotad
-%{__rm} src/ja/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 src/ja/manual/modutils/man8/{depmod,insmod,lsmod,modinfo,modprobe,rmmod} ; do
-       %{__mv} ${f}.8 ${f}.modutils.8
-done
-# avoid filename conflict
-%{__mv} src/ja/manual/netkit/man8/ftpd.{8,8n}
-# remove files existing in main man-pages tarball
-# note: (should we keep those from main tarball or ja tarball?)
-%{__rm} src/ja/manual/GNU_fileutils/man1/{chgrp,chmod,chown,cp,dd,df,du,install,ln,ls,mkdir,mkfifo,mknod,mv,rm,rmdir,touch}.1
-%{__rm} src/ja/manual/GNU_sh-utils/man1/{basename,chroot,date,dirname,echo,env,expr,false,groups,hostid,id,logname,nice,nohup,pathchk,printenv,printf,pwd,sleep,stty,su,tee,test,true,tty,uname,users,who,whoami,yes}.1
-%{__rm} src/ja/manual/GNU_textutils/man1/{cat,cksum,comm,csplit,cut,expand,fmt,fold,head,join,md5sum,nl,od,paste,pr,sort,split,sum,tac,tail,tr,unexpand,uniq,wc}.1
-%{__rm} src/ja/manual/lpr-linux/man1/{lpq,lpr,lprm}.1
-%{__rm} src/ja/manual/net-tools/man1/hostname.1
+# man-db not man
+%{__rm} src/ja/manual/man/man1/{apropos,man,whatis}.1
+# hostname(1) from hostname (ex-net-tools)
+%{__rm} src/ja/manual/GNU_coreutils/man1/hostname.1
+# kill(1) from util-linux
+%{__rm} src/ja/manual/GNU_coreutils/man1/kill.1
+# uptime(1) from procps
+%{__rm} src/ja/manual/GNU_coreutils/man1/uptime.1
+# last(1),lastb(1),mesg(1) from util-linux
+%{__rm} src/ja/manual/SysVinit/man1/{last,lastb,mesg}.1
+# blkid(8) from util-linux
+%{__rm} src/ja/manual/e2fsprogs/man8/blkid.8
+# lpq(1),lpr(1),lprm(1),lpc(8) from cups (or LPRng)
+%{__rm} src/ja/manual/lpr-linux/{man1/{lpq,lpr,lprm}.1,man8/lpc.8}
+# timeout(1) from coreutils
 %{__rm} src/ja/manual/netatalk/man1/timeout.1
-%{__rm} src/ja/manual/procps/man1/uptime.1
-%{__rm} src/ja/manual/util-linux/man1/{arch,kill}.1
-%{__rm} src/ja/manual/util-linux/man8/sln.8
-%{__rm} src/ja/manual/bind/man7/hostname.7
-%{__rm} src/ja/manual/cups/man8/lpc.8
+# write(1) from util-linux
+%{__rm} src/ja/manual/netkit/man1/write.1
+# rquotad(8) from quota
+%{__rm} src/ja/manual/nfs-utils/man8/rquotad.8
+# kill(1) from util-linux
+%{__rm} src/ja/manual/procps/man1/kill.1
+# wall(1) from SysVinit
+%{__rm} src/ja/manual/util-linux/man1/wall.1
+# resolve conflicts of alternatives
+%{__mv} src/ja/manual/netkit/man8/ftpd.8{,netkit}
+# merge the rest
 for f in 1 3 4 5 6 7 8 ; do
        mv -i src/ja/manual/*/man${f}/* src/ja/man${f}
 done
@@ -416,7 +447,6 @@ done
 %{__mv} src/de/man7/{iso_8859_1,iso_8859-1}.7
 %{__mv} src/es/man4/magic.4 src/es/man5/magic.5
 %{__mv} src/es/man8/sync.8 src/es/man1/sync.1
-%{__mv} src/fr/man8/sync.8 src/fr/man1/sync.1
 %{__mv} src/hu/man1/gpm.1 src/hu/man8/gpm.8
 # man1/sync.1 already exists
 %{__rm} src/hu/man8/sync.8
@@ -433,40 +463,18 @@ done
 # zh: handler later (after build)
 
 %patch1 -p1 -d src/C
-%patch4 -p1 -d src
+%patch5 -p1 -d src
 
 # patching creates backups
 find . '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -rf
 
 # merge our "extra" tarball
 
-# already in base man-pages
-%{__rm} man-pages-extra/C/man1/{getent,iconv,locale,localedef,sprof}.1
-%{__rm} man-pages-extra/C/man2/vm86old.2
-%{__rm} man-pages-extra/C/man3/{CIRCLEQ_*,LIST_*,TAILQ_*,__after_morecore_hook,__free_hook,__malloc_initialize_hook,__memalign_hook,__realloc_hook}.3
-%{__rm} man-pages-extra/C/man4/sk98lin.4
-%{__rm} man-pages-extra/C/man8/sln.8
-# empty now
-rmdir man-pages-extra/C/man4
 # apply man-pages-extra, preventing overwriting of already existing man pages
 for d in man-pages-extra/C/man* ; do
        mv -i $d/*.* src/C/${d#man-pages-extra/C/}
 done
-%{__rm} man-pages-extra/cs/man1/{dir,egrep,fgrep,vdir}.1
-%{__rm} man-pages-extra/cs/man4/{kmem,port,vcsa,zero}.4
-%{__rm} man-pages-extra/cs/man7/utf8.7
-# empty now
-rmdir man-pages-extra/cs/man{4,7}
-%{__rm} man-pages-extra/de/man3/ctime.3
-# empty now
-rmdir man-pages-extra/de/man3
-%{__rm} man-pages-extra/fr/man8/{ld-linux,ld-linux.so}.8
-%{__rm} man-pages-extra/it/man7/utf8.7
-# empty now
-rmdir man-pages-extra/it/man7
-%{__rm} man-pages-extra/ja/man3/{CIRCLEQ_*,LIST_*,TAILQ_*,__after_morecore_hook,__free_hook,__malloc_initialize_hook,__memalign_hook,__realloc_hook}.3
-%{__rm} man-pages-extra/pt_BR/man2/waitpid.2
-# 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
@@ -545,7 +553,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.04375 seconds and 4 git commands to generate.