LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File latex2html.spec of Package latex2html (Project Publishing)

#
# spec file for package latex2html
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           latex2html
BuildRequires:  fdupes
BuildRequires:  ghostscript-fonts-std
BuildRequires:  ghostscript-x11
BuildRequires:  netpbm
BuildRequires:  texlive-latex
BuildRequires:  xorg-x11
BuildRequires:  xorg-x11-devel
%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-latex
Version:        2008
Release:        0
Summary:        LaTeX2HTML Converter
License:        GPL-2.0+
Group:          Productivity/Publishing/TeX/Utilities
BuildArch:      noarch
Source:         latex2html-%{version}.tar.bz2
Source1:        latex2html-manual.ps.gz
Source2:        latex2html-manual.tar.bz2
Source3:        latex2html-README.SuSE
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
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
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.



Authors:
--------
    Jens Lippmann <lippmann@cdc.informatik.tu-darmstadt.de>
    Nikos Drakos <nikos@cbl.leeds.ac.uk>
    Ross Moore <ross@mpce.mq.edu.au>

%package pngicons
Provides:       l2h-pngicons
Obsoletes:      l2h-pngicons
Summary:        Icons in the PNG format for the LaTeX to HTML Converter
License:        GPL-2.0+
Group:          Productivity/Publishing/TeX/Utilities

%description pngicons
Icons in the PNG format for the LaTeX to HTML Converter.



Authors:
--------
    Jens Lippmann <lippmann@cdc.informatik.tu-darmstadt.de>
    Nikos Drakos <nikos@cbl.leeds.ac.uk>
    Ross Moore <ross@mpce.mq.edu.au>

%package doc
Summary:        LaTeX2HTML Converter
License:        GPL-2.0+ and LPPL-1.3c
Group:          Productivity/Publishing/TeX/Utilities

%description doc
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.



Authors:
--------
    Jens Lippmann <lippmann@cdc.informatik.tu-darmstadt.de>
    Nikos Drakos <nikos@cbl.leeds.ac.uk>
    Ross Moore <ross@mpce.mq.edu.au>

%prep
%setup 
%setup -a 2 
%patch
%patch1
%patch2
%patch3
%patch4
%patch5 -p1
cp %{S:1} manual.ps.gz
cp %{S:3} README.SuSE

%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}
#removing out-dated url.sty [#283760]
rm $RPM_BUILD_ROOT/usr/lib/texmf/tex/latex/html/url.sty
%fdupes -s $RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%postun
mkdir -p var/adm/SuSEconfig
touch var/adm/SuSEconfig/run-texhash

%post
mkdir -p var/adm/SuSEconfig
touch var/adm/SuSEconfig/run-texhash

%files
%defattr(-, root, root)
%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
%{share_dir}/IndicTeX-HTML
%{share_dir}/L2hos
%{share_dir}/XyMTeX-HTML
%{share_dir}/cweb2html
%{share_dir}/foilhtml
%{share_dir}/icons/*.html
%{share_dir}/icons/*.gif
%{share_dir}/makemap
%{share_dir}/makeseg
%{share_dir}/styles
%{share_dir}/texinputs
%{share_dir}/versions
/usr/bin/*
/usr/lib/texmf/tex/latex/html
%{_mandir}/man1/latex2html*

%files pngicons
%defattr(-, root, root)
%dir %{share_dir}
%dir %{share_dir}/icons
%{share_dir}/icons/*.png

%files doc
%defattr(-,root,root)
%doc manual.ps.gz
%doc tests
%doc example

%changelog