]> git.ipfire.org Git - people/stevee/ipfire-3.x.git/commitdiff
libsepol: Update to 2.5.
authorStefan Schantl <stefan.schantl@ipfire.org>
Tue, 4 Oct 2016 09:34:12 +0000 (11:34 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 4 Oct 2016 11:09:14 +0000 (12:09 +0100)
This is a major update to the latest stable version of libsepol.

* New build dependency: flex.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
libsepol/libsepol.nm

index ac647815e7826b6a73eac3e46d0572968bf150e8..951f76eac38ef81fa6df08a368abbfc8029330bf 100644 (file)
@@ -4,7 +4,7 @@
 ###############################################################################
 
 name       = libsepol
-version    = 2.1.5
+version    = 2.5
 release    = 1
 
 groups     = System/Libraries
@@ -17,16 +17,21 @@ description
        policies.
 end
 
-sources    = %{thisapp}.tgz
+source_dl  = https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20160223/
+sources    = %{thisapp}.tar.gz
 
 build
        # Keep static libsepol.a for some selinux tools, that needs to link 
        # against it. We will put it into an own package.
        keep_libraries = %{libdir}/libsepol.a
 
+       requires
+               flex
+       end
+
        build
                make clean
-               make CFLAGS="%{CFLAGS}" %{PARALLELISMFLAGS}
+               make CFLAGS="%{CFLAGS}" LDFLAGS="%{LDFLAGS}" %{PARALLELISMFLAGS}
        end
 
        # Install libraries to correct place.
@@ -40,9 +45,6 @@ build
 
                # Remove manpages for binaries
                rm -rf %{BUILDROOT}/usr/share/man/man8
-
-               # Fix bad symlink.
-               ln -svf libsepol.so.1 %{BUILDROOT}%{libdir}/libsepol.so
        end
 end