1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
10 groups = System/Libraries
11 url = http://www.selinuxproject.org
12 license = Public Domain
13 summary = SELinux library and simple utilities.
16 libselinux provides an API for SELinux applications to get and set
17 process and file security contexts and to obtain security policy
21 sources = %{thisapp}.tgz
33 make CC=gcc LIBDIR="%{libdir}" SHLIBDIR="%{libdir}" CFLAGS="-g %{CFLAGS}" swigify
34 make CC=gcc LIBDIR="%{libdir}" SHLIBDIR="%{libdir}" CFLAGS="-g %{CFLAGS}" all
35 make CC=gcc LIBDIR="%{libdir}" SHLIBDIR="%{libdir}" CFLAGS="-g %{CFLAGS}" pywrap
38 # Install libraries to correct place.
39 make_install_targets += install-pywrap \
40 BINDIR="%{BUILDROOT}%{bindir}" \
41 SBINDIR="%{BUILDROOT}%{sbindir}" \
42 LIBDIR="%{BUILDROOT}%{libdir}" \
43 SHLIBDIR="%{BUILDROOT}%{libdir}"
46 # Remove unwanted binaries
47 rm -f %{BUILDROOT}/usr/sbin/compute_*
48 rm -f %{BUILDROOT}/usr/sbin/deftype
49 rm -f %{BUILDROOT}/usr/sbin/execcon
50 rm -f %{BUILDROOT}/usr/sbin/getenforcemode
51 rm -f %{BUILDROOT}/usr/sbin/getfilecon
52 rm -f %{BUILDROOT}/usr/sbin/getpidcon
53 rm -f %{BUILDROOT}/usr/sbin/mkdircon
54 rm -f %{BUILDROOT}/usr/sbin/policyvers
55 rm -f %{BUILDROOT}/usr/sbin/setfilecon
56 rm -f %{BUILDROOT}/usr/sbin/selinuxconfig
57 rm -f %{BUILDROOT}/usr/sbin/selinuxdisable
58 rm -f %{BUILDROOT}/usr/sbin/getseuser
59 rm -f %{BUILDROOT}/usr/sbin/selinux_check_securetty_context
62 ln -svf libselinux.so.1 %{BUILDROOT}%{libdir}/libselinux.so
74 summary = SELinux libselinux utitlities.
76 The libselinux-utils package contains the utilities.
81 /usr/share/man/man{5,8}
85 package python-selinux
86 summary = SELinux python bindings.
87 description = SELinux python bindings for libselinux.
94 package %{name}-debuginfo