]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/commitdiff
libsepol: Keep static libsepol.a, ship it as libsepol-static.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sat, 19 Nov 2011 13:38:26 +0000 (14:38 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sat, 24 Mar 2012 07:26:46 +0000 (08:26 +0100)
We need a static package, because some selinux tools, want to link against
the static library. The shared library doesn't offer all required functions ( they are hidden ) so the won't compile with it.

Conflicts:

libsepol/libsepol.nm

libsepol/libsepol.nm

index bcad999f76d6636984f5f16c653bca6ae4c4111b..1916adbe35c3d2b42fa7ee802668c6540e8d3733 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = libsepol
 version    = 2.1.4
-release    = 1
+release    = 2
 
 groups     = System/Libraries
 url        = http://www.selinuxproject.org
@@ -20,6 +20,10 @@ end
 sources    = %{thisapp}.tgz
 
 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 = /usr/lib/libsepol.a
+
        build
                make clean
                make CFLAGS="%{CFLAGS}" %{PARALELLISMFLAGS}
@@ -47,4 +51,14 @@ packages
        package %{name}-debuginfo
                template DEBUGINFO
        end
+
+       package %{name}-static
+               summary = Static libraries used to build policy manipulation tools.
+               description = %{summary}
+               groups = Development/Libraries
+
+               files
+                       /usr/lib/libsepol.a
+               end
+       end
 end