]>
Commit | Line | Data |
---|---|---|
85122efe | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
85122efe MT |
4 | ############################################################################### |
5 | ||
802ea3af | 6 | name = pcre |
3ffb9165 SS |
7 | version = 8.32 |
8 | release = 1 | |
383de0c6 MT |
9 | |
10 | compat_version = 8.21 | |
85122efe | 11 | |
802ea3af MT |
12 | groups = System/Libraries |
13 | url = http://www.pcre.org/ | |
14 | license = BSD | |
15 | summary = Perl-compatible regular expression library. | |
85122efe | 16 | |
802ea3af MT |
17 | description |
18 | Perl-compatible regular expression library. PCRE has its own native | |
19 | API, but a set of "wrapper" functions that are based on the POSIX | |
85122efe | 20 | API are also supplied in the library libpcreposix. |
802ea3af MT |
21 | end |
22 | ||
6d3b56d0 | 23 | source_dl = ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/ |
383de0c6 | 24 | sources += %{name}-%{compat_version}.tar.gz |
802ea3af MT |
25 | |
26 | build | |
27 | requires | |
28 | bzip2-devel | |
29 | gcc-c++ | |
802ea3af MT |
30 | readline-devel |
31 | zlib-devel | |
32 | end | |
33 | ||
34 | configure_options += \ | |
21d4da18 | 35 | --disable-static \ |
802ea3af MT |
36 | --docdir=/usr/share/doc/pcre-%{version} \ |
37 | --enable-utf8 \ | |
383de0c6 | 38 | --enable-jit \ |
802ea3af MT |
39 | --enable-pcregrep-libz \ |
40 | --enable-pcregrep-libbz2 \ | |
41 | --enable-unicode-properties | |
42 | ||
383de0c6 MT |
43 | build_cmds |
44 | cd %{DIR_SRC}/%{name}-%{compat_version} | |
45 | ./configure \ | |
46 | %{configure_options} | |
47 | ||
48 | make %{PARALLELISMFLAGS} | |
49 | end | |
50 | ||
802ea3af | 51 | install_cmds |
383de0c6 | 52 | cd %{DIR_SRC}/%{name}-%{compat_version} |
17fdd6ec | 53 | install -m 755 .libs/libpcre.so.0.0.1 %{BUILDROOT}%{libdir} |
0a8ad870 | 54 | ln -svf libpcre.so.0.0.1 %{BUILDROOT}%{libdir}/libpcre.so.0 |
802ea3af MT |
55 | end |
56 | end | |
57 | ||
58 | packages | |
59 | package %{name} | |
6d3b56d0 | 60 | |
802ea3af MT |
61 | package %{name}-devel |
62 | template DEVEL | |
63 | end | |
1f9bc2f0 | 64 | |
383de0c6 MT |
65 | package %{name}-compat |
66 | summary = Compat libraries of %{thisapp}. | |
67 | ||
68 | files | |
69 | %{libdir}/libpcre.so.0* | |
70 | end | |
71 | end | |
72 | ||
1f9bc2f0 MT |
73 | package %{name}-debuginfo |
74 | template DEBUGINFO | |
75 | end | |
802ea3af | 76 | end |