1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
11 url = http://www.selinuxproject.org
13 summary = SELinux policy core utilities.
16 policycoreutils contains utilities that are required
17 for basic operation of a SELinux system. These utilities include
18 load_policy to load policies, setfiles to label filesystems and newrole
26 sepolgen-%{sepolgen_ver}.tgz
28 # We have to apply policycoreutils-sepolgen.patch at a later time.
30 policycoreutils-gui.patch \
31 policycoreutils-po.patch \
32 policycoreutils-rhat.patch
44 libselinux-devel>=2.1.7-3
51 # Manually add policycoreutils-sepolgen.patch because it has to be applied to the sepolgen source.
53 cd %{DIR_SRC}/sepolgen-%{sepolgen_ver} && patch -Np1 -i %{DIR_PATCHES}/policycoreutils-sepolgen.patch
56 make_build_targets += \
62 make_install_targets +=\
64 LIBDIR=%{BUILDROOT}/usr/lib
68 make -C %{DIR_SRC}/sepolgen-%{sepolgen_ver} %{make_build_targets}
73 make -C %{DIR_SRC}/sepolgen-%{sepolgen_ver} %{make_install_targets}
75 # Remove unneeded stuff.
76 rm -vrf %{BUILDROOT}/etc/{rc.d,xdg,sysconfig}
78 # Fix absolute symlink
79 ln -svf ../../sbin/load_policy %{BUILDROOT}/usr/sbin/load_policy
81 # Remove unneeded sandbox stuff - they are to create graphical sandboxes.
82 rm -vrf %{BUILDROOT}/usr/sbin/seunshare
83 rm -vrf %{BUILDROOT}/usr/share/sandbox
84 rm -vrf %{BUILDROOT}/usr/share/man/man5/seunshare.5
85 rm -vrf %{BUILDROOT}/usr/share/man/man8/sandbox.8
92 package python-%{name}
93 summary = SELinux policy core python utilities.
94 description = %{summary}
97 policycoreutils>=%{thisver}
98 python-selinux>=2.1.7-3
106 /usr/bin/sepolgen-ifgen
107 /usr/bin/sepolgen-ifgen-attr-helper
110 /usr/share/man/man1/audit2allow.1
111 /usr/share/man/man1/audit2why.1
112 /usr/share/man/man8/chcat.8
113 /usr/share/man/man8/sandbox.8
114 /usr/share/man/man8/semanage.8