]> git.ipfire.org Git - ipfire-3.x.git/blob - compat-pcre/compat-pcre.nm
git: Update to 2.23.0
[ipfire-3.x.git] / compat-pcre / compat-pcre.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = compat-pcre
7 version = 8.21
8 release = 2
9
10 thisapp = pcre-%{version}
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 = http://sourceforge.net/projects/pcre/files/pcre/%{version}/
24
25 build
26 requires
27 bzip2-devel
28 gcc-c++
29 readline-devel
30 zlib-devel
31 end
32
33 configure_options += \
34 --disable-static \
35 --docdir=/usr/share/doc/pcre-%{version} \
36 --disable-jit \
37 --enable-pcre8 \
38 --enable-pcre16 \
39 --enable-pcre32 \
40 --enable-utf \
41 --enable-unicode-properties \
42 --enable-pcretest-libreadline
43
44 test
45 export LD_LIBRARY_PATH=$(pwd)/.libs
46 make check
47 end
48
49 install
50 # Only install libraries.
51 mkdir -pv %{BUILDROOT}%{libdir}
52 install -m 755 .libs/libpcre.so.0.0.1 %{BUILDROOT}%{libdir}
53 ln -svf libpcre.so.0.0.1 %{BUILDROOT}%{libdir}/libpcre.so.0
54 end
55 end
56
57 packages
58 package %{name}
59 provides
60 pcre = %{thisver}
61 end
62
63 obsoletes
64 pcre-compat
65 end
66
67 conflicts
68 pcre <= %{thisver}
69 end
70 end
71
72 package %{name}-debuginfo
73 template DEBUGINFO
74 end
75 end