1 | %define exec_texhash [ -x %{_bindir}/texhash ] && %{_bindir}/env - %{_bindir}/texhash 2> /dev/null |
---|
2 | %define texmf %{_datadir}/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 | |
---|
8 | Summary: TeX Live macro packages of writing manuscript for the Institute of Electronics, Information and Communication Engineers |
---|
9 | Summary(ja): TeX Live で使うマクロパッケージ 電子情報通信学会論文原稿、技術研究報告作成用 |
---|
10 | Name: texmacro-ieice |
---|
11 | Version: 1.5 |
---|
12 | Release: 2%{?_dist_release} |
---|
13 | BuildArch: noarch |
---|
14 | Source0: http://www.ieice.org/ftp/tex/ieicej/LaTeX2e/ieicej15.tar.gz |
---|
15 | Source1: http://www.ieice.org/ftp/tex/ieice/LaTeX2e/latex2e.tar.gz |
---|
16 | URL: http://www.ieice.org/ftp/ |
---|
17 | License: distributable |
---|
18 | Group: Applications/Publishing |
---|
19 | BuildRequires: texlive-common |
---|
20 | Requires: texlive-common |
---|
21 | Requires(post): texlive |
---|
22 | Requires(postun): texlive |
---|
23 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
---|
24 | |
---|
25 | Distribution: Vine Linux |
---|
26 | Vendor: Project Vine |
---|
27 | |
---|
28 | %description |
---|
29 | TeX Live macro packages of writing manuscript for the |
---|
30 | Institute of Electronics, Information and Communication Engineers. |
---|
31 | Users can use this macro specifying "ieicej" class (in Japanese) |
---|
32 | or "ieice" class (in English). |
---|
33 | Including |
---|
34 | ieice.cls |
---|
35 | ieicej.cls |
---|
36 | |
---|
37 | %description -l ja |
---|
38 | 電子情報通信学会の技術研究報告(研究会発表論文)和・英論文誌 原稿作成用 |
---|
39 | の TeX Live で用いる追加マクロパッケージです。 |
---|
40 | 和文は ieicej クラスを、英文は ieice クラスを指定します。 |
---|
41 | 以下のマクロが含まれています |
---|
42 | ieice.cls |
---|
43 | ieicej.cls |
---|
44 | |
---|
45 | |
---|
46 | %prep |
---|
47 | %setup -T -c %{name}-%{version} |
---|
48 | |
---|
49 | tar xzf %{SOURCE0} |
---|
50 | mv ieicej15/UNIXEUC jp |
---|
51 | rm -rf ieicej15 |
---|
52 | |
---|
53 | tar xzf %{SOURCE1} |
---|
54 | mv latex2e/UNIXEUC en |
---|
55 | rm -rf latex2e |
---|
56 | |
---|
57 | %build |
---|
58 | |
---|
59 | ( cd jp |
---|
60 | for i in readme tecrep chklist ; do |
---|
61 | # platex $i |
---|
62 | # platex $i |
---|
63 | # dvips $i |
---|
64 | %makepdf $i |
---|
65 | rm -f *.{aux,dvi,log} |
---|
66 | done ) |
---|
67 | |
---|
68 | ( cd en |
---|
69 | for i in readme-e readme-j ; do |
---|
70 | # platex $i |
---|
71 | # platex $i |
---|
72 | # dvips $i |
---|
73 | %makepdf $i |
---|
74 | rm -f *.{aux,dvi,log} |
---|
75 | done ) |
---|
76 | |
---|
77 | %install |
---|
78 | rm -rf %{buildroot} |
---|
79 | |
---|
80 | #InstallClass(){ |
---|
81 | #target=$1; shift |
---|
82 | #(cd $target |
---|
83 | #bzip2 -dc ${RPM_SOURCE_DIR}/$target.tar.bz2 | tar xf - -C %{build_texmf}/packages/ |
---|
84 | #rm %{build_texmf}/packages/$target/*.{ins,def,bst,rtx,sty,cls,ltx,fnt,cyr,fdd} || : |
---|
85 | #if [ -f src/$target.ins ]; then |
---|
86 | # cp src/* . |
---|
87 | #fi |
---|
88 | #latex $target.ins |
---|
89 | #mkdir -p %{build_texmf}/tex/latex/$target |
---|
90 | #cp *.{ldf,sty,def,cls,rtx} %{build_texmf}/tex/latex/$target || : |
---|
91 | #if [ ! -z "$*" ]; then |
---|
92 | # cp -d $* %{build_texmf}/tex/latex/$target || : |
---|
93 | #fi |
---|
94 | #if [ -n "`ls *.bst`" ]; then |
---|
95 | # mkdir -p %{build_texmf}/bibtex/bst/$target |
---|
96 | # cp *.bst %{build_texmf}/bibtex/bst/$target || : |
---|
97 | #fi |
---|
98 | #) |
---|
99 | #} |
---|
100 | # |
---|
101 | #mkdir -p %{build_texmf}/packages/ |
---|
102 | |
---|
103 | mkdir -p %{build_texmf}/ptex/platex/ieice |
---|
104 | mv */*.cls %{build_texmf}/ptex/platex/ieice |
---|
105 | |
---|
106 | mkdir -p %{build_texmf}/bibtex/bst/ieice |
---|
107 | mv en/*.bst %{build_texmf}/bibtex/bst/ieice |
---|
108 | |
---|
109 | %post |
---|
110 | %{exec_texhash} |
---|
111 | exit 0 |
---|
112 | |
---|
113 | %postun |
---|
114 | %{exec_texhash} |
---|
115 | exit 0 |
---|
116 | |
---|
117 | %clean |
---|
118 | rm -rf %{buildroot} |
---|
119 | |
---|
120 | %files |
---|
121 | %defattr(-,root,root) |
---|
122 | %doc jp |
---|
123 | %doc en |
---|
124 | %{texmf}/ptex/platex/ieice |
---|
125 | %{texmf}/bibtex/bst/ieice |
---|
126 | |
---|
127 | |
---|
128 | %changelog |
---|
129 | * Sun Jul 03 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.5-2 |
---|
130 | - TeX Live 2009 |
---|
131 | |
---|
132 | * Sun Mar 29 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.5-1 |
---|
133 | - update sources |
---|
134 | - new versioning policy |
---|
135 | - spec in utf8 |
---|
136 | |
---|
137 | * Tue Apr 27 2004 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.3-0vl1 |
---|
138 | - update sources |
---|
139 | - drop tech_2e_euc.tgz |
---|
140 | - drop BuildRequires: nkf |
---|
141 | - install ieicetr.bst |
---|
142 | - s/Copyright/License/ |
---|
143 | - use %%{_bindir} instead of %%{_prefix}/bin |
---|
144 | - use %%{_datadir} instead of %%{_prefix}/share |
---|
145 | |
---|
146 | * Thu Jan 30 2003 KAZUKI SHIMURA <rito@pos.to> 1.1-0vl2 |
---|
147 | - fix file access permissions |
---|
148 | - use %%{texmf} at %%files instead of /usr/share/texmf |
---|
149 | |
---|
150 | * Sat Jan 18 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.1-0vl1 |
---|
151 | - update Source2 |
---|
152 | |
---|
153 | * Mon Sep 10 2001 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.0-0vl1 |
---|
154 | - first release |
---|