From 7178f59c9ca372650e1a4cb7f548dc7a1f3c7412 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?=
Date: Fri, 22 Feb 2019 14:51:00 +0100
Subject: [PATCH] Fix pcre2_pattern_info() documentation
---
...ix-two-identical-documentation-typos.patch | 99 +++++++++++++++++++
pcre2.spec | 9 +-
2 files changed, 107 insertions(+), 1 deletion(-)
create mode 100644 pcre2-10.32-Fix-two-identical-documentation-typos.patch
diff --git a/pcre2-10.32-Fix-two-identical-documentation-typos.patch b/pcre2-10.32-Fix-two-identical-documentation-typos.patch
new file mode 100644
index 0000000..d9ff611
--- /dev/null
+++ b/pcre2-10.32-Fix-two-identical-documentation-typos.patch
@@ -0,0 +1,99 @@
+From 529a60807c0a6f7d8ff7f2d9dfdd4b8df9ce6c66 Mon Sep 17 00:00:00 2001
+From: ph10
+Date: Thu, 14 Feb 2019 16:07:14 +0000
+Subject: [PATCH] Fix two identical documentation typos.
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@1075 6239d852-aaf2-0410-a92c-79f79f948069
+Petr Písař: Ported to 10.32.
+
+Signed-off-by: Petr Písař
+---
+ doc/html/pcre2_pattern_info.html | 3 ++-
+ doc/html/pcre2api.html | 3 ++-
+ doc/pcre2.txt | 3 ++-
+ doc/pcre2_pattern_info.3 | 5 +++--
+ doc/pcre2api.3 | 3 ++-
+ 5 files changed, 11 insertions(+), 6 deletions(-)
+
+diff --git a/doc/html/pcre2_pattern_info.html b/doc/html/pcre2_pattern_info.html
+index 2e35709..eaaac6c 100644
+--- a/doc/html/pcre2_pattern_info.html
++++ b/doc/html/pcre2_pattern_info.html
+@@ -19,7 +19,8 @@ SYNOPSIS
+ #include <pcre2.h>
+
+
+-int pcre2_pattern_info(const pcre2 *code, uint32_t what, void *where);
++int pcre2_pattern_info(const pcre2_code *code, uint32_t what,
++ void *where);
+
+
+ DESCRIPTION
+diff --git a/doc/html/pcre2api.html b/doc/html/pcre2api.html
+index 17f9794..9f4e314 100644
+--- a/doc/html/pcre2api.html
++++ b/doc/html/pcre2api.html
+@@ -307,7 +307,8 @@ document for an overview of all the PCRE2 documentation.
+ const unsigned char *pcre2_maketables(pcre2_general_context *gcontext);
+
+
+-int pcre2_pattern_info(const pcre2 *code, uint32_t what, void *where);
++int pcre2_pattern_info(const pcre2_code *code, uint32_t what,
++ void *where);
+
+
+ int pcre2_callout_enumerate(const pcre2_code *code,
+diff --git a/doc/pcre2.txt b/doc/pcre2.txt
+index b8d2d20..02168e8 100644
+--- a/doc/pcre2.txt
++++ b/doc/pcre2.txt
+@@ -398,7 +398,8 @@ PCRE2 NATIVE API AUXILIARY FUNCTIONS
+
+ const unsigned char *pcre2_maketables(pcre2_general_context *gcontext);
+
+- int pcre2_pattern_info(const pcre2 *code, uint32_t what, void *where);
++ int pcre2_pattern_info(const pcre2_code *code, uint32_t what,
++ void *where);
+
+ int pcre2_callout_enumerate(const pcre2_code *code,
+ int (*callback)(pcre2_callout_enumerate_block *, void *),
+diff --git a/doc/pcre2_pattern_info.3 b/doc/pcre2_pattern_info.3
+index 01b74a2..edd8989 100644
+--- a/doc/pcre2_pattern_info.3
++++ b/doc/pcre2_pattern_info.3
+@@ -1,4 +1,4 @@
+-.TH PCRE2_PATTERN_INFO 3 "16 December 2017" "PCRE2 10.31"
++.TH PCRE2_PATTERN_INFO 3 "14 February 2019" "PCRE2 10.33"
+ .SH NAME
+ PCRE2 - Perl-compatible regular expressions (revised API)
+ .SH SYNOPSIS
+@@ -7,7 +7,8 @@ PCRE2 - Perl-compatible regular expressions (revised API)
+ .B #include
+ .PP
+ .nf
+-.B int pcre2_pattern_info(const pcre2 *\fIcode\fP, uint32_t \fIwhat\fP, void *\fIwhere\fP);
++.B int pcre2_pattern_info(const pcre2_code *\fIcode\fP, uint32_t \fIwhat\fP,
++.B " void *\fIwhere\fP);"
+ .fi
+ .
+ .SH DESCRIPTION
+diff --git a/doc/pcre2api.3 b/doc/pcre2api.3
+index ba90c86..71651f6 100644
+--- a/doc/pcre2api.3
++++ b/doc/pcre2api.3
+@@ -243,7 +243,8 @@ document for an overview of all the PCRE2 documentation.
+ .sp
+ .B const unsigned char *pcre2_maketables(pcre2_general_context *\fIgcontext\fP);
+ .sp
+-.B int pcre2_pattern_info(const pcre2 *\fIcode\fP, uint32_t \fIwhat\fP, void *\fIwhere\fP);
++.B int pcre2_pattern_info(const pcre2_code *\fIcode\fP, uint32_t \fIwhat\fP,
++.B " void *\fIwhere\fP);"
+ .sp
+ .B int pcre2_callout_enumerate(const pcre2_code *\fIcode\fP,
+ .B " int (*\fIcallback\fP)(pcre2_callout_enumerate_block *, void *),"
+--
+2.20.1
+
diff --git a/pcre2.spec b/pcre2.spec
index f470be9..88ed08c 100644
--- a/pcre2.spec
+++ b/pcre2.spec
@@ -9,7 +9,7 @@
#%%global rcversion RC1
Name: pcre2
Version: 10.32
-Release: %{?rcversion:0.}7%{?rcversion:.%rcversion}%{?dist}.1
+Release: %{?rcversion:0.}8%{?rcversion:.%rcversion}%{?dist}
%global myversion %{version}%{?rcversion:-%rcversion}
Summary: Perl-compatible regular expression library
# the library: BSD with exceptions
@@ -77,6 +77,9 @@ Patch8: pcre2-10.32-Update-POSIX-wrapper-to-use-macros-in-the-.h-file-bu.pat
# Fix version conditions in DFA engine, upstream bug #2367,
# in upstream after 10.32
Patch9: pcre2-10.32-Fix-bug-in-VERSION-conditional-test-in-DFA-matching.patch
+# Fix pcre2_pattern_info() documentation, upstream bug #2373,
+# in upstream after 10.32
+Patch10: pcre2-10.32-Fix-two-identical-documentation-typos.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: coreutils
@@ -162,6 +165,7 @@ Utilities demonstrating PCRE2 capabilities like pcre2grep or pcre2test.
%patch7 -p1
%patch8 -p1
%patch9 -p1
+%patch10 -p1
# Because of multilib patch
libtoolize --copy --force
autoreconf -vif
@@ -263,6 +267,9 @@ make %{?_smp_mflags} check VERBOSE=yes
%{_mandir}/man1/pcre2test.*
%changelog
+* Fri Feb 22 2019 Petr Pisar - 10.32-8
+- Fix pcre2_pattern_info() documentation (upstream bug #2373)
+
* Sun Feb 17 2019 Igor Gnatenko - 10.32-7.1
- Rebuild for readline 8.0