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=utf8 |
---|
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.6 |
---|
12 | Release: 1%{?_dist_release} |
---|
13 | BuildArch: noarch |
---|
14 | Source0: http://www.ieice.org/ftp/tex/ieicej/LaTeX2e/ieicej1.6a.tgz |
---|
15 | Source1: http://www.ieice.org/ftp/tex/ieice/LaTeX2e/ieice1.8.tgz |
---|
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 1.8 |
---|
35 | ieicej.cls 1.6a |
---|
36 | |
---|
37 | %description -l ja |
---|
38 | 電子情報通信学会の技術研究報告(研究会発表論文)和・英論文誌 原稿作成用 |
---|
39 | の TeX Live で用いる追加マクロパッケージです。 |
---|
40 | 和文は ieicej クラスを、英文は ieice クラスを指定します。 |
---|
41 | 以下のマクロが含まれています |
---|
42 | ieice.cls 1.8 |
---|
43 | ieicej.cls 1.6a |
---|
44 | |
---|
45 | |
---|
46 | %prep |
---|
47 | %setup -T -c %{name}-%{version} |
---|
48 | |
---|
49 | tar xzf %{SOURCE0} |
---|
50 | %__mv ieicej1.6a/UNIXEUC jp |
---|
51 | %__rm -rf ieicej1.6a |
---|
52 | |
---|
53 | tar xzf %{SOURCE1} |
---|
54 | %__mv ieice1.8/UNIXEUC en |
---|
55 | %__rm -rf ieice1.8 |
---|
56 | |
---|
57 | %build |
---|
58 | |
---|
59 | (cd jp |
---|
60 | for x in *.cls *.tex readme.1st *.bst; do |
---|
61 | nkf -w --overwrite ${x} || exit 1 |
---|
62 | done |
---|
63 | for i in *.tex; do |
---|
64 | ft=$(basename ${i} .tex) |
---|
65 | # if [ "${ft}" != "chklist" -a "${ft}" != "template" ]; then |
---|
66 | # # %__sed -i -e "s/\documentclass\[\(.*\)\]{ieicej}/\documentclass\[\1,tombo\]{ieicej}/" -e "s/\documentclass{ieicej}/\documentclass\[tombo\]{ieicej}/" ${i} || exit 1 |
---|
67 | # # %__sed -i -e "s/\documentclass\[\(.*\)\]{ieicej}/\documentclass\[\1,mentuke\]{ieicej}/" -e "s/\documentclass{ieicej}/\documentclass\[mentuke\]{ieicej}/" ${i} || exit 1 |
---|
68 | # fi |
---|
69 | %makepdf ${ft} |
---|
70 | ##!! override to fix paper size/position |
---|
71 | done |
---|
72 | ) |
---|
73 | |
---|
74 | (cd en |
---|
75 | for x in *.cls *.tex ; do |
---|
76 | nkf -w --overwrite ${x} || exit 1 |
---|
77 | done |
---|
78 | for i in *.tex; do |
---|
79 | ft=$(basename ${i} .tex) |
---|
80 | %makepdf ${ft} |
---|
81 | done |
---|
82 | ) |
---|
83 | |
---|
84 | |
---|
85 | %install |
---|
86 | %__rm -rf %{buildroot} |
---|
87 | |
---|
88 | %__mkdir_p %{build_texmf}/ptex/platex/ieice |
---|
89 | %__cp -a */*.cls %{build_texmf}/ptex/platex/ieice |
---|
90 | |
---|
91 | %__mkdir_p %{build_texmf}/bibtex/bst/ieice |
---|
92 | %__cp -a */*.bst %{build_texmf}/bibtex/bst/ieice |
---|
93 | |
---|
94 | %post |
---|
95 | %{exec_texhash} |
---|
96 | exit 0 |
---|
97 | |
---|
98 | %postun |
---|
99 | %{exec_texhash} |
---|
100 | exit 0 |
---|
101 | |
---|
102 | %clean |
---|
103 | %__rm -rf %{buildroot} |
---|
104 | |
---|
105 | %files |
---|
106 | %defattr(-,root,root) |
---|
107 | %doc jp/*.{tex,pdf} jp/readme.1st |
---|
108 | %doc en/*.{tex,pdf} en/readme-e.1st |
---|
109 | %{texmf}/ptex/platex/ieice |
---|
110 | %{texmf}/bibtex/bst/ieice |
---|
111 | |
---|
112 | |
---|
113 | %changelog |
---|
114 | * Thu Jun 7 2012 Munehiro Yamamoto <munepi@vinelinux.org> 1.6-1 |
---|
115 | - merged the following changes <BTS:wishes:307>; |
---|
116 | Thanks to Masaki Kawamura <kawamura@is.sci.yamaguchi-u.ac.jp> |
---|
117 | - update sources: ieicej1.6a.tgz and ieice1.8.tgz |
---|
118 | - convert EUC to UTF8 for ieicej.cls |
---|
119 | |
---|
120 | * Sun Jul 03 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.5-2 |
---|
121 | - TeX Live 2009 |
---|
122 | |
---|
123 | * Sun Mar 29 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.5-1 |
---|
124 | - update sources |
---|
125 | - new versioning policy |
---|
126 | - spec in utf8 |
---|
127 | |
---|
128 | * Tue Apr 27 2004 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.3-0vl1 |
---|
129 | - update sources |
---|
130 | - drop tech_2e_euc.tgz |
---|
131 | - drop BuildRequires: nkf |
---|
132 | - install ieicetr.bst |
---|
133 | - s/Copyright/License/ |
---|
134 | - use %%{_bindir} instead of %%{_prefix}/bin |
---|
135 | - use %%{_datadir} instead of %%{_prefix}/share |
---|
136 | |
---|
137 | * Thu Jan 30 2003 KAZUKI SHIMURA <rito@pos.to> 1.1-0vl2 |
---|
138 | - fix file access permissions |
---|
139 | - use %%{texmf} at %%files instead of /usr/share/texmf |
---|
140 | |
---|
141 | * Sat Jan 18 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.1-0vl1 |
---|
142 | - update Source2 |
---|
143 | |
---|
144 | * Mon Sep 10 2001 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.0-0vl1 |
---|
145 | - first release |
---|