diff --git a/.gitignore b/.gitignore index f6a3a77..3a3de69 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,6 @@ -/*.tar.gz +l2h-2002-2-1+jp2.0.patch.gz +latex2html-2002-2-1.tar.bz2 +latex2html-manpages.tar.bz2 +latex2html-2002-2-1.tar.gz +l2h-2K2-2-1+jp2.1b1.6.patch.gz +latex2html-manpages.tar.gz diff --git a/cfgcache.pm b/cfgcache.pm index cea2f57..4cdfbc2 100644 --- a/cfgcache.pm +++ b/cfgcache.pm @@ -11,13 +11,10 @@ require Exporter; @ISA = qw(Exporter); @EXPORT = qw(%cfg); -$cfg{'ANYTOPNM'} = q'/usr/bin/anytopnm'; $cfg{'BINDIR'} = q'/usr/bin'; -$cfg{'BMPTOPPM'} = q'/usr/bin/bmptoppm'; $cfg{'CRAYOLAFILE'} = q'/usr/share/latex2html/styles/crayola.txt'; $cfg{'DVIPS'} = q'/usr/bin/dvips'; $cfg{'DVIPSOPT'} = q' -E'; -$cfg{'GIFTOPNM'} = q'/usr/bin/giftopnm'; $cfg{'GS'} = q'/usr/bin/gs'; $cfg{'GSALIASDEVICE'} = q'ppmraw'; $cfg{'GSDEVICE'} = q'pnmraw'; @@ -26,58 +23,40 @@ $cfg{'GS_LIB'} = q''; $cfg{'HASHBANG'} = q'1'; $cfg{'HTML_VALIDATOR'} = q''; $cfg{'ICONPATH'} = q'file:/usr/share/latex2html/icons'; -$cfg{'ICONSERVER'} = q''; $cfg{'ICONSTORAGE'} = q''; -$cfg{'IMAGE_TYPES'} = q'svg png gif'; +$cfg{'IMAGE_TYPES'} = q'png gif'; $cfg{'INITEX'} = q'/usr/bin/initex'; -$cfg{'JPEGTOPNM'} = q'/usr/bin/jpegtopnm'; $cfg{'KPSEWHICH'} = q'/usr/bin/kpsewhich'; $cfg{'LATEX'} = q'/usr/bin/latex'; $cfg{'LATEX2HTMLDIR'} = q'/usr/share/latex2html'; -$cfg{'LATEX2HTMLPLATDIR'} = q'/usr/share/latex2html'; $cfg{'LIBDIR'} = q'/usr/share/latex2html'; $cfg{'METADPI'} = q'0'; $cfg{'METAMODE'} = q''; $cfg{'MKTEXLSR'} = q'/usr/bin/mktexlsr'; $cfg{'NULLFILE'} = q'/dev/null'; $cfg{'PBMMAKE'} = q'/usr/bin/pbmmake'; -$cfg{'PCXTOPPM'} = q'/usr/bin/pcxtoppm'; $cfg{'PERL'} = q'/usr/bin/perl'; $cfg{'PERLFOOTER'} = q''; $cfg{'PERLHEADER'} = <<'EOQ'; #! /usr/bin/perl -w EOQ $cfg{'PERLSCRIPTDIR'} = q'/usr/bin'; -$cfg{'PICTTOPPM'} = q''; $cfg{'PK_GENERATION'} = q'0'; -$cfg{'PNGTOPNM'} = q'/usr/bin/pngtopnm'; -$cfg{'PNMBLACK'} = q''; $cfg{'PNMCAT'} = q'/usr/bin/pnmcat'; $cfg{'PNMCROP'} = q'/usr/bin/pnmcrop'; -$cfg{'PNMCROPOPT'} = q' -sides '; -$cfg{'PNMCUT'} = q'/usr/bin/pnmcut'; $cfg{'PNMFILE'} = q'/usr/bin/pnmfile'; $cfg{'PNMFLIP'} = q'/usr/bin/pnmflip'; -$cfg{'PNMPAD'} = q'/usr/bin/pnmpad'; -$cfg{'PNMROTATE'} = q'/usr/bin/pnmrotate'; -$cfg{'PNMSCALE'} = q'/usr/bin/pnmscale'; $cfg{'PNMTOPNG'} = q'/usr/bin/pnmtopng'; $cfg{'PPMQUANT'} = q'/usr/bin/ppmquant'; $cfg{'PPMTOGIF'} = q'/usr/bin/ppmtogif'; -$cfg{'PPMTOJPEG'} = q'/usr/bin/ppmtojpeg'; $cfg{'PREFIX'} = q'/usr'; $cfg{'RGBCOLORFILE'} = q'/usr/share/X11/rgb.txt'; -$cfg{'SGITOPNM'} = q'/usr/bin/sgitopnm'; -$cfg{'SHLIBDIR'} = q'/usr/share/latex2html'; $cfg{'TEX'} = q'/usr/bin/tex'; $cfg{'TEXPATH'} = q'/usr/share/texmf/tex/latex/html'; -$cfg{'TIFFTOPNM'} = q'/usr/bin/tifftopnm'; $cfg{'TMPSPACE'} = q'/tmp'; $cfg{'WEB2C'} = q'1'; -$cfg{'XBMTOPBM'} = q'/usr/bin/xbmtopbm'; -$cfg{'XWDTOPNM'} = q'/usr/bin/xwdtopnm'; $cfg{'dd'} = q'/'; -$cfg{'distver'} = q'2008'; +$cfg{'distver'} = q'2K.1beta'; $cfg{'exec_extension'} = q''; $cfg{'gif_interlace'} = q'netpbm'; $cfg{'gif_trans'} = q'netpbm'; @@ -90,7 +69,7 @@ $cfg{'pipes'} = q'1'; $cfg{'plat'} = q'unix'; $cfg{'scriptdir'} = q'/usr/bin'; $cfg{'scriptext'} = q''; -$cfg{'srcdir'} = q'/X/latex2html-2008'; +$cfg{'srcdir'} = q'/X/tetex/teTeX-1.0/latex2html-2K.1beta'; $cfg{'texlive'} = q'0'; $cfg{'wrapper'} = q'0'; diff --git a/latex2html-2002-2-1-gsfont.patch b/latex2html-2002-2-1-gsfont.patch new file mode 100644 index 0000000..d098505 --- /dev/null +++ b/latex2html-2002-2-1-gsfont.patch @@ -0,0 +1,11 @@ +--- latex2html-2002-2-1/config/config.pl.gsfont 2002-09-28 07:15:01.000000000 +0200 ++++ latex2html-2002-2-1/config/config.pl 2005-03-16 10:50:17.392513136 +0100 +@@ -1176,7 +1176,7 @@ + push(@right_paths,L2hos->path2os($testpath)); + $gs_lib = 1; + } +- $testpath .= "${dd}fonts" unless($testpath =~ /\Q$dd\Efonts$/i); ++ $testpath .= "${dd}fonts" unless($testpath =~ /\Q$dd\Efonts/i); + if(!$gs_fonts && -d $testpath) { + push(@right_paths,L2hos->path2os($testpath)); + $gs_fonts = 1; diff --git a/latex2html-2002.2.1-grayimg.patch b/latex2html-2002.2.1-grayimg.patch new file mode 100644 index 0000000..329359d --- /dev/null +++ b/latex2html-2002.2.1-grayimg.patch @@ -0,0 +1,11 @@ +--- latex2html-2002-2-1/pstoimg.pin.grayimg 2005-05-04 11:20:46.000000000 +0200 ++++ latex2html-2002-2-1/pstoimg.pin 2005-06-21 14:54:30.899550448 +0200 +@@ -1021,7 +1021,7 @@ sub ps2pnm { + } + my $had_nonwhite; + if($opt{white}) { +- $had_nonwhite = ($ps =~ s/(\n\d+ \d+ bop gsave) \d*\.\d+ (TeXcolorgray clippath fill grestore)/$1 1 $2/s); ++ $had_nonwhite = ($ps =~ s/(\d+ \d+ bop gsave) \d*\.\d+ (TeXcolorgray clippath fill grestore)/$1 1 $2/s); + } + $ps_changed = $had_papersize || $had_nonwhite; + if($ps_changed) { diff --git a/latex2html-2018.2-teTeX-l2h-config.patch b/latex2html-2018.2-teTeX-l2h-config.patch deleted file mode 100644 index 31e279e..0000000 --- a/latex2html-2018.2-teTeX-l2h-config.patch +++ /dev/null @@ -1,11 +0,0 @@ -diff -up latex2html-2018.2/latex2html-2018.2/config/config.pl.me latex2html-2018.2/latex2html-2018.2/config/config.pl ---- latex2html-2018.2/latex2html-2018.2/config/config.pl.me 2018-06-22 16:43:28.830829027 +0200 -+++ latex2html-2018.2/latex2html-2018.2/config/config.pl 2018-06-22 16:43:58.532706324 +0200 -@@ -635,6 +635,7 @@ $abs_path_names = &get_name('ABSPATHS'); - # DBM check - # -------------------------------------------------------------------------- - -+use DB; - &checking('if perl supports some dbm'); - - my %array; diff --git a/latex2html-2K.1beta-DB.patch b/latex2html-2K.1beta-DB.patch new file mode 100644 index 0000000..1f1ef64 --- /dev/null +++ b/latex2html-2K.1beta-DB.patch @@ -0,0 +1,11 @@ +--- teTeX-1.0/latex2html-2K.1beta/config/config.pl.DB Wed Jan 16 13:08:34 2002 ++++ teTeX-1.0/latex2html-2K.1beta/config/config.pl Wed Jan 16 13:09:14 2002 +@@ -587,7 +587,7 @@ + + &checking('if perl supports some dbm'); + +-use DB_File; ++use DB; + my %array; + unless(eval {dbmopen(%array,'DBMtest',0755)}) { + my $err = $@ || 'dbmopen failed'; diff --git a/latex2html-2K.1beta-tabularx.patch b/latex2html-2K.1beta-tabularx.patch new file mode 100644 index 0000000..90ed3be --- /dev/null +++ b/latex2html-2K.1beta-tabularx.patch @@ -0,0 +1,26 @@ +--- latex2html-2K.1beta/versions/table.pl.tabularx Fri Nov 14 11:10:52 1997 ++++ latex2html-2K.1beta/versions/table.pl Wed Jan 24 15:11:01 2001 +@@ -121,6 +121,10 @@ + $htmlcolspec .= ""; + push(@colspec,"$cellopen=RIGHT NOWRAP>$content_mark$cellclose"); + $cols++; ++ } elsif ( $char eq "X" ) { ++ $htmlcolspec .= ""; ++ push(@colspec,"$cellopen=LEFT>$content_mark$cellclose"); ++ $cols++; + } elsif ( $char eq "p" ) { + $colspec =~ s/$next_pair_rx//; + ($pts,$len) = &convert_length($2); +@@ -170,7 +174,11 @@ + local($_) = @_; + s/$next_pair_rx//; + local($pts,$len) = &convert_length($2); +- &do_env_tabular($_," width=$pts"); ++ if ($pts != "") { ++ &do_env_tabular($_," width=$pts"); ++ } else { ++ &do_env_tabular($_); ++ } + } + + sub do_env_tabular { diff --git a/latex2html.spec b/latex2html.spec index 520bf65..d04f6e5 100644 --- a/latex2html.spec +++ b/latex2html.spec @@ -1,31 +1,31 @@ -%if 0%{?fedora} %define enable_japanese 1 -%else -%define enable_japanese 0 -%endif +%define latex2html_ver 2002-2-1 Summary: Converts LaTeX documents to HTML Name: latex2html -Version: 2026 -Release: 2%{?dist} -License: GPL-2.0-or-later -URL: https://github.com/latex2html/latex2html/releases -# main latex2html source -Source0: https://github.com/%{name}/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz +Version: 2002.2.1 +Release: 8%{?dist} +License: Free To Use But Restricted (See LICENSE) +Group: Applications/Publishing +URL: http://www.latex2html.org/ +Source0: http://saftsack.fs.uni-bayreuth.de/~latex2ht/current/%{name}-%{latex2html_ver}.tar.gz Source1: cfgcache.pm Source2: %{name}-manpages.tar.gz -# support for Japanese -# http://takeno.iee.niit.ac.jp/~shige/TeX/latex2html/ -Source3: http://takeno.iee.niit.ac.jp/~shige/TeX/latex2html/data2/l2h-2026-jp3.2b1.43.tar.gz -Patch1: latex2html-2018.2-teTeX-l2h-config.patch -Patch2: latex2html-2002-2-1-SHLIB.patch -Requires: tex(latex), tex(dvips), tex(url.sty), tex(preview.sty), netpbm-progs, poppler-utils -BuildRequires: tex(latex), tex(dvips), tex(url.sty), tex(preview.sty), netpbm-progs, poppler-utils -BuildRequires: perl-interpreter >= 5.003, perl-generators, ghostscript >= 4.03 -BuildRequires: perl(Carp), perl(Config), perl(Cwd), perl(DB), perl(Exporter), -BuildRequires: perl(File::Copy), perl(FindBin), perl(IO::File), perl(Sys::Hostname) -BuildRequires: perl(Unicode::Collate::Locale), perl(lib), perl(strict), perl(vars) -BuildRequires: make +Patch0: latex2html-2K.1beta-tabularx.patch +Patch1: teTeX-l2h-config.patch +Patch3: latex2html-2K.1beta-DB.patch +Patch4: latex2html-2002-2-1-SHLIB.patch +Patch5: latex2html-2002-2-1-gsfont.patch +Patch6: latex2html-2002.2.1-grayimg.patch + +### +# Japanization patches +### +Patch100: http://takeno.iee.niit.ac.jp/~shige/TeX/latex2html/current/data/l2h-2K2-2-1+jp2.1b1.6.patch.gz + +Requires: tetex-latex, tetex-dvips +BuildRequires: perl >= 5.003, ghostscript >= 4.03, netpbm >= 9.21, tetex-latex +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch %description @@ -37,155 +37,163 @@ LATEX2HTML does also a good job in rapid web site deployment. These pages are generated from a single LATEX source. %prep -%setup -q -c -a 0 +%setup -q -n %{name}-%{version} -c -a 0 + +pushd %{name}-%{latex2html_ver} +# patch latex2html to support tabularx environments better +%patch0 -p1 -b .tabularx -pushd %{name}-%{version} # Patch from Oliver Paukstadt -%patch -P1 -p2 -b .config +%patch1 -p2 -b .config + +# Fix latex2html not to use DB_File +%patch3 -p2 -b .db_file # fix SHLIBDIR -%patch -P2 -p1 -b .shlib +%patch4 -p1 -b .shlib + +# don't require the font directory to be ended with PATH/fonts +%patch5 -p1 -b .gsfont # remove all platforms we don't need for i in Dos Mac OS2 Win32; do rm -f L2hos/${i}.pm done -rm -rf cweb2html -rm -f readme.hthtml popd %if %{enable_japanese} -cp -a %{name}-%{version} %{name}-%{version}JA -pushd %{name}-%{version}JA -tar fxz %{SOURCE3} +cp -a %{name}-%{latex2html_ver} %{name}-%{latex2html_ver}JA +pushd %{name}-%{latex2html_ver}JA +# JA patches for latex2html. +%patch100 -p1 -b .jp2 popd %endif +pushd %{name}-%{latex2html_ver} +# don't generate gray images as output from latex2html +# it's patched here to let the .jp2 patch be cleanly applied +%patch6 -p1 -b .grayimg +popd + %build -pushd %{name}-%{version} +pushd %{name}-%{latex2html_ver} cp %{SOURCE1} cfgcache.pm tar fxz %{SOURCE2} -./configure --program-prefix=%{?_program_prefix} \ - --prefix=%{_prefix} \ - --exec-prefix=%{_exec_prefix} \ - --bindir=%{_bindir} \ - --sbindir=%{_sbindir} \ - --sysconfdir=%{_sysconfdir} \ - --datadir=%{_datadir} \ - --includedir=%{_includedir} \ - --libdir=%{_datadir}/latex2html \ - --libexecdir=%{_libexecdir} \ - --localstatedir=%{_localstatedir} \ - --sharedstatedir=%{_sharedstatedir} \ - --mandir=%{_mandir} \ - --infodir=%{_infodir} \ - --shlibdir=%{_datadir}/latex2html \ - --with-texpath=%{_datadir}/texmf/tex/latex/html - -perl -pi -e "s,/usr/(share/)?lib,%{_datadir}," cfgcache.pm +./configure --program-prefix=%{?_program_prefix} \ + --prefix=%{_prefix} \ + --exec-prefix=%{_exec_prefix} \ + --bindir=%{_bindir} \ + --sbindir=%{_sbindir} \ + --sysconfdir=%{_sysconfdir} \ + --datadir=%{_datadir} \ + --includedir=%{_includedir} \ + --libdir=%{_datadir}/latex2html \ + --libexecdir=%{_libexecdir} \ + --localstatedir=%{_localstatedir} \ + --sharedstatedir=%{_sharedstatedir} \ + --mandir=%{_mandir} \ + --infodir=%{_infodir} \ + --shlibdir=%{_datadir}/latex2html \ + --with-texpath=%{_datadir}/texmf/tex/latex/html + +perl -pi -e"s,/usr/(share/)?lib,%{_datadir}," cfgcache.pm make popd %if %{enable_japanese} -pushd %{name}-%{version}JA +pushd %{name}-%{latex2html_ver}JA sed s/latex2html/jlatex2html/g < %{SOURCE1} > cfgcache.pm -perl -pi -e "s,/usr/bin/dvips,/usr/bin/pdvips," cfgcache.pm -perl -pi -e "s,/usr/bin/latex,/usr/bin/platex," cfgcache.pm +perl -pi -e"s,/usr/bin/dvips,/usr/bin/pdvips," cfgcache.pm +perl -pi -e"s,/usr/bin/latex,/usr/bin/platex," cfgcache.pm -./configure --program-prefix=%{?_program_prefix} \ - --prefix=%{_prefix} \ - --exec-prefix=%{_exec_prefix} \ - --bindir=%{_bindir} \ - --sbindir=%{_sbindir} \ - --sysconfdir=%{_sysconfdir} \ - --datadir=%{_datadir} \ - --includedir=%{_includedir} \ - --libdir=%{_datadir}/jlatex2html \ - --libexecdir=%{_libexecdir} \ - --localstatedir=%{_localstatedir} \ - --sharedstatedir=%{_sharedstatedir} \ - --mandir=%{_mandir} \ - --infodir=%{_infodir} \ - --shlibdir=%{_datadir}/jlatex2html \ - --with-texpath=%{_datadir}/texmf/tex/latex/html +./configure --program-prefix=%{?_program_prefix} \ + --prefix=%{_prefix} \ + --exec-prefix=%{_exec_prefix} \ + --bindir=%{_bindir} \ + --sbindir=%{_sbindir} \ + --sysconfdir=%{_sysconfdir} \ + --datadir=%{_datadir} \ + --includedir=%{_includedir} \ + --libdir=%{_datadir}/jlatex2html \ + --libexecdir=%{_libexecdir} \ + --localstatedir=%{_localstatedir} \ + --sharedstatedir=%{_sharedstatedir} \ + --mandir=%{_mandir} \ + --infodir=%{_infodir} \ + --shlibdir=%{_datadir}/jlatex2html \ + --with-texpath=%{_datadir}/texmf/tex/latex/html -perl -pi -e "s,/usr/(share/)?lib,%{_datadir},; - s,%{_datadir}/latex2html,%{_datadir}/jlatex2html," cfgcache.pm +perl -pi -e"s,/usr/(share/)?lib,%{_datadir},; + s,%{_datadir}/latex2html,%{_datadir}/jlatex2html," cfgcache.pm make -perl -pi -e "s,\\\$\{dd}pstoimg,\\\$\{dd}jpstoimg, ; - s,\\\$\{dd}texexpand,\\\$\{dd}jtexexpand," l2hconf.pm +perl -pi -e"s,${RPM_BUILD_ROOT},," l2hconf.pm +perl -pi -e"s,\\\${dd}pstoimg,\\\${dd}jpstoimg, ; + s,\\\${dd}texexpand,\\\${dd}jtexexpand," l2hconf.pm for i in latex2html pstoimg texexpand ; do - mv ${i} j${i} + mv ${i} j${i} done popd %endif %install -pushd %{name}-%{version} -sed -i "s,%{_prefix},%{buildroot}%{_prefix}," cfgcache.pm -sed -i "s,%{buildroot},," l2hconf.pm +rm -rf $RPM_BUILD_ROOT -perl -pi -e "s,/.*\\\$\{dd}texexpand,%{_bindir}/texexpand,; - s,/.*\\\$\{dd}pstoimg,%{_bindir}/pstoimg,; - s,/.*\\\$\{dd}*icons,\\\$\{LATEX2HTMLDIR}/icons,; - s,/.*\\\$\{dd}rgb.txt,\\\$\{LATEX2HTMLDIR}/styles/rgb.txt,; - s,/.*\\\$\{dd}styles\\\$\{dd}crayola.txt,\\\$\{LATEX2HTMLDIR}/styles/crayola.txt," latex2html +pushd %{name}-%{latex2html_ver} +perl -pi -e"s,%{_prefix},${RPM_BUILD_ROOT}%{_prefix}," cfgcache.pm +perl -pi -e"s,/.*\\\${dd}texexpand,%{_bindir}/texexpand,; + s,/.*\\\${dd}pstoimg,%{_bindir}/pstoimg,; + s,/.*\\\${dd}*icons,\\\${LATEX2HTMLDIR}/icons,; + s,/.*\\\${dd}rgb.txt,\\\${LATEX2HTMLDIR}/styles/rgb.txt,; + s,/.*\\\${dd}styles\\\${dd}crayola.txt,\\\${LATEX2HTMLDIR}/styles/crayola.txt," latex2html +perl -pi -e"s,$RPM_BUILD_ROOT,," l2hconf.pm make install -rm -rf %{buildroot}%{_datadir}/latex2html/versions/table.pl.orig \ - %{buildroot}%{_datadir}/latex2html/docs/ \ - %{buildroot}%{_datadir}/latex2html/example/ -sed -i "s,/usr/local/bin/perl,/usr/bin/perl," %{buildroot}%{_datadir}/latex2html/makeseg/makeseg -sed -i "s,/usr/local/bin/perl,/usr/bin/perl," %{buildroot}%{_datadir}/latex2html/makemap -sed -i "s,###\!.*,," %{buildroot}%{_datadir}/latex2html/makemap -sed -i "s,###\!.*,," %{buildroot}%{_datadir}/latex2html/makeseg/makeseg -sed -i "s,%{buildroot},," %{buildroot}%{_bindir}/pstoimg -sed -i "s,%{buildroot},," %{buildroot}%{_bindir}/texexpand -sed -i "s,%{buildroot},," cfgcache.pm -sed -i "s,$cfg{'srcdir'}.*,$cfg{'srcdir'} = q'%{name}-%{version}';," cfgcache.pm -perl -pi -e "s,$cfg{'GS_LIB'} = q'';,$cfg{'GS_LIB'} = q'%{_datadir}/ghostscript/`ghostscript --version`';," cfgcache.pm +rm -f %{buildroot}%{_datadir}/latex2html/versions/table.pl.orig +perl -pi -e"s,$RPM_BUILD_ROOT,," %{buildroot}%{_datadir}/latex2html/cfgcache.pm +perl -pi -e"s,$RPM_BUILD_ROOT,," %{buildroot}%{_bindir}/pstoimg +perl -pi -e"s,$RPM_BUILD_ROOT,," %{buildroot}%{_bindir}/texexpand +perl -pi -e"s,$RPM_BUILD_ROOT,," cfgcache.pm +perl -pi -e"s,$cfg{'GS_LIB'} = q'';,$cfg{'GS_LIB'} = q'%{_datadir}/ghostscript/`ghostscript --version`';," cfgcache.pm install -m0644 *.pm %{buildroot}%{_datadir}/latex2html -chmod +x %{buildroot}%{_datadir}/latex2html/makeseg/makeseg %{buildroot}%{_datadir}/latex2html/makemap # install man pages mkdir -p %{buildroot}%{_mandir}/man1 install -m0644 *.1 %{buildroot}%{_mandir}/man1 popd -# install japanese version %if %{enable_japanese} -pushd %{name}-%{version}JA -sed -i "s,%{_prefix},%{buildroot}%{_prefix}," cfgcache.pm -perl -pi -e "s,latex2html pstoimg texexpand,jlatex2html jpstoimg jtexexpand," config/install.pl -perl -pi -e "s,/.*\\\$\{dd}texexpand,%{_bindir}/jtexexpand,; - s,/.*\\\$\{dd}pstoimg,%{_bindir}/jpstoimg,; - s,/.*\\\$\{dd}icons,\\\$\{LATEX2HTMLDIR}/icons,; - s,/.*\\\$\{dd}styles\\\$\{dd}rgb.txt,\\\$\{LATEX2HTMLDIR}/styles/rgb.txt,; - s,/.*\\\$\{dd}styles\\\$\{dd}crayola.txt,\\\$\{LATEX2HTMLDIR}/styles/crayola.txt," jlatex2html -sed -i "s,%{buildroot},," l2hconf.pm +pushd %{name}-%{latex2html_ver}JA +perl -pi -e"s,%{_prefix},${RPM_BUILD_ROOT}%{_prefix}," cfgcache.pm +perl -pi -e"s,latex2html pstoimg texexpand,jlatex2html jpstoimg jtexexpand," config/install.pl +perl -pi -e"s,/.*\\\${dd}texexpand,%{_bindir}/jtexexpand,; + s,/.*\\\${dd}pstoimg,%{_bindir}/jpstoimg,; + s,/.*\\\${dd}icons,\\\${LATEX2HTMLDIR}/icons,; + s,/.*\\\${dd}styles\\\${dd}rgb.txt,\\\${LATEX2HTMLDIR}/styles/rgb.txt,; + s,/.*\\\${dd}styles\\\${dd}crayola.txt,\\\${LATEX2HTMLDIR}/styles/crayola.txt," jlatex2html +perl -pi -e"s,$RPM_BUILD_ROOT,," l2hconf.pm make install -rm -rf %{buildroot}%{_datadir}/jlatex2html/versions/table.pl.orig \ - %{buildroot}%{_datadir}/jlatex2html/docs/ \ - %{buildroot}%{_datadir}/jlatex2html/example/ -sed -i "s,/usr/local/bin/perl,/usr/bin/perl," %{buildroot}%{_datadir}/jlatex2html/makeseg/makeseg -sed -i "s,/usr/local/bin/perl,/usr/bin/perl," %{buildroot}%{_datadir}/jlatex2html/makemap -sed -i "s,###\!.*,," %{buildroot}%{_datadir}/jlatex2html/makemap -sed -i "s,###\!.*,," %{buildroot}%{_datadir}/jlatex2html/makeseg/makeseg -sed -i "s,%{buildroot},," %{buildroot}%{_bindir}/jpstoimg -sed -i "s,%{buildroot},," %{buildroot}%{_bindir}/jtexexpand -sed -i "s,%{buildroot},," cfgcache.pm -sed -i "s,$cfg{'srcdir'}.*,$cfg{'srcdir'} = q'%{name}-%{version}JA';," cfgcache.pm -perl -pi -e "s,$cfg{'GS_LIB'} = q'';,$cfg{'GS_LIB'} = q'%{_datadir}/ghostscript/`ghostscript --version`';," cfgcache.pm +rm -f %{buildroot}%{_datadir}/jlatex2html/versions/table.pl.orig +perl -pi -e"s,$RPM_BUILD_ROOT,," %{buildroot}%{_datadir}/jlatex2html/cfgcache.pm +perl -pi -e"s,$RPM_BUILD_ROOT,," %{buildroot}%{_bindir}/jpstoimg +perl -pi -e"s,$RPM_BUILD_ROOT,," %{buildroot}%{_bindir}/jtexexpand +perl -pi -e"s,$RPM_BUILD_ROOT,," cfgcache.pm +perl -pi -e"s,$cfg{'GS_LIB'} = q'';,$cfg{'GS_LIB'} = q'%{_datadir}/ghostscript/`ghostscript --version`';," cfgcache.pm install -m0644 *.pm %{buildroot}%{_datadir}/jlatex2html -chmod +x %{buildroot}%{_datadir}/jlatex2html/makeseg/makeseg %{buildroot}%{_datadir}/jlatex2html/makemap popd %endif -# do not clash with texlive, prefer url.sty from texlive instead -rm -f %{buildroot}%{_datadir}/texmf/tex/latex/html/url.sty +for f in cweb2html/cweb2html makeseg/makeseg makemap ; do + perl -pi -e "s,/usr/local/bin/perl,/usr/bin/perl," $RPM_BUILD_ROOT%{_datadir}/latex2html/$f +%if %{enable_japanese} + perl -pi -e "s,/usr/local/bin/perl,/usr/bin/perl," $RPM_BUILD_ROOT%{_datadir}/jlatex2html/$f +%endif +done + +%clean +rm -rf $RPM_BUILD_ROOT %post [ -x %{_bindir}/texconfig-sys ] && %{_bindir}/texconfig-sys rehash 2> /dev/null || : @@ -193,14 +201,8 @@ rm -f %{buildroot}%{_datadir}/texmf/tex/latex/html/url.sty %postun [ -x %{_bindir}/texconfig-sys ] && %{_bindir}/texconfig-sys rehash 2> /dev/null || : -%check -make -C %{name}-%{version} check -%if %{enable_japanese} -make -C %{name}-%{version}JA check -%endif - %files -%doc latex2html-%{version}/{LICENSE,README.md,FAQ,BUGS,docs,example} +%defattr(-,root,root,-) %{_bindir}/latex2html %{_bindir}/pstoimg %{_bindir}/texexpand @@ -222,177 +224,6 @@ make -C %{name}-%{version}JA check %{_mandir}/man1/pstoimg.* %changelog -* Thu Jul 16 2026 Fedora Release Engineering - 2026-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild - -* Tue Jun 09 2026 Than Ngo - 2026-1 -- Update to 2026 - -* Fri Jan 16 2026 Fedora Release Engineering - 2023.2-9 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild - -* Thu Jul 24 2025 Fedora Release Engineering - 2023.2-8 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild - -* Fri Jan 17 2025 Fedora Release Engineering - 2023.2-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild - -* Tue Nov 12 2024 Than Ngo - 2023.2-6 -- Remove .orig files - -* Thu Jul 18 2024 Fedora Release Engineering - 2023.2-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild - -* Thu Jan 25 2024 Fedora Release Engineering - 2023.2-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Sun Jan 21 2024 Fedora Release Engineering - 2023.2-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Thu Jul 20 2023 Fedora Release Engineering - 2023.2-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild - -* Tue Jul 18 2023 Than Ngo - 2023.2-1 -- update to 2023.2 - -* Mon Jan 30 2023 Ben Cotton - 2020.2-8 -- Update License field to match SPDX formatting - -* Thu Jan 19 2023 Fedora Release Engineering - 2020.2-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild - -* Thu Jul 21 2022 Fedora Release Engineering - 2020.2-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild - -* Thu Jan 20 2022 Fedora Release Engineering - 2020.2-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - -* Thu Jul 22 2021 Fedora Release Engineering - 2020.2-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild - -* Tue Jan 26 2021 Fedora Release Engineering - 2020.2-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - -* Tue Jul 28 2020 Fedora Release Engineering - 2020.2-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - -* Fri Jul 17 2020 Jindrich Novy - 2020.2-1 -- update to 2020.2 and l2h-2020 - -* Tue Mar 24 2020 Jitka Plesnikova - 2019.2-5 -- Add perl dependencies needed for build - -* Wed Jan 29 2020 Fedora Release Engineering - 2019.2-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - -* Mon Sep 16 2019 Than Ngo - 2019.2-3 -- add Requirement on tex(preview.sty) - -* Wed Sep 11 2019 Than Ngo - 2019.2-2 -- update URL - -* Wed Sep 11 2019 Than Ngo - 2019.2-1 -- update to v2019.2 - -* Thu Jul 25 2019 Fedora Release Engineering - 2018.3-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - -* Fri Feb 01 2019 Fedora Release Engineering - 2018.3-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Mon Aug 13 2018 Ben Cotton - 2018.3-1 -- Update to latest upstream version - -* Fri Jul 13 2018 Fedora Release Engineering - 2018.2-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Fri Jul 06 2018 Ben Cotton - 2018.2-3 -- Add patch to fix bz#1582267 (upstream issue 48) until next upstream release - -* Fri Jun 22 2018 Than Ngo - 2018.2-2 -- update l2h-2017-jp20180308 - -* Fri Jun 22 2018 Than Ngo - 2018.2-1 -- update to 2018.2 -- add check - -* Thu Jun 14 2018 Than Ngo - 2017.2-6 -- fixed bz#1591144, buildroot issue - -* Fri May 11 2018 Than Ngo - 2017.2-5 -- fixed FTBFS - -* Wed Feb 07 2018 Fedora Release Engineering - 2017.2-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Wed Jul 26 2017 Fedora Release Engineering - 2017.2-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - -* Wed Jul 12 2017 Ben Cotton 2017.2-2 -- Update Perl commands in spec file to use valid syntax - -* Mon Jun 26 2017 Tom Callaway 2017.2-1 -- update to 2017.2 - -* Fri Feb 10 2017 Fedora Release Engineering - 2012-8 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - -* Thu Feb 04 2016 Fedora Release Engineering - 2012-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - -* Wed Jun 17 2015 Fedora Release Engineering - 2012-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - -* Sat Jun 07 2014 Fedora Release Engineering - 2012-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild - -* Sat Aug 03 2013 Fedora Release Engineering - 2012-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild - -* Wed Jul 17 2013 Petr Pisar - 2012-3 -- Perl 5.18 rebuild - -* Tue Jan 29 2013 Jindrich Novy 2012-2 -- prefer url.sty from texlive (#904888) - -* Wed Nov 21 2012 Jindrich Novy 2012-1 -- update to latex2html 2012 -- update URL - -* Thu Nov 15 2012 Jindrich Novy 2008-8 -- BR: netpbm-progs to fix build - -* Thu Jul 19 2012 Fedora Release Engineering - 2008-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild - -* Fri Jan 13 2012 Fedora Release Engineering - 2008-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild - -* Mon Feb 07 2011 Fedora Release Engineering - 2008-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild - -* Fri Dec 11 2009 Jindrich Novy 2008-4 -- require netpbm-progs -- review fixes (#225980): - - include documentation - - set executable bit for makeseg and makemap scripts - - white-space spec correction - - move docs and example directory to %%doc - - nuke duplicated stuff - -* Fri Jul 24 2009 Fedora Release Engineering - 2008-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild - -* Wed Feb 25 2009 Fedora Release Engineering - 2008-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild - -* Fri Jan 02 2009 Jindrich Novy 2008 -- update to latex2html-2008 -- license changed to GPL -- update japanese support to l2h-2K8-jp20081220 -- update cfgcache.pm -- fix BR - * Mon Jan 07 2008 Jindrich Novy 2002.2.1-8 - fix post/postun scriptlets @@ -426,7 +257,7 @@ make -C %{name}-%{version}JA check * Tue May 3 2005 Jindrich Novy 2002.2.1-2 - run texhash in the %%post and %%postun phase (#156660) -* Tue Mar 15 2005 Jindrich Novy 2002.2.1-1 +* Fri Mar 15 2005 Jindrich Novy 2002.2.1-1 - create backups for patches - update Source1 - BuildArchitectures -> BuildArch diff --git a/sources b/sources index ddc5ccf..5354590 100644 --- a/sources +++ b/sources @@ -1,3 +1,3 @@ -SHA512 (latex2html-manpages.tar.gz) = 113fdc27c9ab5c2d7ef76c86eb5b55bccf30077e987fd1645ae9c8f96d037372d9446b13d73b2ad3cf7655787366ac7ee8899db8682e354fe3a1acec4e92b829 -SHA512 (l2h-2026-jp3.2b1.43.tar.gz) = 4b7c9424d462329173a883fff7ef330222440be132ec9190c9c06798e2d6ef1ec7f14bdb375db0742181e1f661f153e7fa002d786c4b5632d0f28a598543f713 -SHA512 (latex2html-2026.tar.gz) = e607bc637fd8c618db30d967c298a5f5d2e58846a7f32705ef8d58efa87bdea3f012d9852e6a0305f6c5698a9ebe427e71bf0a3b39584923120102cc57ac272a +a79cda0648c8721ab6df5020cd11e220 latex2html-2002-2-1.tar.gz +a4f534ef3fc0e0e09a4ddb664beae487 l2h-2K2-2-1+jp2.1b1.6.patch.gz +a27170c02c0f2bc3a524058711e339a4 latex2html-manpages.tar.gz