###############################################################################
name = libsepol
-version = 2.0.41
-release = 2
+version = 2.1.5
+release = 1
groups = System/Libraries
url = http://www.selinuxproject.org
summary = SELinux binary policy manipulation library.
description
- libsepol provides an API for the manipulation of SELinux binary \
+ libsepol provides an API for the manipulation of SELinux binary
policies.
end
-source_dl =
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 = %{libdir}/libsepol.a
+
build
make clean
- make CFLAGS="%{CFLAGS}" %{PARALELLISMFLAGS}
+ make CFLAGS="%{CFLAGS}" %{PARALLELISMFLAGS}
end
- make_install_targets += LIBDIR="%{BUILDROOT}%{libdir}" \
- SHLIBDIR="%{BUILDROOT}/%{lib}"
+ # Install libraries to correct place.
+ make_install_targets += \
+ LIBDIR="%{BUILDROOT}%{libdir}" \
+ SHLIBDIR="%{BUILDROOT}%{libdir}"
install_cmds
# Remove binaries
rm -rf %{BUILDROOT}/usr/bin
- # Remove manpages from binaries
+ # 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
packages
package %{name}
- end
-
+
package %{name}-devel
template DEVEL
end
package %{name}-debuginfo
template DEBUGINFO
end
+
+ package %{name}-static
+ summary = Static libraries used to build policy manipulation tools.
+ description = %{summary}
+ groups = Development/Libraries
+
+ files
+ %{libdir}/libsepol.a
+ end
+ end
end