2
%define POLICYDIR /etc/selinux/%{type}
3
%define FILE_CON ${POLICYDIR}/contexts/files/file_contexts
4
%define FC_PRE ${FILE_CON}.pre
6
Summary: SELinux Reference Policy configuration source files
7
Name: selinux-refpolicy-sources
8
Version: REFPOL_VERSION
11
Group: System Environment/Base
12
PreReq: m4 make policycoreutils kernel gcc
13
Requires: checkpolicy >= 1.33.1
14
Requires: python make m4
15
BuildRequires: make m4 python
16
Obsoletes: policy-sources
17
Source: refpolicy-%{version}.tar.bz2
18
Url: http://oss.tresys.com/projects/refpolicy
20
BuildRoot: /tmp/rpmbuild/%{name}
23
This subpackage includes the SELinux Reference Policy
24
source files, which can be used to build a targeted policy
25
or strict policy configuration.
28
%setup -q -n refpolicy
31
sed -i -e '/^TYPE/s/strict/targeted/' Makefile
32
sed -i -e 's/^#DISTRO/DISTRO/' Makefile
33
sed -i -e '/^DIRECT_INITRC/s/n/y/' Makefile
39
rm -fR $RPM_BUILD_ROOT
40
make DESTDIR=$RPM_BUILD_ROOT install-src
43
rm -fR $RPM_BUILD_ROOT
46
%defattr(-,root,root,-)
47
%{_sysconfdir}/selinux/%{type}/src/policy/