selinux-refpolicy/support/selinux-refpolicy-sources.s...

52 lines
1.2 KiB
Plaintext
Raw Normal View History

2005-08-24 20:42:15 +00:00
%define type refpolicy
%define POLICYDIR /etc/selinux/%{type}
%define FILE_CON ${POLICYDIR}/contexts/files/file_contexts
%define FC_PRE ${FILE_CON}.pre
2016-12-06 12:28:10 +00:00
Summary: SELinux Reference Policy configuration source files
2005-08-24 20:42:15 +00:00
Name: selinux-refpolicy-sources
Version: REFPOL_VERSION
Release: 1
License: GPL
Group: System Environment/Base
PreReq: m4 make policycoreutils kernel gcc
2007-09-28 15:14:18 +00:00
Requires: checkpolicy >= 1.33.1
Requires: python >= 3.4
Requires: make m4
BuildRequires: make m4
BuildRequires: python >= 3.4
2005-08-24 20:42:15 +00:00
Obsoletes: policy-sources
Source: refpolicy-%{version}.tar.bz2
2006-10-18 20:26:45 +00:00
Url: http://oss.tresys.com/projects/refpolicy
2005-08-24 20:42:15 +00:00
BuildArch: noarch
BuildRoot: /tmp/rpmbuild/%{name}
%description
This subpackage includes the SELinux Reference Policy
source files, which can be used to build a targeted policy
or strict policy configuration.
%prep
%setup -q -n refpolicy
%build
sed -i -e '/^TYPE/s/strict/targeted/' Makefile
sed -i -e 's/^#DISTRO/DISTRO/' Makefile
sed -i -e '/^DIRECT_INITRC/s/n/y/' Makefile
2005-08-24 20:42:15 +00:00
make conf
make clean
rm -f support/*.pyc
%install
rm -fR $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install-src
%clean
rm -fR $RPM_BUILD_ROOT
%files
2007-09-28 15:14:18 +00:00
%defattr(-,root,root,-)
%{_sysconfdir}/selinux/%{type}/src/policy/
2005-08-24 20:42:15 +00:00
%changelog