[man-pages-ja] fix hardcoded amount of man pages package in archive

Akira TAGOH tagoh at fedoraproject.org
Mon Jun 24 05:28:15 UTC 2013


commit d5470a6c12243068aff15989d92e6f2692795720
Author: Akira TAGOH <tagoh at redhat.com>
Date:   Mon Jun 24 14:27:46 2013 +0900

    fix hardcoded amount of man pages package in archive

 man-pages-ja-rpm.pl |    3 ++-
 man-pages-ja.spec   |    2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/man-pages-ja-rpm.pl b/man-pages-ja-rpm.pl
index 5810e15..027f4a1 100644
--- a/man-pages-ja-rpm.pl
+++ b/man-pages-ja-rpm.pl
@@ -15,7 +15,8 @@ print "C\n";
 ###
 # Maintainer should update these number according to the original Makefile
 ###
-for($i=0; $i<=118; $i++) {
+my $n=`grep -v -E "^#.*" $ARGV[1] | wc -l`;
+for($i=0; $i<=$n; $i++) {
   print "\n";
 }
 print "C\n";
diff --git a/man-pages-ja.spec b/man-pages-ja.spec
index ad87d6d..f1e8ded 100644
--- a/man-pages-ja.spec
+++ b/man-pages-ja.spec
@@ -69,7 +69,7 @@ Japanese Manual pages, translated by JM-Project (Japanese Manual Project).
 
 %build
 sed -ie 's/::/:GNU coreutils:/g' manual/GNU_coreutils/translation_list
-perl %{SOURCE1} '$DESTDIR' | make
+perl %{SOURCE1} '$DESTDIR' $RPM_BUILD_DIR/%{name}-%{version}/script/pkgs.list | make
 
 %install
 DESTDIR=$RPM_BUILD_ROOT sh installman.sh


More information about the scm-commits mailing list