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