SHA256
1
0
forked from pool/latex2html

- updated to version 2012:

* fix warnings in perl 5.14
  * build fixes
- latex2html-2008.diff was split to share-dir.patch, local.pm 
  (source) and latex2html.1 (source)
- buildroot.diff was renamed to dest-dir.diff and that was extended
  to install icons properly
- fix-defined.patch was removed (upstreamed)
- manual.ps.gz was removed

OBS-URL: https://build.opensuse.org/package/show/Publishing/latex2html?expand=0&rev=16
This commit is contained in:
2013-11-25 15:11:25 +00:00
committed by Git OBS Bridge
parent 5299ad961d
commit d88b677bbb
18 changed files with 407 additions and 495 deletions

View File

@@ -21,40 +21,39 @@ BuildRequires: fdupes
BuildRequires: ghostscript-fonts-std
BuildRequires: ghostscript-x11
BuildRequires: netpbm
BuildRequires: texlive-dvips
BuildRequires: texlive-kpathsea
BuildRequires: texlive-latex
BuildRequires: xorg-x11
BuildRequires: xorg-x11-devel
%{expand: %%global _texmfmaindir %(kpsewhich -expand-var='$TEXMFMAIN')}
%define share_dir /usr/share/latex2html
Obsoletes: l2h
Provides: l2h
Url: http://www.latex2html.org/
Provides: l2h99_1
Requires: ghostscript_any
Requires: latex2html-pngicons
Requires: netpbm
Requires: perl
Requires: texlive-dvips
Requires: texlive-latex
Version: 2008
Version: 2012
Release: 0
Summary: LaTeX2HTML Converter
Summary: LaTeX to HTML Converter
License: GPL-2.0+
Group: Productivity/Publishing/TeX/Utilities
BuildArch: noarch
Source: http://www.latex2html.org/~latex2ht/current/%{name}-%{version}.tar.gz
Source1: latex2html-manual.ps.gz
Source2: latex2html-manual.tar.bz2
Source3: latex2html-README.SuSE
Source4: testfile.tex
Patch: latex2html-%{version}.diff
Patch1: latex2html-%{version}-binmode.diff
Patch2: latex2html-%{version}-gsout.diff
Patch3: latex2html-%{version}-buildroot.diff
Patch4: latex2html-%{version}-perl-bindir.diff
Patch5: latex2html-%{version}-match-multiline.patch
Patch6: http://patch-tracker.debian.org/patch/series/dl/latex2html/2008-debian1-9/latex2html-fix-defined.patch
Patch7: latex2html-backref-workaround.diff
Source0: http://mirrors.ctan.org/support/latex2html/latex2html-%{version}.tgz
Source1: latex2html-manual.tar.bz2
Source2: latex2html-README.SUSE
Source3: testfile.tex
Source4: local.pm
Source5: latex2html.1
Patch0: latex2html-%{version}-share-dir.diff
Patch1: latex2html-%{version}-perl-bindir.diff
Patch2: latex2html-%{version}-dest-dir.diff
Patch3: latex2html-%{version}-binmode.diff
Patch4: latex2html-%{version}-gsout.diff
Patch5: latex2html-%{version}-match-multiline.diff
Patch6: latex2html-%{version}-backref-workaround.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@@ -62,12 +61,8 @@ LaTeX2HTML lets you easily convert basic LaTeX documents into the HTML
format. This allows both a written and online version even of older
LaTeX texts.
Find documentation in /usr/share/doc/packages/latex2html.
%package pngicons
Provides: l2h-pngicons
Obsoletes: l2h-pngicons
Summary: Icons in the PNG format for the LaTeX to HTML Converter
Summary: Icons in the PNG format for LateX2HTML
License: GPL-2.0+
Group: Productivity/Publishing/TeX/Utilities
@@ -75,7 +70,7 @@ Group: Productivity/Publishing/TeX/Utilities
Icons in the PNG format for the LaTeX to HTML Converter.
%package doc
Summary: LaTeX2HTML Converter
Summary: Documentation for Latex2HTML Converter
License: GPL-2.0+ and LPPL-1.3c
Group: Productivity/Publishing/TeX/Utilities
@@ -85,38 +80,33 @@ format. This allows both a written and online version even of older
LaTeX texts.
%prep
%setup
%setup -a 2
%patch
%setup -a 1
%patch0
%patch1
%patch2
%patch3
%patch4
%patch5 -p1
%patch6 -p1
%patch7
cp %{S:1} manual.ps.gz
cp %{S:3} README.SuSE
%patch5
%patch6
cp %{S:2} README.SUSE
cp %{S:4} .
%build
./configure --prefix=%{_prefix}
make
#removing files with zero-length
rm manual/{images.idx,Simages.cb,Pimages.cb,Oimages.cb,Mimages.cb,Himages.cb,Eimages.cb,Pimages.aux,Simages.aux,Oimages.aux,Mimages.aux,Himages.aux}
%install
export RPM_BUILD_ROOT
make install
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1
install -m 644 latex2html.man $RPM_BUILD_ROOT/%{_mandir}/man1/latex2html.1
rm -r $RPM_BUILD_ROOT%{share_dir}/{docs,example,dot.latex2html-init,readme.hthtml}
chmod 755 $RPM_BUILD_ROOT%{_datadir}/%{name}/{cweb2html/makemake.pl,cweb2html/cweb2html,makemap,makeseg/makeseg}
make DESTDIR=%{buildroot} install
mkdir -p %{buildroot}/%{_mandir}/man1
install -m 644 %{S:5} %{buildroot}/%{_mandir}/man1
rm -r %{buildroot}%{share_dir}/{docs,example,dot.latex2html-init,readme.hthtml}
chmod 755 %{buildroot}%{_datadir}/%{name}/{cweb2html/makemake.pl,cweb2html/cweb2html,makemap,makeseg/makeseg}
#removing out-dated url.sty [#283760]
rm ${RPM_BUILD_ROOT}%{_texmfmaindir}/tex/latex/html/url.sty
%fdupes -s $RPM_BUILD_ROOT
rm %{buildroot}%{_texmfmaindir}/tex/latex/html/url.sty
%fdupes -s %{buildroot}
%check
LATEX2HTMLDIR=%buildroot/%{share_dir} ./latex2html --test_mode %{S:4}
LATEX2HTMLDIR=%buildroot/%{share_dir} ./latex2html --test_mode %{S:3}
%postun
mkdir -p var/adm/SuSEconfig
@@ -128,10 +118,8 @@ touch var/adm/SuSEconfig/run-texhash
%files
%defattr(-, root, root)
%doc README.SuSE
%doc README.SUSE
%doc Changes FAQ README TODO dot.latex2html-init readme.hthtml
#%doc %{_defaultdocdir}/latex2html/manual
#%doc %{_defaultdocdir}/latex2html/manual.ps.gz
/usr/lib/latex2html
%dir %{share_dir}
%{share_dir}/*.pm
@@ -159,7 +147,7 @@ touch var/adm/SuSEconfig/run-texhash
%files doc
%defattr(-,root,root)
%doc manual.ps.gz
%doc manual
%doc tests
%doc example