Accepting request 180837 from openSUSE:Factory:Staging:perl518
- add latex2html-fix-defined.patch from debian bug tracker to avoid a warning - add apparmor's tex docu for better %check: testfile.tex OBS-URL: https://build.opensuse.org/request/show/180837 OBS-URL: https://build.opensuse.org/package/show/Publishing/latex2html?expand=0&rev=11
This commit is contained in:
parent
f2e96b37f1
commit
83c9b7c8a1
37
latex2html-fix-defined.patch
Normal file
37
latex2html-fix-defined.patch
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
Description: Fix perl warning about deprecated "defined(%hash)"
|
||||||
|
latex2html with current perl gives warnings about the deprecation of
|
||||||
|
"defined(%hash)". This patches removes them by just removing the resp.
|
||||||
|
keyword.
|
||||||
|
Author: Roland Stigge <stigge@antcom.de>
|
||||||
|
|
||||||
|
Index: latex2html-2008-debian1/latex2html.pin
|
||||||
|
===================================================================
|
||||||
|
--- latex2html-2008-debian1.orig/latex2html.pin 2010-07-31 16:13:21.000000000 +0200
|
||||||
|
+++ latex2html-2008-debian1/latex2html.pin 2012-04-09 17:21:52.000000000 +0200
|
||||||
|
@@ -532,7 +532,7 @@
|
||||||
|
#
|
||||||
|
# If possible, use icons of the same type as generated images
|
||||||
|
#
|
||||||
|
-if ($IMAGE_TYPE && defined %{"icons_$IMAGE_TYPE"}) {
|
||||||
|
+if ($IMAGE_TYPE && %{"icons_$IMAGE_TYPE"}) {
|
||||||
|
%icons = %{"icons_$IMAGE_TYPE"};
|
||||||
|
}
|
||||||
|
|
||||||
|
@@ -2112,7 +2112,7 @@
|
||||||
|
"\nCould not find translation function for $default_language.\n\n")
|
||||||
|
}
|
||||||
|
);
|
||||||
|
- if ($USE_UTF ||(!$NO_UTF &&(defined %unicode_table)&&length(%unicode_table)>2)) {
|
||||||
|
+ if ($USE_UTF ||(!$NO_UTF &&(%unicode_table)&&length(%unicode_table)>2)) {
|
||||||
|
&convert_to_unicode($_)};
|
||||||
|
}
|
||||||
|
$_ = join('', @case_processed, $_); undef(@case_processed);
|
||||||
|
@@ -9117,7 +9117,7 @@
|
||||||
|
my ($charset) = "${CHARSET}_character_map_inv";
|
||||||
|
$charset =~ s/-/_/g;
|
||||||
|
# convert upper 8-bit characters
|
||||||
|
- if (defined %$charset &&($CHARSET =~ /8859[_\-]1$/)) {
|
||||||
|
+ if (%$charset &&($CHARSET =~ /8859[_\-]1$/)) {
|
||||||
|
s/([\200-\377])/
|
||||||
|
$tmp = $$charset{'&#'.ord($1).';'};
|
||||||
|
&mark_string($tmp) if ($tmp =~ m!\{!);
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jun 25 09:47:55 UTC 2013 - coolo@suse.com
|
||||||
|
|
||||||
|
- add latex2html-fix-defined.patch from debian bug tracker to avoid
|
||||||
|
a warning
|
||||||
|
- add apparmor's tex docu for better %check: testfile.tex
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Apr 11 07:59:19 UTC 2013 - mmeister@suse.com
|
Thu Apr 11 07:59:19 UTC 2013 - mmeister@suse.com
|
||||||
|
|
||||||
|
@ -44,12 +44,14 @@ Source: http://www.latex2html.org/~latex2ht/current/%{name}-%{version}.t
|
|||||||
Source1: latex2html-manual.ps.gz
|
Source1: latex2html-manual.ps.gz
|
||||||
Source2: latex2html-manual.tar.bz2
|
Source2: latex2html-manual.tar.bz2
|
||||||
Source3: latex2html-README.SuSE
|
Source3: latex2html-README.SuSE
|
||||||
|
Source4: testfile.tex
|
||||||
Patch: latex2html-%{version}.diff
|
Patch: latex2html-%{version}.diff
|
||||||
Patch1: latex2html-%{version}-binmode.diff
|
Patch1: latex2html-%{version}-binmode.diff
|
||||||
Patch2: latex2html-%{version}-gsout.diff
|
Patch2: latex2html-%{version}-gsout.diff
|
||||||
Patch3: latex2html-%{version}-buildroot.diff
|
Patch3: latex2html-%{version}-buildroot.diff
|
||||||
Patch4: latex2html-%{version}-perl-bindir.diff
|
Patch4: latex2html-%{version}-perl-bindir.diff
|
||||||
Patch5: latex2html-%{version}-match-multiline.patch
|
Patch5: latex2html-%{version}-match-multiline.patch
|
||||||
|
Patch6: http://patch-tracker.debian.org/patch/series/dl/latex2html/2008-debian1-9/latex2html-fix-defined.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -59,14 +61,6 @@ LaTeX texts.
|
|||||||
|
|
||||||
Find documentation in /usr/share/doc/packages/latex2html.
|
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
|
%package pngicons
|
||||||
Provides: l2h-pngicons
|
Provides: l2h-pngicons
|
||||||
Obsoletes: l2h-pngicons
|
Obsoletes: l2h-pngicons
|
||||||
@ -77,14 +71,6 @@ Group: Productivity/Publishing/TeX/Utilities
|
|||||||
%description pngicons
|
%description pngicons
|
||||||
Icons in the PNG format for the LaTeX to HTML Converter.
|
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
|
%package doc
|
||||||
Summary: LaTeX2HTML Converter
|
Summary: LaTeX2HTML Converter
|
||||||
License: GPL-2.0+ and LPPL-1.3c
|
License: GPL-2.0+ and LPPL-1.3c
|
||||||
@ -95,16 +81,6 @@ LaTeX2HTML lets you easily convert basic LaTeX documents into the HTML
|
|||||||
format. This allows both a written and online version even of older
|
format. This allows both a written and online version even of older
|
||||||
LaTeX texts.
|
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
|
%prep
|
||||||
%setup
|
%setup
|
||||||
%setup -a 2
|
%setup -a 2
|
||||||
@ -114,6 +90,7 @@ Authors:
|
|||||||
%patch3
|
%patch3
|
||||||
%patch4
|
%patch4
|
||||||
%patch5 -p1
|
%patch5 -p1
|
||||||
|
%patch6 -p1
|
||||||
cp %{S:1} manual.ps.gz
|
cp %{S:1} manual.ps.gz
|
||||||
cp %{S:3} README.SuSE
|
cp %{S:3} README.SuSE
|
||||||
|
|
||||||
@ -134,8 +111,8 @@ chmod 755 $RPM_BUILD_ROOT%{_datadir}/%{name}/{cweb2html/makemake.pl,cweb2html/cw
|
|||||||
rm $RPM_BUILD_ROOT/usr/lib/texmf/tex/latex/html/url.sty
|
rm $RPM_BUILD_ROOT/usr/lib/texmf/tex/latex/html/url.sty
|
||||||
%fdupes -s $RPM_BUILD_ROOT
|
%fdupes -s $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%clean
|
%check
|
||||||
rm -rf $RPM_BUILD_ROOT
|
LATEX2HTMLDIR=%buildroot/%{share_dir} ./latex2html --test_mode %{S:4}
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
mkdir -p var/adm/SuSEconfig
|
mkdir -p var/adm/SuSEconfig
|
||||||
|
1303
testfile.tex
Normal file
1303
testfile.tex
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user