[5566] | 1 | %define tex_destdir %{_datadir} |
---|
| 2 | %define texmf %{tex_destdir}/texmf |
---|
[521] | 3 | |
---|
[5566] | 4 | Summary: LaTeX to HTML translator |
---|
| 5 | Summary(ja): LaTeXをHTMLに変換 |
---|
| 6 | Name: hevea |
---|
| 7 | Version: 1.10 |
---|
| 8 | Release: 1%{?_dist_release} |
---|
| 9 | License: QPL |
---|
| 10 | Group: Applications/Publishing |
---|
| 11 | URL: http://hevea.inria.fr/ |
---|
| 12 | Source: http://hevea.inria.fr/distri/hevea-%{version}.tar.gz |
---|
| 13 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 14 | Vendor: Project Vine |
---|
| 15 | Distribution: Vine Linux |
---|
[521] | 16 | |
---|
[5566] | 17 | %if %{?_dist_release} == "vl5" |
---|
| 18 | BuildRequires: tetex |
---|
| 19 | %endif |
---|
| 20 | %if %{?_dist_release} >= "vl6" |
---|
| 21 | BuildRequires: texlive-common |
---|
| 22 | %endif |
---|
| 23 | BuildRequires: ocaml >= 3.0.7 |
---|
| 24 | %if %{?_dist_release} == "vl5" |
---|
| 25 | Requires: tetex |
---|
| 26 | %endif |
---|
| 27 | %if %{?_dist_release} >= "vl6" |
---|
| 28 | Requires: texlive-common |
---|
| 29 | %endif |
---|
| 30 | Requires: netpbm-progs ghostscript |
---|
| 31 | |
---|
[521] | 32 | %description |
---|
[5566] | 33 | HEVEA is a quite complete and fast LATEX to HTML translator. |
---|
| 34 | HEVEA renders symbols by using the so-called HTML "entites", which |
---|
| 35 | modern browsers display correctly most of the time. |
---|
[521] | 36 | |
---|
| 37 | %description -l ja |
---|
| 38 | HEVEA は LaTeX を HTML に変換するプログラムです. |
---|
| 39 | |
---|
[5566] | 40 | |
---|
[521] | 41 | %prep |
---|
| 42 | %setup -q |
---|
| 43 | |
---|
[5566] | 44 | # Set our default paths |
---|
| 45 | %__sed -i -e "s#\(BINDIR=\).*#\\1%{_bindir}#; \ |
---|
| 46 | s#\(LIBDIR=\).*#\\1%{_datadir}/%{name}#; \ |
---|
| 47 | s#\(LATEXLIBDIR=\).*#\\1%{texmf}/tex/latex/hevea#; \ |
---|
| 48 | s#\(DESTDIR=\).*#\\1%{buildroot}#; \ |
---|
| 49 | " config.sh |
---|
| 50 | |
---|
[521] | 51 | %build |
---|
[5566] | 52 | %__make %{?_smp_mflags} \ |
---|
| 53 | PREFIX=%{_prefix} \ |
---|
| 54 | LIBDIR=%{_datadir}/hevea \ |
---|
| 55 | BINDIR=%{_bindir} \ |
---|
| 56 | LATEXLIBDIR=%{texmf}/tex/latex/hevea |
---|
[521] | 57 | |
---|
| 58 | %install |
---|
[5566] | 59 | %__rm -rf %{buildroot} |
---|
| 60 | %__make install \ |
---|
| 61 | DESTDIR=%{buildroot} \ |
---|
| 62 | PREFIX=%{_prefix} \ |
---|
| 63 | LIBDIR=%{_datadir}/hevea \ |
---|
| 64 | BINDIR=%{_bindir} \ |
---|
| 65 | LATEXLIBDIR=%{texmf}/tex/latex/hevea |
---|
[521] | 66 | |
---|
| 67 | %clean |
---|
[5566] | 68 | %__rm -rf $RPM_BUILD_ROOT |
---|
[521] | 69 | |
---|
| 70 | %post -p %{_bindir}/texhash |
---|
| 71 | %postun -p %{_bindir}/texhash |
---|
| 72 | |
---|
| 73 | %files |
---|
| 74 | %defattr(-,root,root,-) |
---|
[5566] | 75 | %doc README CHANGES LICENSE |
---|
[521] | 76 | %{_bindir}/* |
---|
[5566] | 77 | %{_datadir}/hevea |
---|
| 78 | %{texmf}/tex/latex/hevea/ |
---|
[521] | 79 | |
---|
[5566] | 80 | |
---|
[521] | 81 | %changelog |
---|
[5566] | 82 | * Sat Feb 4 2012 Munehiro Yamamoto <munepi@vinelinux.org> 1.10-1 |
---|
| 83 | - update to 1.10 |
---|
| 84 | |
---|
[1530] | 85 | * Sun Aug 08 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.08-2 |
---|
| 86 | - TeX Live 2009 |
---|
| 87 | |
---|
[521] | 88 | * Sat Aug 30 2008 Shu KONNO <owa@bg.wakwak.com> 1.08-1vl5 |
---|
| 89 | - applied new versioning policy, spec in utf-8 |
---|
| 90 | - fixed scripts about library path |
---|
| 91 | |
---|
| 92 | * Thu Aug 3 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> |
---|
| 93 | - rebuilt for VineSeed (4.0) |
---|
| 94 | |
---|
| 95 | * Thu May 19 2005 Susumu Tanimura <stanimura-ngs@umin.ac.jp> |
---|
| 96 | - Updated to 1.08 with much modification of spec |
---|
| 97 | |
---|
| 98 | * Tue Feb 15 2005 Susumu Tanimura <stanimura-ngs@umin.ac.jp> |
---|
| 99 | - Initial package for VineLinux 3.0 |
---|
| 100 | |
---|