[521] | 1 | %define exec_texhash [ -x %{_prefix}/bin/texhash ] && /usr/bin/env - %{_prefix}/bin/texhash 2> /dev/null |
---|
| 2 | %define texmf %{_prefix}/share/texmf |
---|
| 3 | %define build_texmf %{buildroot}%{texmf} |
---|
| 4 | |
---|
| 5 | %define altplatex platex --kanji=euc |
---|
| 6 | %define makepdf(%1) %altplatex %1 && %altplatex %1 && %altplatex %1 && dvipdfmx %1; |
---|
| 7 | |
---|
[4260] | 8 | Summary: TeX Live macro packages of writing manuscript for the Transactions of Human Interface Society |
---|
| 9 | Summary(ja): TeX Live で使うマクロパッケージ ヒューマンインタフェース学会論文原稿作成用 |
---|
[521] | 10 | Name: texmacro-his |
---|
| 11 | Version: 1.0 |
---|
[4260] | 12 | Release: 4%{?_dist_release} |
---|
[521] | 13 | BuildArch: noarch |
---|
| 14 | Source0: http://www.his.gr.jp/download/paper/latex2e-euc/hisset.tar.gz |
---|
| 15 | Source1: http://www.his.gr.jp/download/meeting/latex2e-euc/hiskenset2e.tar.gz |
---|
| 16 | # hissympset.gz は hissympset.tar.gz にリネームしてあります. |
---|
| 17 | # Source2: http://www.his.gr.jp/download/his/latex2e-euc/hissympset.gz |
---|
| 18 | Source2: http://www.his.gr.jp/download/his/latex2e-euc/hissympset.tar.gz |
---|
| 19 | URL: http://www.his.gr.jp/download/index.html |
---|
| 20 | License: distributable |
---|
| 21 | Group: Applications/Publishing |
---|
[4260] | 22 | BuildRequires: texlive-common |
---|
| 23 | Requires: texlive-common |
---|
| 24 | Requires(post): texlive |
---|
| 25 | Requires(postun): texlive |
---|
| 26 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
---|
[521] | 27 | |
---|
| 28 | Distribution: Vine Linux |
---|
| 29 | Vendor: Project Vine |
---|
| 30 | |
---|
| 31 | %description |
---|
| 32 | teTeX macro packages of writing manuscript for the journal of |
---|
| 33 | the Transactions of Human Interface Society |
---|
| 34 | Users can use this macro specifying "his" class (in Japanese) |
---|
| 35 | or "ehis" class (in English). |
---|
| 36 | Including the following class files: |
---|
| 37 | his.cls |
---|
| 38 | ehis.cls |
---|
| 39 | hisken.cls |
---|
| 40 | ehisken.cls |
---|
| 41 | hissymp.cls |
---|
| 42 | ehissymp.cls |
---|
| 43 | |
---|
| 44 | %description -l ja |
---|
| 45 | ヒューマンインタフェース学会論文原稿作成用の tetex で用いる追加マクロパッケージです. |
---|
| 46 | his クラスを指定して使用します。 |
---|
| 47 | 英文は ehis クラスを指定します。 |
---|
| 48 | 以下のクラスファイルが含まれています。 |
---|
| 49 | his.cls |
---|
| 50 | ehis.cls |
---|
| 51 | hisken.cls |
---|
| 52 | ehisken.cls |
---|
| 53 | hissymp.cls |
---|
| 54 | ehissymp.cls |
---|
| 55 | |
---|
| 56 | %prep |
---|
| 57 | %setup -q -c -n %{name}-%{version} -a 1 -a 2 |
---|
| 58 | |
---|
| 59 | %build |
---|
| 60 | |
---|
| 61 | (cd hisset |
---|
[4260] | 62 | %__sed -i s/dviout/dvips/ format.tex |
---|
[521] | 63 | %makepdf format |
---|
| 64 | ) |
---|
| 65 | (cd hiskenset_2eeuc |
---|
| 66 | %makepdf ken |
---|
| 67 | ) |
---|
| 68 | (cd hissympset_euc |
---|
| 69 | %makepdf symptebiki |
---|
| 70 | ) |
---|
| 71 | |
---|
| 72 | %install |
---|
[4260] | 73 | %__rm -rf %{buildroot} |
---|
[521] | 74 | |
---|
| 75 | #InstallClass(){ |
---|
| 76 | #target=$1; shift |
---|
| 77 | #(cd $target |
---|
| 78 | #bzip2 -dc ${RPM_SOURCE_DIR}/$target.tar.bz2 | tar xf - -C %{build_texmf}/packages/ |
---|
| 79 | #rm %{build_texmf}/packages/$target/*.{ins,def,bst,rtx,sty,cls,ltx,fnt,cyr,fdd} || : |
---|
| 80 | #if [ -f src/$target.ins ]; then |
---|
| 81 | # cp src/* . |
---|
| 82 | #fi |
---|
| 83 | #latex $target.ins |
---|
| 84 | #mkdir -p %{build_texmf}/tex/latex/$target |
---|
| 85 | #cp *.{ldf,sty,def,cls,rtx} %{build_texmf}/tex/latex/$target || : |
---|
| 86 | #if [ ! -z "$*" ]; then |
---|
| 87 | # cp -d $* %{build_texmf}/tex/latex/$target || : |
---|
| 88 | #fi |
---|
| 89 | #if [ -n "`ls *.bst`" ]; then |
---|
| 90 | # mkdir -p %{build_texmf}/bibtex/bst/$target |
---|
| 91 | # cp *.bst %{build_texmf}/bibtex/bst/$target || : |
---|
| 92 | #fi |
---|
| 93 | #) |
---|
| 94 | #} |
---|
| 95 | # |
---|
| 96 | #mkdir -p %{build_texmf}/packages/ |
---|
| 97 | |
---|
| 98 | %__mkdir_p %{build_texmf}/ptex/platex/his |
---|
| 99 | %__cp -af */*.cls %{build_texmf}/ptex/platex/his/ |
---|
| 100 | |
---|
| 101 | %post |
---|
| 102 | %{exec_texhash} |
---|
| 103 | exit 0 |
---|
| 104 | |
---|
| 105 | %postun |
---|
| 106 | %{exec_texhash} |
---|
| 107 | exit 0 |
---|
| 108 | |
---|
| 109 | %clean |
---|
[4260] | 110 | %__rm -rf $RPM_BUILD_ROOT |
---|
[521] | 111 | |
---|
| 112 | %files |
---|
| 113 | %defattr(-,root,root) |
---|
| 114 | %doc */*.{tex,pdf} hisset/fig1.* hissympset_euc/fig1.bb |
---|
| 115 | %{texmf}/ptex/platex/his/ |
---|
| 116 | |
---|
| 117 | %changelog |
---|
[4260] | 118 | * Sun Jul 03 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-4 |
---|
| 119 | - TeX Live 2009 |
---|
| 120 | |
---|
[521] | 121 | * Sun Mar 29 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-3 |
---|
| 122 | - source update as his.cls Version 1.0 2006-12-15 |
---|
| 123 | - new versioning policy |
---|
| 124 | - spec in utf8 |
---|
| 125 | - s/Copyright/License/ |
---|
| 126 | |
---|
| 127 | * Sat Jan 18 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.0-0vl2 |
---|
| 128 | - update as of 2002.12.6 |
---|
| 129 | |
---|
| 130 | * Mon Sep 10 2001 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.0-0vl1 |
---|
| 131 | - first release |
---|