| 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 Journal of the Acoustical Society of Japan |
|---|
| 9 | Summary(ja): TeX Live で使うマクロパッケージ 日本音響学会誌(和文誌)原稿作成用 |
|---|
| 10 | Name: texmacro-jasj |
|---|
| 11 | Version: 1.0 |
|---|
| 12 | Release: 2%{?_dist_release} |
|---|
| 13 | BuildArch: noarch |
|---|
| 14 | Source0: http://www2.iee.or.jp/ver2/honbu/32-doc-kenq/latex2e.zip |
|---|
| 15 | URL: http://www.iee.or.jp/ |
|---|
| 16 | License: distributable |
|---|
| 17 | Group: Applications/Publishing |
|---|
| 18 | BuildRequires: texlive-common |
|---|
| 19 | Requires: texlive-common |
|---|
| 20 | Requires(post): texlive |
|---|
| 21 | Requires(postun): texlive |
|---|
| 22 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
|---|
| 23 | |
|---|
| 24 | Distribution: Vine Linux |
|---|
| 25 | Vendor: Project Vine |
|---|
| 26 | |
|---|
| 27 | %description |
|---|
| 28 | TeX Live macro packages of writing manuscript for the |
|---|
| 29 | Journal of the Acoustical Society of Japan. |
|---|
| 30 | Users can use this macro specifying "jasj" class. |
|---|
| 31 | Including |
|---|
| 32 | jasj.cls |
|---|
| 33 | |
|---|
| 34 | %description -l ja |
|---|
| 35 | 日本音響学会誌(和文誌)原稿作成用の TeX Live で用いる追加マクロパッケージです。 |
|---|
| 36 | jasj クラスを指定して使用します。 |
|---|
| 37 | 以下のマクロが含まれています |
|---|
| 38 | jasj.cls |
|---|
| 39 | |
|---|
| 40 | |
|---|
| 41 | %define jasjsrcdir latex2e/UNIXEUC |
|---|
| 42 | |
|---|
| 43 | %prep |
|---|
| 44 | %setup -q -c -n %{name}-%{version}/ |
|---|
| 45 | |
|---|
| 46 | %build |
|---|
| 47 | |
|---|
| 48 | (cd %jasjsrcdir |
|---|
| 49 | %makepdf readme |
|---|
| 50 | ) |
|---|
| 51 | |
|---|
| 52 | %install |
|---|
| 53 | %__rm -rf %{buildroot} |
|---|
| 54 | |
|---|
| 55 | %__mkdir_p %{build_texmf}/ptex/platex/jasj |
|---|
| 56 | %__cp -a %jasjsrcdir/*.cls %{build_texmf}/ptex/platex/jasj |
|---|
| 57 | |
|---|
| 58 | %post |
|---|
| 59 | %{exec_texhash} |
|---|
| 60 | exit 0 |
|---|
| 61 | |
|---|
| 62 | %postun |
|---|
| 63 | %{exec_texhash} |
|---|
| 64 | exit 0 |
|---|
| 65 | |
|---|
| 66 | %clean |
|---|
| 67 | %__rm -rf %{buildroot} |
|---|
| 68 | |
|---|
| 69 | %files |
|---|
| 70 | %defattr(-,root,root) |
|---|
| 71 | %doc %jasjsrcdir/*.{tex,pdf,1st} |
|---|
| 72 | %{texmf}/ptex/platex/jasj |
|---|
| 73 | |
|---|
| 74 | |
|---|
| 75 | %changelog |
|---|
| 76 | * Sun Jul 03 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-2 |
|---|
| 77 | - TeX Live 2009 |
|---|
| 78 | |
|---|
| 79 | * Sun Mar 29 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-1 |
|---|
| 80 | - initial build |
|---|