X-Git-Url: http://git.pld-linux.org/?p=packages%2Fman-pages.git;a=blobdiff_plain;f=man-pages.spec;h=c7e97fc5564138c96d5d683547797313c413a5d8;hp=f4cfc43ab6b78fcd0ef936f10970314b49b17e0c;hb=51af607b4ebc6304515962150cc797aa25caaa36;hpb=b1e10afe3e3a8e9e2dd847e9815cb87cfc7b5840 diff --git a/man-pages.spec b/man-pages.spec index f4cfc43..c7e97fc 100644 --- a/man-pages.spec +++ b/man-pages.spec @@ -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: 4.15 +Version: 5.01 Release: 1 License: distributable Group: Documentation @@ -25,11 +25,11 @@ Group: Documentation %define es_version 1.55 %define es_extra_version 0.8a %define fi_version 0.2 -%define fr_version 3.70 +%define fr_version 3.70-1 %define hu_version 20010119 %define id_version 20011116 %define it_version 4.08 -%define ja_version 20180115 +%define ja_version 20190515 %define ko_version 20050219 %define nl_version 0.13.3 %define pl_version 20051105 @@ -41,14 +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: 4298feb3d5feffad8ff46bb87b061a07 +# 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 # 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.alioth.debian.org/downloads/, current version is 2.3 +# 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 @@ -59,8 +59,9 @@ 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 -#Source7Download: https://alioth.debian.org/frs/?group_id=100455 -Source7: https://alioth.debian.org/frs/download.php/file/4119/man-pages-fr-%{fr_version}-1.tar.xz +#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 @@ -77,14 +78,14 @@ 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: 8d36a219c75f3ca08935df8984ab7f0b +# 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? 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 @@ -92,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: new project at: https://sourceforge.net/projects/man-pages-ru/files/ +# 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 @@ -314,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 @@ -353,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 @@ -446,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 @@ -525,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