瀏覽代碼

updated texmacro-ieice-vl.spec

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@6287 ec354946-7b23-47d6-9f5a-488ba84defc7
munepi 13 年之前
父節點
當前提交
e73b113915
共有 1 個文件被更改,包括 58 次插入64 次删除
  1. 58 64
      t/texmacro-ieice/texmacro-ieice-vl.spec

+ 58 - 64
t/texmacro-ieice/texmacro-ieice-vl.spec

@@ -2,17 +2,17 @@
 %define texmf		%{_datadir}/texmf
 %define texmf		%{_datadir}/texmf
 %define build_texmf	%{buildroot}%{texmf}
 %define build_texmf	%{buildroot}%{texmf}
 
 
-%define altplatex	platex --kanji=euc
+%define altplatex	platex --kanji=utf8
 %define makepdf(%1)	%altplatex %1 && %altplatex %1 && %altplatex %1 && dvipdfmx %1;
 %define makepdf(%1)	%altplatex %1 && %altplatex %1 && %altplatex %1 && dvipdfmx %1;
 
 
 Summary: TeX Live macro packages of writing manuscript for the Institute of Electronics, Information and Communication Engineers
 Summary: TeX Live macro packages of writing manuscript for the Institute of Electronics, Information and Communication Engineers
 Summary(ja): TeX Live で使うマクロパッケージ 電子情報通信学会論文原稿、技術研究報告作成用
 Summary(ja): TeX Live で使うマクロパッケージ 電子情報通信学会論文原稿、技術研究報告作成用
 Name: texmacro-ieice
 Name: texmacro-ieice
-Version: 1.5
-Release: 2%{?_dist_release}
+Version: 1.6
+Release: 1%{?_dist_release}
 BuildArch: noarch
 BuildArch: noarch
-Source0: http://www.ieice.org/ftp/tex/ieicej/LaTeX2e/ieicej15.tar.gz
-Source1: http://www.ieice.org/ftp/tex/ieice/LaTeX2e/latex2e.tar.gz
+Source0: http://www.ieice.org/ftp/tex/ieicej/LaTeX2e/ieicej1.6a.tgz
+Source1: http://www.ieice.org/ftp/tex/ieice/LaTeX2e/ieice1.8.tgz
 URL: http://www.ieice.org/ftp/
 URL: http://www.ieice.org/ftp/
 License: distributable
 License: distributable
 Group: Applications/Publishing
 Group: Applications/Publishing
@@ -31,80 +31,65 @@ Institute of Electronics, Information and Communication Engineers.
 Users can use this macro specifying "ieicej" class (in Japanese) 
 Users can use this macro specifying "ieicej" class (in Japanese) 
 or "ieice" class (in English).
 or "ieice" class (in English).
 Including
 Including
-	ieice.cls
-	ieicej.cls
+	ieice.cls  1.8
+	ieicej.cls 1.6a
 
 
 %description -l ja
 %description -l ja
 電子情報通信学会の技術研究報告(研究会発表論文)和・英論文誌 原稿作成用
 電子情報通信学会の技術研究報告(研究会発表論文)和・英論文誌 原稿作成用
 の TeX Live で用いる追加マクロパッケージです。
 の TeX Live で用いる追加マクロパッケージです。
 和文は ieicej クラスを、英文は ieice クラスを指定します。
 和文は ieicej クラスを、英文は ieice クラスを指定します。
 以下のマクロが含まれています
 以下のマクロが含まれています
-	ieice.cls
-	ieicej.cls
+	ieice.cls  1.8
+	ieicej.cls 1.6a
 
 
 
 
 %prep
 %prep
 %setup -T -c %{name}-%{version}
 %setup -T -c %{name}-%{version}
 
 
 tar xzf %{SOURCE0}
 tar xzf %{SOURCE0}
-mv ieicej15/UNIXEUC jp
-rm -rf ieicej15
+%__mv ieicej1.6a/UNIXEUC jp
+%__rm -rf ieicej1.6a
 
 
 tar xzf %{SOURCE1}
 tar xzf %{SOURCE1}
-mv latex2e/UNIXEUC en
-rm -rf latex2e
+%__mv ieice1.8/UNIXEUC en
+%__rm -rf ieice1.8
 
 
 %build
 %build
 
 
-( cd jp
-for i in readme tecrep chklist ; do
-	# platex $i
-	# platex $i
-	# dvips $i
-	%makepdf $i
-	rm -f *.{aux,dvi,log}
-done )
-
-( cd en
-for i in readme-e readme-j ; do
-	# platex $i
-	# platex $i
-	# dvips $i
-	%makepdf $i
-	rm -f *.{aux,dvi,log}
-done )
+(cd jp
+    for x in *.cls *.tex readme.1st *.bst; do 
+    	nkf -w --overwrite ${x} || exit 1
+    done
+    for i in *.tex; do
+    	ft=$(basename ${i} .tex)
+        # if [ "${ft}" != "chklist" -a "${ft}" != "template" ]; then
+        #     # %__sed -i -e "s/\documentclass\[\(.*\)\]{ieicej}/\documentclass\[\1,tombo\]{ieicej}/" -e "s/\documentclass{ieicej}/\documentclass\[tombo\]{ieicej}/" ${i} || exit 1
+	#     # %__sed -i -e "s/\documentclass\[\(.*\)\]{ieicej}/\documentclass\[\1,mentuke\]{ieicej}/" -e "s/\documentclass{ieicej}/\documentclass\[mentuke\]{ieicej}/" ${i} || exit 1
+	# fi
+	%makepdf ${ft}
+	##!! override to fix paper size/position
+    done
+)
+
+(cd en
+    for x in *.cls *.tex ; do 
+    	nkf -w --overwrite ${x} || exit 1
+    done
+    for i in *.tex; do
+    	ft=$(basename ${i} .tex)
+	%makepdf ${ft}
+    done
+)
+
 
 
 %install
 %install
-rm -rf %{buildroot}
-
-#InstallClass(){
-#target=$1; shift
-#(cd $target
-#bzip2 -dc ${RPM_SOURCE_DIR}/$target.tar.bz2 | tar xf - -C %{build_texmf}/packages/
-#rm %{build_texmf}/packages/$target/*.{ins,def,bst,rtx,sty,cls,ltx,fnt,cyr,fdd} || :
-#if [ -f src/$target.ins ]; then
-#    cp src/* .
-#fi
-#latex $target.ins
-#mkdir -p %{build_texmf}/tex/latex/$target
-#cp *.{ldf,sty,def,cls,rtx} %{build_texmf}/tex/latex/$target || :
-#if [ ! -z "$*" ]; then 
-#    cp -d $* %{build_texmf}/tex/latex/$target || :
-#fi
-#if [ -n "`ls *.bst`" ]; then
-#    mkdir -p %{build_texmf}/bibtex/bst/$target
-#    cp *.bst %{build_texmf}/bibtex/bst/$target || :
-#fi
-#)
-#}
-#
-#mkdir -p %{build_texmf}/packages/
-
-mkdir -p %{build_texmf}/ptex/platex/ieice
-mv */*.cls %{build_texmf}/ptex/platex/ieice
-
-mkdir -p %{build_texmf}/bibtex/bst/ieice
-mv en/*.bst %{build_texmf}/bibtex/bst/ieice
+%__rm -rf %{buildroot}
+
+%__mkdir_p %{build_texmf}/ptex/platex/ieice
+%__cp -a */*.cls %{build_texmf}/ptex/platex/ieice
+
+%__mkdir_p %{build_texmf}/bibtex/bst/ieice
+%__cp -a */*.bst %{build_texmf}/bibtex/bst/ieice
 
 
 %post
 %post
 %{exec_texhash}
 %{exec_texhash}
@@ -115,17 +100,26 @@ exit 0
 exit 0
 exit 0
 
 
 %clean
 %clean
-rm -rf %{buildroot}
+%__rm -rf %{buildroot}
 
 
 %files
 %files
 %defattr(-,root,root)
 %defattr(-,root,root)
-%doc jp
-%doc en
+%doc jp/*.{tex,pdf} jp/readme.1st
+%doc en/*.{tex,pdf} en/readme-e.1st
 %{texmf}/ptex/platex/ieice
 %{texmf}/ptex/platex/ieice
 %{texmf}/bibtex/bst/ieice
 %{texmf}/bibtex/bst/ieice
 
 
 
 
-%changelog 
+%changelog
+* Thu Jun  7 2012 Munehiro Yamamoto <munepi@vinelinux.org> 1.6-1
+- merged the following changes <BTS:wishes:307>; 
+  Thanks to Masaki Kawamura <kawamura@is.sci.yamaguchi-u.ac.jp>
+  - update sources: ieicej1.6a.tgz and ieice1.8.tgz
+  - convert EUC to UTF8 for ieicej.cls 
+
+* Thu Jun 07 2012  1.6-1
+- change %%{texmf} from %%{_datadir}/texmf to %%{_datadir}/texmf-local
+
 * Sun Jul 03 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.5-2
 * Sun Jul 03 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.5-2
 - TeX Live 2009
 - TeX Live 2009