[packages/latex2html] Up to 2025
arekm
arekm at pld-linux.org
Thu Jul 24 21:56:43 CEST 2025
commit 1b6960c41bb2ae68df5a54d3f09e33d400acb636
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu Jul 24 21:56:38 2025 +0200
Up to 2025
latex2html-convert-length.patch | 22 ------------
latex2html-destdir.patch | 38 --------------------
latex2html-extract-major-version.patch | 12 -------
latex2html-gslib.patch | 11 ------
latex2html-perl.patch | 66 ----------------------------------
latex2html-tmp.patch | 53 ---------------------------
latex2html.spec | 24 ++++---------
7 files changed, 6 insertions(+), 220 deletions(-)
---
diff --git a/latex2html.spec b/latex2html.spec
index d11ed13..ffbadc0 100644
--- a/latex2html.spec
+++ b/latex2html.spec
@@ -8,18 +8,12 @@
Summary: LaTeX to HTML translator
Summary(pl.UTF-8): Konwerter z LaTeXa do HTML
Name: latex2html
-Version: 2008
-Release: 2
+Version: 2025
+Release: 1
License: GPL v2
Group: Applications/Publishing/TeX
-Source0: http://www.latex2html.org/~latex2ht/current/%{name}-%{version}.tar.gz
-# Source0-md5: 275ab6cfa8ca9328446b7f40d8dc302e
-Patch0: %{name}-perl.patch
-Patch1: %{name}-tmp.patch
-Patch2: %{name}-gslib.patch
-Patch3: %{name}-extract-major-version.patch
-Patch4: %{name}-convert-length.patch
-Patch5: %{name}-destdir.patch
+Source0: https://github.com/latex2html/latex2html/archive/refs/tags/v%{version}.tar.gz
+# Source0-md5: 8c0bf887a457a6b3c3d05abf400e638f
URL: http://www.latex2html.org/
BuildRequires: ghostscript
BuildRequires: giftrans
@@ -58,16 +52,10 @@ Generuje strony html oraz odpowiednie obrazki.
%prep
%setup -q
-%patch -P0 -p1
-%patch -P1 -p1
-%patch -P2 -p1
-%patch -P3 -p1
-%patch -P4 -p1
-%patch -P5 -p1
%build
GS_LIB=.:/usr/share/ghostscript/lib:/usr/share/fonts/Type1; export GS_LIB
-%configure2_13 \
+%configure \
--shlibdir=%{_datadir}/%{name} \
--enable-images \
--enable-pk \
@@ -123,7 +111,7 @@ fi
%files
%defattr(644,root,root,755)
-%doc BUGS FAQ LICENSE README TODO %{?with_tex:docs/manual.ps}
+%doc BUGS FAQ LICENSE README.md TODO %{?with_tex:docs/manual.ps}
%attr(755,root,root) %{_bindir}/cweb2html
%attr(755,root,root) %{_bindir}/latex2html
%attr(755,root,root) %{_bindir}/pstoimg
diff --git a/latex2html-convert-length.patch b/latex2html-convert-length.patch
deleted file mode 100644
index 6350631..0000000
--- a/latex2html-convert-length.patch
+++ /dev/null
@@ -1,22 +0,0 @@
---- latex2html-2002-2-1/versions/html2_2.pl.old 2006-02-21 20:37:50.000000000 +0100
-+++ latex2html-2002-2-1/versions/html2_2.pl 2006-02-21 20:38:03.000000000 +0100
-@@ -91,7 +91,7 @@
- ($pxs,$len);
- }
- # should no longer be needed, as this is defined in latex2html.pin
--if (undefined &convert_length) { sub convert_length {&convert_length_table(@_)} }
-+if (undefined (&convert_length)) { sub convert_length {&convert_length_table(@_)} }
-
- # Translates LaTeX column specifications to HTML. Again, Netscape
- # needs some extra work with its width attributes in the <td> tags.
---- latex2html-2002-2-1/versions/table.pl.old 2006-02-21 20:37:54.000000000 +0100
-+++ latex2html-2002-2-1/versions/table.pl 2006-02-21 20:38:11.000000000 +0100
-@@ -91,7 +91,7 @@
- ($pxs,$len);
- }
- # should no longer be needed, as this is defined in latex2html.pin
--if (undefined &convert_length) { sub convert_length {&convert_length_table(@_)} }
-+if (undefined (&convert_length)) { sub convert_length {&convert_length_table(@_)} }
-
- # Translates LaTeX column specifications to HTML. Again, Netscape
- # needs some extra work with its width attributes in the <td> tags.
diff --git a/latex2html-destdir.patch b/latex2html-destdir.patch
deleted file mode 100644
index 619ce22..0000000
--- a/latex2html-destdir.patch
+++ /dev/null
@@ -1,38 +0,0 @@
---- latex2html-2008/config/install.pl.orig 2002-11-29 12:49:01.000000000 +0100
-+++ latex2html-2008/config/install.pl 2012-04-05 19:04:13.629561822 +0200
-@@ -372,14 +372,16 @@
-
- if($cfg{TEXPATH}) {
- print "\nNote: trying to install LaTeX2HTML style files in TeX directory tree\n ($cfg{TEXPATH})\n";
-- unless(mkpath($cfg{TEXPATH})) {
-+ my $dest = $cfg{TEXPATH};
-+ $dest = $ENV{'DESTDIR'}.$dest if($ENV{'DESTDIR'});
-+
-+ unless(mkpath($dest)) {
- #my $testpath = $cfg{TEXPATH}; # to strip (latex2)html
- #$testpath =~ s/[$dd$dd][^$dd$dd]*$//;
- #if((-d $cfg{TEXPATH} && !-w _) || (-d $testpath && !-w _)) {
- print STDERR "\nError: Cannot install LaTeX2HTML style files in $cfg{TEXPATH}\n";
- } else {
- my $dir = 'texinputs';
-- my $dest = $cfg{TEXPATH};
- unless(opendir(DIR,$dir)) {
- print STDERR qq{Error: Could not read directory "$dir": $!\n};
- } else {
-#@@ -388,13 +390,13 @@
-# while(defined($file = readdir(DIR))) {
-# my $full = "$dir/$file";
-# next if($file =~ /^\.\.?$/ || !-f $full || !-s _);
-#- unless(&install_file($full,$cfg{TEXPATH},$FILECHMOD,0)) {
-#+ unless(&install_file($full,$dest,$FILECHMOD,0)) {
-# $ok = 0;
-# last;
-@@ -394,7 +396,7 @@
- }
- }
- closedir(DIR);
-- if($ok && $cfg{MKTEXLSR}) {
-+ if($ok && $cfg{MKTEXLSR} && !$ENV{'DESTDIR'}) {
- print "Info: Running $cfg{MKTEXLSR} to rebuild ls-R database...\n";
- system($cfg{MKTEXLSR});
- }
diff --git a/latex2html-extract-major-version.patch b/latex2html-extract-major-version.patch
deleted file mode 100644
index 7340754..0000000
--- a/latex2html-extract-major-version.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -urN latex2html-2002-2-1.orig/config/config.pl latex2html-2002-2-1/config/config.pl
---- latex2html-2002-2-1.orig/config/config.pl 2006-06-02 20:41:18.000000000 +0200
-+++ latex2html-2002-2-1/config/config.pl 2006-06-02 20:42:07.000000000 +0200
-@@ -1275,7 +1275,7 @@
- ($stat,$msg,$err) = &get_out_err("$pnmcrop -version");
- my $vers = '';
- $msg = $msg || $err;
-- if ($msg =~ /(^|\s*)Version.*\s([\d\.]+)\s*([\n\r]|$)/is) { $vers = $2; }
-+ if ($msg =~ /(^|\s*)Version.*\s(\d+)\..*\s*([\n\r]|$)/is) { $vers = $2; }
- if ($vers =~ /^199/) {
- # try left crop
- &checking('if pnmcrop can crop from one direction');
diff --git a/latex2html-gslib.patch b/latex2html-gslib.patch
deleted file mode 100644
index 13ffe85..0000000
--- a/latex2html-gslib.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- latex2html-2002-1/config/config.pl.orig Sun Jan 19 11:42:47 2003
-+++ latex2html-2002-1/config/config.pl Sun Jan 19 11:45:45 2003
-@@ -1130,7 +1130,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-perl.patch b/latex2html-perl.patch
deleted file mode 100644
index fa973f0..0000000
--- a/latex2html-perl.patch
+++ /dev/null
@@ -1,66 +0,0 @@
-diff -urN latex2html-99.2alpha12.orig/config/build.pl latex2html-99.2alpha12/config/build.pl
---- latex2html-99.2alpha12.orig/config/build.pl Wed Sep 8 15:47:09 1999
-+++ latex2html-99.2alpha12/config/build.pl Wed Sep 8 15:47:39 1999
-@@ -1,4 +1,4 @@
--#! /usr/local/bin/perl -w
-+#! /usr/bin/perl -w
-
- ###############################################################################
- # $Id$
-diff -urN latex2html-99.2alpha12.orig/config/config.pl latex2html-99.2alpha12/config/config.pl
---- latex2html-99.2alpha12.orig/config/config.pl Wed Sep 8 15:47:09 1999
-+++ latex2html-99.2alpha12/config/config.pl Wed Sep 8 15:47:39 1999
-@@ -1,4 +1,4 @@
--#! /usr/local/bin/perl -w
-+#! /usr/bin/perl -w
-
- ###############################################################################
- # $Id$
-diff -urN latex2html-99.2alpha12.orig/config/redir.pl latex2html-99.2alpha12/config/redir.pl
---- latex2html-99.2alpha12.orig/config/redir.pl Wed Sep 8 15:47:09 1999
-+++ latex2html-99.2alpha12/config/redir.pl Wed Sep 8 15:47:39 1999
-@@ -1,4 +1,4 @@
--#!/usr/local/bin/perl -w
-+#!/usr/bin/perl -w
-
- ###############################################################################
- # $Id$
-diff -urN latex2html-99.2alpha12.orig/cweb2html/cweb2html latex2html-99.2alpha12/cweb2html/cweb2html
---- latex2html-99.2alpha12.orig/cweb2html/cweb2html Wed Sep 8 15:47:09 1999
-+++ latex2html-99.2alpha12/cweb2html/cweb2html Wed Sep 8 15:47:51 1999
-@@ -1,4 +1,4 @@
--#!/usr/local/bin/perl
-+#!/usr/bin/perl
-
- ################################################################################
- # Copyright 1998-1999 by Jens Lippmann (lippmann at rbg.informatik.th-darmstadt.de)
-diff -urN latex2html-99.2alpha12.orig/cweb2html/makemake.pl latex2html-99.2alpha12/cweb2html/makemake.pl
---- latex2html-99.2alpha12.orig/cweb2html/makemake.pl Wed Sep 8 15:47:09 1999
-+++ latex2html-99.2alpha12/cweb2html/makemake.pl Wed Sep 8 15:48:19 1999
-@@ -1,4 +1,4 @@
--#!/usr/local/bin/perl
-+#!/usr/bin/perl
-
- ################################################################################
- # Copyright 1998-1999 by Jens Lippmann (lippmann at rbg.informatik.tu-darmstadt.de)
---- latex2html-2002-1/configure.orig 2002-04-28 07:15:01.000000000 +0200
-+++ latex2html-2002-1/configure 2003-11-23 12:56:07.456729224 +0100
-@@ -1159,6 +1159,7 @@
- echo "launching proprietary configuration..."
-
- $PERL $srcdir/config/config.pl \
-+ PERL=$PERL \
- HASHBANG=$ac_cv_sys_interpreter \
- OLDCONFIG=$with_oldconfig \
- EXTRAPATH=$with_extrapath \
---- latex2html-2002-1/config/config.pl.orig 2003-11-23 12:38:45.000000000 +0100
-+++ latex2html-2002-1/config/config.pl 2003-11-23 12:56:31.550066480 +0100
-@@ -601,7 +601,7 @@
-
- # only perl gets an absolute pathname
- my $abs_path_names = 1;
--$newcfg{'PERL'} = &find_prog($^X); # take the perl internal executable name
-+$newcfg{'PERL'} = &get_name('PERL'); # take the perl internal executable name
- &checking('perl version');
- &result($]);
-
diff --git a/latex2html-tmp.patch b/latex2html-tmp.patch
deleted file mode 100644
index 4847640..0000000
--- a/latex2html-tmp.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-diff -urN latex2html-99.2alpha12.orig/config/config.pl latex2html-99.2alpha12/config/config.pl
---- latex2html-99.2alpha12.orig/config/config.pl Tue Sep 7 21:04:52 1999
-+++ latex2html-99.2alpha12/config/config.pl Wed Sep 8 14:40:32 1999
-@@ -505,37 +505,7 @@
-
- &checking('if perl globbing works');
-
--open(TMP,">TEST1.TMP"); close TMP; # create temporary test files
--open(TMP,">TEST2.TMP"); close TMP;
--my @list = (<TEST*.TMP>); # glob test
--unlink qw(TEST1.TMP TEST2.TMP); # remove temporary test files
--
--unless(grep(/^TEST[12]\.TMP$/i, at list) == 2) {
-- &result('no');
-- logit(" Cannot live without globbing\n");
-- # Try to find out what is going wrong
-- # Perl uses full_csh to perform globbing, this may change of course
-- my $csh = eval {require 'Config.pm'; &Config::FETCH('','full_csh')};
-- if($csh) {
-- unless(-f $csh) {
-- logit("Error: $csh does not exist\n");
-- }
-- elsif(!-x $csh) {
-- logit("Error: $csh is not executable\n");
-- }
-- else {
-- logit("Error: unknown globbing problem, check perl installation\n");
-- }
-- }
-- else {
-- logit("Error: perl globbing failed. Couldn't determine csh info.\n");
-- }
-- cleanup(1);
-- exit 1;
--}
--else {
-- &result('yes');
--}
-+&result('yes');
-
- # --------------------------------------------------------------------------
- # Hashbang script starts
---- latex2html-2008/config/config.pl~ 2013-12-04 08:56:32.000000000 +0100
-+++ latex2html-2008/config/config.pl 2013-12-04 08:57:19.314864264 +0100
-@@ -1795,8 +1795,6 @@
- my @tmp = ();
- push(@tmp,$cfg{'TMPSPACE'}) if($cfg{'TMPSPACE'});
- push(@tmp,$prefs{'TMPSPACE'}) if($prefs{'TMPSPACE'});
--push(@tmp,$ENV{'TMP'}) if($ENV{'TMP'});
--push(@tmp,$ENV{'TEMP'}) if($ENV{'TEMP'});
- if($newcfg{'plat'} =~ /dos|win32/i) {
- push(@tmp,qw(C:\\TMP C:\\TEMP C:\\WINDOWS\\TEMP C:\\WINNT\\TEMP));
- }
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/latex2html.git/commitdiff/1b6960c41bb2ae68df5a54d3f09e33d400acb636
More information about the pld-cvs-commit
mailing list