]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blobdiff - pcre/pcre.nm
pcre: Update to 8.35.
[people/ms/ipfire-3.x.git] / pcre / pcre.nm
index 1875f29260b4db016d88d828498f465fcb7739b4..506d8275475dabb84e0f50487f336343f407cca1 100644 (file)
@@ -4,8 +4,10 @@
 ###############################################################################
 
 name       = pcre
-version    = 8.21
-release    = 2
+version    = 8.35
+release    = 1
+
+compat_version = 8.21
 
 groups     = System/Libraries
 url        = http://www.pcre.org/
@@ -19,12 +21,12 @@ description
 end
 
 source_dl  = ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/
+sources   += %{name}-%{compat_version}.tar.gz
 
 build
        requires
                bzip2-devel
                gcc-c++
-               pkg-config
                readline-devel
                zlib-devel
        end
@@ -32,15 +34,33 @@ build
        configure_options += \
                --disable-static \
                --docdir=/usr/share/doc/pcre-%{version} \
-               --enable-utf8 \
-               --enable-pcregrep-libz \
-               --enable-pcregrep-libbz2 \
-               --enable-unicode-properties
+               --enable-jit \
+               --enable-pcre8 \
+               --enable-pcre16 \
+               --enable-pcre32 \
+               --enable-utf \
+               --enable-unicode-properties \
+               --enable-pcretest-libreadline
+
+       build_cmds
+               cd %{DIR_SRC}/%{name}-%{compat_version}
+               ./configure \
+                       %{configure_options}
+
+               make %{PARALLELISMFLAGS}
+       end
+
+       test
+               make check
+
+               cd %{DIR_SRC}/%{name}-%{compat_version}
+               make check
+       end
 
        install_cmds
-               mkdir -pv %{BUILDROOT}/{,usr/}%{lib}
-               mv -v %{BUILDROOT}%{libdir}/libpcre.so.* %{BUILDROOT}/%{lib}
-               ln -v -sf ../../%{lib}/libpcre.so.0 %{BUILDROOT}%{libdir}/libpcre.so
+               cd %{DIR_SRC}/%{name}-%{compat_version}
+               install -m 755 .libs/libpcre.so.0.0.1 %{BUILDROOT}%{libdir}
+               ln -svf libpcre.so.0.0.1 %{BUILDROOT}%{libdir}/libpcre.so.0
        end
 end
 
@@ -51,6 +71,14 @@ packages
                template DEVEL
        end
 
+       package %{name}-compat
+               summary = Compat libraries of %{thisapp}.
+
+               files
+                       %{libdir}/libpcre.so.0*
+               end
+       end
+
        package %{name}-debuginfo
                template DEBUGINFO
        end