Compare commits

..

No commits in common. "e066b14b9ab2e56aa3de2d12d06486cc0d7d2739" and "f6ddac085fbad0f21f72bf3a5f6d9d5fad6501f5" have entirely different histories.

5 changed files with 10 additions and 86 deletions

BIN
XML-LibXML-2.0132.tar.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,28 +0,0 @@
From 8465180e379bb0873c248afc937bae9aa03e0a60 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=A9=8D=E4=B8=B9=E5=B0=BC=20Dan=20Jacobson?=
<jidanni@jidanni.org>
Date: Mon, 21 Jun 2021 22:45:47 +0800
Subject: [PATCH 01/11] Add <meta> sniffing warning
---
docs/libxml.dbk | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/docs/libxml.dbk b/docs/libxml.dbk
index c7a4208..b307510 100644
--- a/docs/libxml.dbk
+++ b/docs/libxml.dbk
@@ -2598,7 +2598,9 @@ print {$out_fh} $doc-&gt;toString;</programlisting>
</funcsynopsis>
<para><emphasis>toStringHTML</emphasis> serialize the tree to a byte string in the document encoding as HTML. With this method indenting is automatic and managed by
- libxml2 internally.</para>
+ libxml2 internally. Note the string must contain
+ &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&gt; (and not newer &lt;meta charset="utf-8"&gt;),
+ else all non-ASCII will become entities.</para>
</listitem>
</varlistentry>
--
2.39.0.windows.2

View File

@ -1,33 +0,0 @@
From af276c6137405ce2ab7ade54e74dbf81237f41e6 Mon Sep 17 00:00:00 2001
From: Shlomi Fish <shlomif@shlomifish.org>
Date: Thu, 24 Jun 2021 15:47:10 +0300
Subject: [PATCH 02/11] Correct some broken grammar / spelling / syntax / etc.
See https://duckduckgo.com/?q=english+grammar&ia=web ;
https://duckduckgo.com/?q=english+spelling&ia=web and for the lighter side:
* https://www.youtube.com/watch?v=8Gv0H-vPoDc
* https://shlomif.livejournal.com/53966.html
* http://i.imgur.com/HL1ZR.jpg .
---
docs/libxml.dbk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/libxml.dbk b/docs/libxml.dbk
index b307510..598554d 100644
--- a/docs/libxml.dbk
+++ b/docs/libxml.dbk
@@ -2599,7 +2599,7 @@ print {$out_fh} $doc-&gt;toString;</programlisting>
<para><emphasis>toStringHTML</emphasis> serialize the tree to a byte string in the document encoding as HTML. With this method indenting is automatic and managed by
libxml2 internally. Note the string must contain
- &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&gt; (and not newer &lt;meta charset="utf-8"&gt;),
+ &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&gt; (rather than the newer &lt;meta charset="utf-8"&gt;),
else all non-ASCII will become entities.</para>
</listitem>
</varlistentry>
--
2.39.0.windows.2

View File

@ -1,6 +1,6 @@
Name: perl-XML-LibXML
Version: 2.0207
Release: 4
Version: 2.0132
Release: 5
Epoch: 1
Summary: Perl Binding for libxml2
License: (GPL+ or Artistic) and MIT
@ -16,25 +16,24 @@ BuildRequires: perl(Encode), perl(Exporter), perl(IO::File), perl(IO::Handle),
BuildRequires: perl(parent), perl(Scalar::Util), perl(Tie::Hash), perl(XML::NamespaceSupport)
BuildRequires: perl(XML::SAX::Base), perl(XML::SAX::DocumentLocator), perl(XML::SAX::Exception)
BuildRequires: perl(Errno), perl(locale), perl(POSIX), perl(Test::More), perl(XML::SAX)
BuildRequires: perl(XML::SAX::ParserFactory), perl(URI::file), perl(utf8), perl(Alien::Base::Wrapper)
BuildRequires: perl(Alien::Libxml2)
BuildRequires: perl(XML::SAX::ParserFactory), perl(URI::file), perl(utf8)
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)), perl-interpreter
Requires(preun): perl-interpreter
Provides: perl-XML-LibXML-Common = %{version}
Obsoletes: perl-XML-LibXML-Common <= 0.13
Patch0001: backport-0001-Add-meta-sniffing-warning.patch
Patch0002: backport-0002-Correct-some-broken-grammar-spelling-syntax-etc.patch
%description
This module is Perl Binding for libxml2, which implements a Perl interface to
the GNOME libxml2 library. This module provides interfaces for parsing and
manipulating XML files and allows Perl programmers to use the highly capable
validating XML parser and the high performance DOM implementation.
%package_help
%package help
Summary: man files for perl-XML-LibXML
Requires: man
%description help
This package includes man files for perl-XML-LibXML.
%prep
%autosetup -n XML-LibXML-%{version} -p1
@ -43,6 +42,7 @@ for i in Changes; do
/usr/bin/iconv -f iso8859-1 -t utf-8 $i > $i.conv && /bin/mv -f $i.conv $i
done
rm -r inc/*
sed -i -e '/^inc\// d' MANIFEST
%build
@ -81,20 +81,5 @@ fi
%{_mandir}/man*/*
%changelog
* Thu Jan 19 2023 yangbo <yangbo1@xfusion.com> - 1:2.0207-4
- Correct some broken grammar / spelling / syntax / etc
* Wed Jan 18 2023 yangbo <yangbo1@xfusion.com> - 1:2.0207-3
- Add <meta> sniffing warning
* Tue Oct 25 2022 jiangchuangang <jiangchuangang@huawei.com> - 1:2.0207-2
- use macros package_help
* Tue Dec 21 2021 yuanxin <yuanxin24@huawei.com> - 1:2.0207-1
- update version to 2.0207
* Wed Jul 22 2020 dingyue <dingyue5@huawei.com> - 1:2.0205-1
- bump to version 2.0205
* Tue Nov 26 2019 openEuler Buildteam <buildteam@openeuler.org> - 1:2.0132-5
- Package init