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