#16 Add per language manuals at proper packages.
Opened 10 months ago by maage. Modified 10 months ago
rpms/ maage/rpm manual-lang  into  master

file modified
+20 -8

@@ -466,20 +466,26 @@ 

  %{_bindir}/rpmquery

  %{_bindir}/rpmverify

  

+ # To update list of manuals rpm directory feed output to sh

+ #

+ #rpmdir="../rpm";spec="$(pwd)/rpm.spec";(set -e;cd "$rpmdir";echo -n "sed -i '";for m in $(cd doc;ls -1 *.[18]);do n="${m##*.}"; fgrep -q -x "%{""_mandir}/man$n/$m*" "$spec" || { echo "ERROR: $m missing in spec"; exit 1; }; sed -i "\:^%lang.*/man$n/$m.*:d" "$spec"; start="\\:^%{""_mandir}/man$n/${m/./\\.}\\*$:a \\";end=""; for a in $(find doc/*/ -name "$m"|sort); do echo "$start";start="\\";end="\n"; a="${a#*/}";l="${a%%/*}"; echo -n "%lang($l) %{""_mandir}/$l/man$n/$m*"; done; [ -n "$end" ] && echo -e "$end"; done; echo "' $spec";)

+ 

  %{_mandir}/man8/rpm.8*

+ %lang(fr) %{_mandir}/fr/man8/rpm.8*

+ %lang(ja) %{_mandir}/ja/man8/rpm.8*

+ %lang(ko) %{_mandir}/ko/man8/rpm.8*

+ %lang(pl) %{_mandir}/pl/man8/rpm.8*

+ %lang(ru) %{_mandir}/ru/man8/rpm.8*

+ %lang(sk) %{_mandir}/sk/man8/rpm.8*

  %{_mandir}/man8/rpmdb.8*

  %{_mandir}/man8/rpmkeys.8*

  %{_mandir}/man8/rpm2cpio.8*

+ %lang(ja) %{_mandir}/ja/man8/rpm2cpio.8*

+ %lang(ko) %{_mandir}/ko/man8/rpm2cpio.8*

+ %lang(pl) %{_mandir}/pl/man8/rpm2cpio.8*

+ %lang(ru) %{_mandir}/ru/man8/rpm2cpio.8*

  %{_mandir}/man8/rpm-misc.8*

  

- # XXX this places translated manuals to wrong package wrt eg rpmbuild

- %lang(fr) %{_mandir}/fr/man[18]/*.[18]*

- %lang(ko) %{_mandir}/ko/man[18]/*.[18]*

- %lang(ja) %{_mandir}/ja/man[18]/*.[18]*

- %lang(pl) %{_mandir}/pl/man[18]/*.[18]*

- %lang(ru) %{_mandir}/ru/man[18]/*.[18]*

- %lang(sk) %{_mandir}/sk/man[18]/*.[18]*

- 

  %attr(0755, root, root) %dir %{rpmhome}

  %{rpmhome}/macros

  %{rpmhome}/macros.d

@@ -534,8 +540,12 @@ 

  %{_bindir}/rpmspec

  

  %{_mandir}/man1/gendiff.1*

+ %lang(pl) %{_mandir}/pl/man1/gendiff.1*

  %{_mandir}/man8/rpmbuild.8*

+ %lang(ja) %{_mandir}/ja/man8/rpmbuild.8*

+ %lang(pl) %{_mandir}/pl/man8/rpmbuild.8*

  %{_mandir}/man8/rpmdeps.8*

+ %lang(pl) %{_mandir}/pl/man8/rpmdeps.8*

  %{_mandir}/man8/rpmspec.8*

  

  %{rpmhome}/brp-*

@@ -568,6 +578,8 @@ 

  

  %files devel

  %{_mandir}/man8/rpmgraph.8*

+ %lang(ja) %{_mandir}/ja/man8/rpmgraph.8*

+ %lang(pl) %{_mandir}/pl/man8/rpmgraph.8*

  %{_bindir}/rpmgraph

  %{_libdir}/librp*[a-z].so

  %{_libdir}/pkgconfig/%{name}.pc

Add "oneliner" to allow to update manual list if it changes in major way.