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
name = libsepol
version = 2.1.4
-release = 1
+release = 2
groups = System/Libraries
url = http://www.selinuxproject.org
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}
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