[521] | 1 | %define texmf %{_prefix}/share/texmf |
---|
| 2 | %define build_texmf %{buildroot}%{texmf} |
---|
| 3 | |
---|
| 4 | %define exec_texhash [ -x %{_bindir}/texhash ] && PATH=%{_bindir}:$PATH %{_bindir}/texhash 2> /dev/null |
---|
| 5 | %define exec_updmap [ -x %{_bindir}/updmap-sys ] && PATH=%{_bindir}:$PATH %{_bindir}/updmap 2> /dev/null |
---|
| 6 | |
---|
| 7 | Summary: TIPA (International Phonetic Alphabet for LaTeX) |
---|
| 8 | Summary(ja): TIPA (LaTeX 用の音声記号フォント) |
---|
| 9 | Name: tipa |
---|
| 10 | Version: 1.3 |
---|
| 11 | Release: 1%{?_dist_release} |
---|
| 12 | Group: Applications/Publishing |
---|
| 13 | License: LaTeX Project Public License |
---|
| 14 | URL: http://www.l.u-tokyo.ac.jp/~fkr/tipa/ |
---|
| 15 | Source: http://www.l.u-tokyo.ac.jp/~fkr/tipa/tipa-1.3.tar.gz |
---|
| 16 | BuildArch: noarch |
---|
| 17 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 18 | BuildRequires: tetex |
---|
| 19 | Requires: tetex |
---|
| 20 | Vendor: Project Vine |
---|
| 21 | Distribution: Vine Linux |
---|
| 22 | Packager: IKEDA Katsumi <ikeda@webmasters.gr.jp> |
---|
| 23 | |
---|
| 24 | %description |
---|
| 25 | TIPA is a system for processing IPA (International Phonetic Alphabet) symbols |
---|
| 26 | in LaTeX. TIPA stands for TeX IPA or Tokyo IPA. |
---|
| 27 | |
---|
| 28 | |
---|
| 29 | %description -l ja |
---|
| 30 | TIPA は LaTeX で IPA (国際音標文字/発音記号) を処理するためのシステムです。 |
---|
| 31 | TIPA という名前は TeX IPA や Tokyo IPA を意味しています。 |
---|
| 32 | |
---|
| 33 | %prep |
---|
| 34 | %setup -q |
---|
| 35 | |
---|
| 36 | %build |
---|
| 37 | |
---|
| 38 | %install |
---|
| 39 | rm -rf $RPM_BUILD_ROOT |
---|
| 40 | |
---|
| 41 | # Don't mind the error messages about type1/*.afm and mktexlsr. |
---|
| 42 | make PREFIX=%{build_texmf} MAPDIR=%{build_texmf}/fonts/map/dvips install |
---|
| 43 | |
---|
| 44 | %clean |
---|
| 45 | rm -rf $RPM_BUILD_ROOT |
---|
| 46 | |
---|
| 47 | %post |
---|
| 48 | %{exec_texhash} |
---|
| 49 | %{exec_updmap} --enable Map tipa.map |
---|
| 50 | exit 0 |
---|
| 51 | |
---|
| 52 | %postun |
---|
| 53 | if [ "$1" = 0 ]; then |
---|
| 54 | %{exec_texhash} |
---|
| 55 | %{exec_updmap} --disable tipa.map |
---|
| 56 | fi |
---|
| 57 | exit 0 |
---|
| 58 | |
---|
| 59 | %files |
---|
| 60 | %defattr(-,root,root) |
---|
| 61 | %doc 00README Manifest.txt Makefile doc/ |
---|
| 62 | %{texmf}/tex/latex/tipa/ |
---|
| 63 | %{texmf}/fonts/source/fkr/tipa/ |
---|
| 64 | %{texmf}/fonts/tfm/fkr/tipa/ |
---|
| 65 | %{texmf}/fonts/type1/fkr/tipa |
---|
| 66 | %{texmf}/fonts/map/dvips/tipa.map |
---|
| 67 | |
---|
| 68 | %changelog |
---|
| 69 | * Sun Oct 12 2008 Shu KONNO <owa@bg.wakwak.com> 1.3-1vl5 |
---|
| 70 | - applied new versioning policy, spec in utf-8 |
---|
| 71 | |
---|
| 72 | * Sat Sep 9 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.3-0vl3 |
---|
| 73 | - changed exec_updmap (applyed Tsuchimura-san's patch) |
---|
| 74 | |
---|
| 75 | * Thu Aug 17 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.3-0vl2 |
---|
| 76 | - rebuilt for VineSeed (4.0) |
---|
| 77 | |
---|
| 78 | * Mon Apr 25 2005 IKEDA Katsumi <ikeda@webmasters.gr.jp> 1.3-0vl1 |
---|
| 79 | - Initial specfile. |
---|