]> git.ipfire.org Git - ipfire-3.x.git/blob - pcre2/pcre2.nm
kernel: udpate to 5.2
[ipfire-3.x.git] / pcre2 / pcre2.nm
1
2 name = pcre2
3 version = 10.30
4 release = 1
5
6 groups = System/Libraries
7 url = http://www.pcre.org/
8 license = BSD
9 summary = Perl-compatible regular expression library.
10
11 description
12 PCRE2 is a re-working of the original PCRE (Perl-compatible regular
13 expression) library to provide an entirely new API.
14
15 PCRE2 is written in C, and it has its own API. There are three sets of
16 functions, one for the 8-bit library, which processes strings of bytes, one
17 for the 16-bit library, which processes strings of 16-bit values, and one for
18 the 32-bit library, which processes strings of 32-bit values. There are no C++
19 wrappers. This package provides support for strings in 8-bit and UTF-8
20 encodings. Install %{name}-utf16 or %{name}-utf32 packages for the other ones.
21
22 The distribution does contain a set of C wrapper functions for the 8-bit
23 library that are based on the POSIX regular expression API (see the pcre2posix
24 man page). These can be found in a library called libpcre2posix. Note that
25 this just provides a POSIX calling interface to PCRE2; the regular expressions
26 themselves still follow Perl syntax and semantics. The POSIX API is
27 restricted, and does not give full access to all of PCRE2's facilities.
28 end
29
30 source_dl = ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/
31
32 build
33 requires
34 gcc-c++
35 readline-devel
36 zlib-devel
37 end
38
39 configure_options += \
40 --disable-static \
41 --docdir=%{datadir}/doc/pcre-%{version} \
42 --disable-bsr-anycrlf \
43 --disable-coverage \
44 --disable-ebcdic \
45 --disable-fuzz-support \
46 --disable-jit-sealloc \
47 --enable-jit \
48 --enable-pcre2-8 \
49 --enable-pcre2-16 \
50 --enable-pcre2-32 \
51 --enable-pcre2grep-callout \
52 --enable-pcre2grep-jit \
53 --disable-pcre2grep-libbz2 \
54 --disable-pcre2grep-libz \
55 --disable-pcre2test-libedit \
56 --enable-pcre2test-libreadline \
57 --disable-rebuild-chartables \
58 --enable-unicode \
59 --disable-valgrind
60
61 test
62 export LD_LIBRARY_PATH=$(pwd)/.libs
63 make check
64 end
65 end
66
67 packages
68 package %{name}
69
70 template PCRE2LIB
71 summary = UTF-%{bits} variant of pcre2
72 description
73 This is PCRE2 library working on UTF-%{bits} strings.
74 end
75
76 files
77 %{libdir}/libpcre2-%{bits}.so.*
78 end
79 end
80
81 package %{name}-utf16
82 template PCRE2LIB
83 bits = 16
84 end
85
86 package %{name}-utf32
87 template PCRE2LIB
88 bits = 32
89 end
90
91 package %{name}-devel
92 template DEVEL
93
94 requires
95 %{name}-utf16 = %{thisver}
96 %{name}-utf32 = %{thisver}
97 end
98 end
99
100 package %{name}-debuginfo
101 template DEBUGINFO
102 end
103 end