]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - compat-pcre/compat-pcre.nm
Merge remote-tracking branch 'stevee/compat-packages'
[people/ms/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 = 1
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 make check
46 end
47
48 install
49 # Only install libraries.
50 mkdir -pv %{BUILDROOT}%{libdir}
51 install -m 755 .libs/libpcre.so.0.0.1 %{BUILDROOT}%{libdir}
52 ln -svf libpcre.so.0.0.1 %{BUILDROOT}%{libdir}/libpcre.so.0
53 end
54 end
55
56 packages
57 package %{name}
58 provides
59 pcre = %{thisver}
60 end
61
62 obsoletes
63 pcre-compat
64 end
65
66 conflicts
67 pcre <= %{thisver}
68 end
69 end
70
71 package %{name}-debuginfo
72 template DEBUGINFO
73 end
74 end