Browse Source

upload: JF, jman_pages

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@751 ec354946-7b23-47d6-9f5a-488ba84defc7
inagaki 14 years ago
parent
commit
c3329dfcba
2 changed files with 31 additions and 15 deletions
  1. 12 6
      J/JF/JF-vl.spec
  2. 19 9
      j/jman_pages/jman_pages-vl.spec

+ 12 - 6
J/JF/JF-vl.spec

@@ -3,15 +3,17 @@
 Summary: HOWTO, FAQ, and other documents in Japanese
 Summary(ja): 日本語のHOWTO, FAQ, その他の文書です
 Name: JF
-Version: 20090320
+Version: 20100222
 Release: 1%{?_dist_release}
 License: distributable
 Group: Applications/Documentation
 URL: http://www.linux.or.jp/JF/
 Source0: http://www.linux.or.jp/JF/JFdocs/JFtxt.tar.bz2
-BuildPreReq: nkf
+
 BuildArch: noarch
 Buildroot: %{_tmppath}/%{name}-%{version}-root
+BuildRequires: nkf 
+
 Vendor: Project Vine
 Distribution: Vine Linux
 
@@ -22,7 +24,6 @@ There are Japanese translations from English HOWTOs, FAQs, etc. and
 documents that are originally written in Japanese. It's a good idea
 to install this package and look into them for your information.
 
-#'
 %description -l ja
 HOWTO (Linux でいろいろなことを実現する方法を書いた文書)や FAQ
 (Frequently Asked Questions:よくある質問と回答)の日本語版など JF
@@ -52,16 +53,16 @@ rm -f Parted-README.txt
 rm -f BTTV-Mini-HOWTO-0.3.txt
 
 %build
-toEuc(){
+toUTF8(){
 for i in `find .` ; do
     if [ -f $i ]; then
-        nkf -e -Lu $i >${i%.*}.new
+        nkf -w8 -Lu $i >${i%.*}.new
         mv ${i%.*}.new $i
     fi
 done
 }
 
-toEuc
+toUTF8
 
 %install
 rm -rf %{buildroot}
@@ -79,6 +80,11 @@ rm -rf %{buildroot}
 %{_docdir}/JF/
 
 %changelog
+* Fri Mar 26 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 20100222-1
+- source as of 20100222
+- convert to UTF8 instead of EUC-JP
+- s/BuildPreReq/BuildRequires/
+
 * Tue Mar 31 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 20090320-1
 - source as of 20090320
 - spec in utf-8

+ 19 - 9
j/jman_pages/jman_pages-vl.spec

@@ -1,5 +1,5 @@
 %define jman 0.5
-%define rel 20090715
+%define rel 20100315
 
 Summary: Japanese manual pages
 Summary(ja): 日本語マニュアル・ページ集
@@ -66,6 +66,14 @@ JM-Projectについては, http://www.linux.or.jp/JM/ を御覧ください.
 cp %{SOURCE1} installman.sh
 
 %build
+### convert encodings ###
+pushd manual
+for i in */man?/* ; do
+    mv $i $i.tmp
+    iconv -f euc-jp -t utf-8 $i.tmp -o $i
+    rm $i.tmp
+done
+popd
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -74,17 +82,14 @@ rm -rf $RPM_BUILD_ROOT
 make DESTDIR=$RPM_BUILD_ROOT install
 
 ### copy translation_lists for installation ###
-(mkdir translation_list
-cd manual
+rm -rf translation_list
+mkdir -p translation_list
+pushd manual
 for i in */translation_list ; do
     j=`echo $i | cut -d/ -f1`
     cp -p $i ../translation_list/$j
 done
-)
-
-# move to %%{_mandir}/ja
-mkdir -p $RPM_BUILD_ROOT%{_mandir}
-mv $RPM_BUILD_ROOT%{_datadir}/jman $RPM_BUILD_ROOT%{_mandir}/ja
+popd
 
 # remove conflict files
 # shadow-utils, cdparanoia, man
@@ -107,7 +112,7 @@ done
 # copy makewhatis to exec by a non-root user
 sed 's@/var/cache/man/whatis@%{buildroot}/usr/share/man/ja/whatis@g' \
 	< /usr/sbin/makewhatis > makewhatis
-sh ./makewhatis $RPM_BUILD_ROOT/usr/share/man/ja/
+sh ./makewhatis $RPM_BUILD_ROOT%{_mandir}/ja/
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -118,6 +123,11 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/ja
 
 %changelog
+* Sat Apr  3 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.5-20100315
+- source as of 20100315
+- updated SOURCE1
+- converted encodings to UTF-8
+
 * Sun Jul 26 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.5-20090715vl5
 - source as of 20090715
 - move jman to %%{_mandir}/ja