From 020b6e0d9416e39ae3a8f30b5ac105d5d0fceda2 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Sat, 19 Nov 2011 14:38:26 +0100 Subject: [PATCH] libsepol: Keep static libsepol.a, ship it as libsepol-static. 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 | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/libsepol/libsepol.nm b/libsepol/libsepol.nm index bcad999f7..1916adbe3 100644 --- a/libsepol/libsepol.nm +++ b/libsepol/libsepol.nm @@ -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 -- 2.39.2