]>
Commit | Line | Data |
---|---|---|
1 | ############################################################################### | |
2 | # IPFire.org - An Open Source Firewall Solution # | |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
4 | ############################################################################### | |
5 | ||
6 | name = pcre | |
7 | version = 8.34 | |
8 | release = 3 | |
9 | ||
10 | compat_version = 8.21 | |
11 | ||
12 | groups = System/Libraries | |
13 | url = http://www.pcre.org/ | |
14 | license = BSD | |
15 | summary = Perl-compatible regular expression library. | |
16 | ||
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 | |
20 | API are also supplied in the library libpcreposix. | |
21 | end | |
22 | ||
23 | source_dl = ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/ | |
24 | sources += %{name}-%{compat_version}.tar.gz | |
25 | ||
26 | build | |
27 | requires | |
28 | bzip2-devel | |
29 | gcc-c++ | |
30 | readline-devel | |
31 | zlib-devel | |
32 | end | |
33 | ||
34 | configure_options += \ | |
35 | --disable-static \ | |
36 | --docdir=/usr/share/doc/pcre-%{version} \ | |
37 | --disable-jit \ | |
38 | --enable-pcre8 \ | |
39 | --enable-pcre16 \ | |
40 | --enable-pcre32 \ | |
41 | --enable-utf \ | |
42 | --enable-unicode-properties \ | |
43 | --enable-pcretest-libreadline | |
44 | ||
45 | build_cmds | |
46 | cd %{DIR_SRC}/%{name}-%{compat_version} | |
47 | ./configure \ | |
48 | %{configure_options} | |
49 | ||
50 | make %{PARALLELISMFLAGS} | |
51 | end | |
52 | ||
53 | test | |
54 | make check | |
55 | ||
56 | cd %{DIR_SRC}/%{name}-%{compat_version} | |
57 | make check | |
58 | end | |
59 | ||
60 | install_cmds | |
61 | cd %{DIR_SRC}/%{name}-%{compat_version} | |
62 | install -m 755 .libs/libpcre.so.0.0.1 %{BUILDROOT}%{libdir} | |
63 | ln -svf libpcre.so.0.0.1 %{BUILDROOT}%{libdir}/libpcre.so.0 | |
64 | end | |
65 | end | |
66 | ||
67 | packages | |
68 | package %{name} | |
69 | ||
70 | package %{name}-devel | |
71 | template DEVEL | |
72 | end | |
73 | ||
74 | package %{name}-compat | |
75 | summary = Compat libraries of %{thisapp}. | |
76 | ||
77 | files | |
78 | %{libdir}/libpcre.so.0* | |
79 | end | |
80 | end | |
81 | ||
82 | package %{name}-debuginfo | |
83 | template DEBUGINFO | |
84 | end | |
85 | end |