|
@@ -1,61 +1,87 @@
|
|
-Summary: LaTeX to html translator
|
|
+%define tex_destdir %{_datadir}
|
|
-Summary(ja): LaTeXをHTMLに変換
|
|
+%define texmf %{tex_destdir}/texmf
|
|
-Name: hevea
|
|
+
|
|
-Version: 1.08
|
|
+Summary: LaTeX to HTML translator
|
|
-Release: 2%{?_dist_release}
|
|
+Summary(ja): LaTeXをHTMLに変換
|
|
-License: Q Public License
|
|
+Name: hevea
|
|
-Group: Applications/Publishing
|
|
+Version: 1.10
|
|
-URL: http://para.inria.fr/~maranget/hevea/
|
|
+Release: 1%{?_dist_release}
|
|
-Source: %{name}-%{version}.tar.gz
|
|
+License: QPL
|
|
-BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
+Group: Applications/Publishing
|
|
-Vendor: Project Vine
|
|
+URL: http://hevea.inria.fr/
|
|
-Distribution: Vine Linux
|
|
+Source: http://hevea.inria.fr/distri/hevea-%{version}.tar.gz
|
|
-Packager: Susumu Tanimura <stanimura-ngs@umin.ac.jp>
|
|
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
-BuildRequires: ocaml texlive
|
|
+Vendor: Project Vine
|
|
-Requires: texlive ghostscript
|
|
+Distribution: Vine Linux
|
|
-
|
|
+
|
|
-%define _latexheveadir %{_datadir}/texmf/tex/latex/%{name}
|
|
+%if %{?_dist_release} == "vl5"
|
|
|
|
+BuildRequires: tetex
|
|
|
|
+%endif
|
|
|
|
+%if %{?_dist_release} >= "vl6"
|
|
|
|
+BuildRequires: texlive-common
|
|
|
|
+%endif
|
|
|
|
+BuildRequires: ocaml >= 3.0.7
|
|
|
|
+%if %{?_dist_release} == "vl5"
|
|
|
|
+Requires: tetex
|
|
|
|
+%endif
|
|
|
|
+%if %{?_dist_release} >= "vl6"
|
|
|
|
+Requires: texlive-common
|
|
|
|
+%endif
|
|
|
|
+Requires: netpbm-progs ghostscript
|
|
|
|
|
|
%description
|
|
%description
|
|
-HEVEA is a LaTeX to HTML translator. The input language is a fairly
|
|
+HEVEA is a quite complete and fast LATEX to HTML translator.
|
|
-complete subset of LaTeX2e (old LaTeX style is also accepted) and the
|
|
+HEVEA renders symbols by using the so-called HTML "entites", which
|
|
-output language is HTML that is (hopefully) correct with respect to
|
|
+modern browsers display correctly most of the time.
|
|
-version 4.0 (transitional).
|
|
|
|
|
|
|
|
%description -l ja
|
|
%description -l ja
|
|
HEVEA は LaTeX を HTML に変換するプログラムです.
|
|
HEVEA は LaTeX を HTML に変換するプログラムです.
|
|
-HTML 4.0 (transitional) に変換します.
|
|
+
|
|
|
|
|
|
%prep
|
|
%prep
|
|
%setup -q
|
|
%setup -q
|
|
|
|
|
|
|
|
+# Set our default paths
|
|
|
|
+%__sed -i -e "s#\(BINDIR=\).*#\\1%{_bindir}#; \
|
|
|
|
+ s#\(LIBDIR=\).*#\\1%{_datadir}/%{name}#; \
|
|
|
|
+ s#\(LATEXLIBDIR=\).*#\\1%{texmf}/tex/latex/hevea#; \
|
|
|
|
+ s#\(DESTDIR=\).*#\\1%{buildroot}#; \
|
|
|
|
+ " config.sh
|
|
|
|
+
|
|
%build
|
|
%build
|
|
-%{__make} \
|
|
+%__make %{?_smp_mflags} \
|
|
- TARGET=opt \
|
|
+ PREFIX=%{_prefix} \
|
|
- LIBDIR=%{_datadir}/%{name} \
|
|
+ LIBDIR=%{_datadir}/hevea \
|
|
- BINDIR=%{_bindir}
|
|
+ BINDIR=%{_bindir} \
|
|
|
|
+ LATEXLIBDIR=%{texmf}/tex/latex/hevea
|
|
|
|
|
|
%install
|
|
%install
|
|
-%makeinstall PREFIX=$RPM_BUILD_ROOT/usr
|
|
+%__rm -rf %{buildroot}
|
|
-%{__install} -d $RPM_BUILD_ROOT%{_latexheveadir}
|
|
+%__make install \
|
|
-#%{__mv} -f $RPM_BUILD_ROOT%{_libdir}/%{name}/%{name}.sty $RPM_BUILD_ROOT%{_latexheveadir}
|
|
+ DESTDIR=%{buildroot} \
|
|
-%{__mv} -f $RPM_BUILD_ROOT%{_prefix}/lib/%{name}/%{name}.sty $RPM_BUILD_ROOT%{_latexheveadir}
|
|
+ PREFIX=%{_prefix} \
|
|
|
|
+ LIBDIR=%{_datadir}/hevea \
|
|
|
|
+ BINDIR=%{_bindir} \
|
|
|
|
+ LATEXLIBDIR=%{texmf}/tex/latex/hevea
|
|
|
|
|
|
%clean
|
|
%clean
|
|
-rm -rf $RPM_BUILD_ROOT
|
|
+%__rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
%post -p %{_bindir}/texhash
|
|
%post -p %{_bindir}/texhash
|
|
%postun -p %{_bindir}/texhash
|
|
%postun -p %{_bindir}/texhash
|
|
|
|
|
|
%files
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
-%doc CHANGES README LICENSE
|
|
+%doc README CHANGES LICENSE
|
|
%{_bindir}/*
|
|
%{_bindir}/*
|
|
-#%{_libdir}/%{name}/*
|
|
+%{_datadir}/hevea
|
|
-%{_prefix}/lib/%{name}/*
|
|
+%{texmf}/tex/latex/hevea/
|
|
-%{_latexheveadir}/*.sty
|
|
+
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Sat Feb 4 2012 Munehiro Yamamoto <munepi@vinelinux.org> 1.10-1
|
|
|
|
+- update to 1.10
|
|
|
|
+
|
|
* Sun Aug 08 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.08-2
|
|
* Sun Aug 08 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.08-2
|
|
- TeX Live 2009
|
|
- TeX Live 2009
|
|
|
|
|