Browse Source

updated hevea-vl.spec

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@5566 ec354946-7b23-47d6-9f5a-488ba84defc7
munepi 12 years ago
parent
commit
fa48dd3e05
1 changed files with 61 additions and 35 deletions
  1. 61 35
      h/hevea/hevea-vl.spec

+ 61 - 35
h/hevea/hevea-vl.spec

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