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 makepdf(%1) latex %1 && latex %1 && latex %1 && dvipdfm %1; |
---|
6 | |
---|
7 | Summary: teTeX macro packages of writing manuscript for the journal of BUTSURI (the Journal of the Physical Society of Japan) |
---|
8 | Summary(ja): tetex で使うマクロパッケージ 日本物理学会論文原稿作成用 |
---|
9 | Name: texmacro-jps |
---|
10 | Version: 1.2.0 |
---|
11 | Release: 3%{?_dist_release} |
---|
12 | BuildArch: noarch |
---|
13 | Source0: http://wwwsoc.nii.ac.jp/jps/jpsj/style/jpsj2.tar.gz |
---|
14 | URL: http://wwwsoc.nii.ac.jp/jps/jps/topics/j_move.html |
---|
15 | License: The Institue of Pure and Applied Physics |
---|
16 | Group: Applications/Publishing |
---|
17 | BuildPrereq: tetex |
---|
18 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
---|
19 | |
---|
20 | Distribution: Vine Linux |
---|
21 | Vendor: Project Vine |
---|
22 | |
---|
23 | %description |
---|
24 | teTeX macro packages of writing manuscript for the journal of BUTSURI |
---|
25 | (the Journal of the Physical Society of Japan) |
---|
26 | Users can use this macro specifying jpsj2 class. |
---|
27 | Including |
---|
28 | jpsj2.cls : Version 1.2 (May 8, 2003) |
---|
29 | |
---|
30 | |
---|
31 | %description -l ja |
---|
32 | 日本物理学会誌論文原稿作成用の tetex で用いる追加マクロパッケージです. |
---|
33 | jpsj2 クラスを指定してしようします。 |
---|
34 | 以下のマクロが含まれています。 |
---|
35 | jpsj2.cls : Version 1.2 (May 8, 2003) |
---|
36 | |
---|
37 | %prep |
---|
38 | %setup -q -c -n %{name}-%{version} |
---|
39 | |
---|
40 | %build |
---|
41 | |
---|
42 | # latex injpsj2 |
---|
43 | # latex injpsj2 |
---|
44 | # for i in *.dvi |
---|
45 | # do |
---|
46 | # dvips $i |
---|
47 | # done |
---|
48 | %makepdf injpsj2 |
---|
49 | |
---|
50 | mv template.tex template.bak |
---|
51 | nkf -d template.bak > template.tex |
---|
52 | |
---|
53 | %install |
---|
54 | rm -rf %{buildroot} |
---|
55 | |
---|
56 | #InstallClass(){ |
---|
57 | #target=$1; shift |
---|
58 | #(cd $target |
---|
59 | #bzip2 -dc ${RPM_SOURCE_DIR}/$target.tar.bz2 | tar xf - -C %{build_texmf}/packages/ |
---|
60 | #rm %{build_texmf}/packages/$target/*.{ins,def,bst,rtx,sty,cls,ltx,fnt,cyr,fdd} || : |
---|
61 | #if [ -f src/$target.ins ]; then |
---|
62 | # cp src/* . |
---|
63 | #fi |
---|
64 | #latex $target.ins |
---|
65 | #mkdir -p %{build_texmf}/tex/latex/$target |
---|
66 | #cp *.{ldf,sty,def,cls,rtx} %{build_texmf}/tex/latex/$target || : |
---|
67 | #if [ ! -z "$*" ]; then |
---|
68 | # cp -d $* %{build_texmf}/tex/latex/$target || : |
---|
69 | #fi |
---|
70 | #if [ -n "`ls *.bst`" ]; then |
---|
71 | # mkdir -p %{build_texmf}/bibtex/bst/$target |
---|
72 | # cp *.bst %{build_texmf}/bibtex/bst/$target || : |
---|
73 | #fi |
---|
74 | #) |
---|
75 | #} |
---|
76 | # |
---|
77 | #mkdir -p %{build_texmf}/packages/ |
---|
78 | |
---|
79 | mkdir -p %{build_texmf}/tex/latex/jpsj2 |
---|
80 | mv *.cls %{build_texmf}/tex/latex/jpsj2 |
---|
81 | |
---|
82 | |
---|
83 | %post |
---|
84 | %{exec_texhash} |
---|
85 | exit 0 |
---|
86 | |
---|
87 | %postun |
---|
88 | %{exec_texhash} |
---|
89 | exit 0 |
---|
90 | |
---|
91 | %clean |
---|
92 | rm -rf $RPM_BUILD_ROOT |
---|
93 | |
---|
94 | %files |
---|
95 | %defattr(-,root,root) |
---|
96 | %doc *.{tex,pdf,txt} dummy.eps |
---|
97 | %{texmf}/tex/latex/jpsj2/ |
---|
98 | |
---|
99 | %changelog |
---|
100 | * Sun Mar 29 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.2.0-3 |
---|
101 | - new versioning policy |
---|
102 | - spec in utf8 |
---|
103 | - created injpsj2.pdf |
---|
104 | |
---|
105 | * Fri Aug 4 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2-0vl2 |
---|
106 | - s/Copyright/License/ |
---|
107 | |
---|
108 | * Wed May 25 2005 Masaki Kawamura <kawamura@is.sci.yamaguchi-u.ac.jp> 1.2 |
---|
109 | - update to 1.2 |
---|
110 | |
---|
111 | * Sat Jan 18 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.1.1-0vl2 |
---|
112 | - update jpsj2.tar.gz |
---|
113 | |
---|
114 | * Thu Jul 18 2002 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.1.1-0vl1 |
---|
115 | - update to 1.1.1 |
---|
116 | |
---|
117 | * Mon Sep 10 2001 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.0-0vl1 |
---|
118 | - first release |
---|