]> git.ipfire.org Git - ipfire-3.x.git/blame - compat-pcre/compat-pcre.nm
kernel: Change ASPM policy to default
[ipfire-3.x.git] / compat-pcre / compat-pcre.nm
CommitLineData
2979fbcc
SS
1###############################################################################
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
4###############################################################################
5
6name = compat-pcre
7version = 8.21
b31a2e34 8release = 2
2979fbcc
SS
9
10thisapp = pcre-%{version}
11
12groups = System/Libraries
13url = http://www.pcre.org/
14license = BSD
15summary = Perl-compatible regular expression library.
16
17description
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.
21end
22
23source_dl = http://sourceforge.net/projects/pcre/files/pcre/%{version}/
24
25build
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
b31a2e34 45 export LD_LIBRARY_PATH=$(pwd)/.libs
2979fbcc
SS
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
55end
56
57packages
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
75end