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-rhat.patch2
42 libselinux-devel>=2.1.7-3
50 # Manually add policycoreutils-sepolgen.patch because it has to be applied to the sepolgen source.
52 cd %{DIR_SRC}/sepolgen-%{sepolgen_ver} && patch -Np2 -i %{DIR_PATCHES}/policycoreutils-sepolgen.patch2
55 make_build_targets += \
63 make_install_targets +=\
65 BINDIR=%{BUILDROOT}%{bindir} \
66 SBINDIR=%{BUILDROOT}%{sbindir} \
67 LIBDIR=%{BUILDROOT}%{libdir}
71 make -C %{DIR_SRC}/sepolgen-%{sepolgen_ver} %{make_build_targets}
76 make -C %{DIR_SRC}/sepolgen-%{sepolgen_ver} DESTDIR=%{BUILDROOT} %{make_install_targets}
78 # Install bash_completion for semanage.
79 mkdir -pv %{BUILDROOT}/etc/bash_completion.d
80 install -m 755 %{DIR_SOURCE}/semanage-bash-completion.sh %{BUILDROOT}/etc/bash_completion.d/
82 # Remove unneeded stuff.
83 rm -vrf %{BUILDROOT}/etc/{rc.d,xdg,sysconfig}
85 # Remove unneeded sandbox stuff - they are to create graphical sandboxes.
86 rm -vrf %{BUILDROOT}/usr/sbin/seunshare
87 rm -vrf %{BUILDROOT}/usr/share/sandbox
88 rm -vrf %{BUILDROOT}/usr/share/man/man5/seunshare.5
89 rm -vrf %{BUILDROOT}/usr/share/man/man8/sandbox.8
107 package python-%{name}
108 summary = SELinux policy core python utilities.
109 description = %{summary}
119 policycoreutils>=%{thisver}
122 python-selinux>=2.1.7-3
127 %{bindir}/audit2allow
131 %{bindir}/sepolgen-ifgen
132 %{bindir}/sepolgen-ifgen-attr-helper
135 /usr/share/man/man1/audit2allow.1
136 /usr/share/man/man1/audit2why.1
137 /usr/share/man/man8/chcat.8
138 /usr/share/man/man8/sandbox.8
139 /usr/share/man/man8/semanage.8