~ubuntu-branches/ubuntu/maverick/refpolicy-ubuntu/maverick

« back to all changes in this revision

Viewing changes to support/selinux-refpolicy-sources.spec.skel

  • Committer: Bazaar Package Importer
  • Author(s): Marshall Miller
  • Date: 2009-03-24 02:17:01 UTC
  • Revision ID: james.westby@ubuntu.com-20090324021701-ost9gewrbluclm5r
Tags: upstream-0.2.20090324
ImportĀ upstreamĀ versionĀ 0.2.20090324

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
%define type refpolicy
 
2
%define POLICYDIR /etc/selinux/%{type}
 
3
%define FILE_CON ${POLICYDIR}/contexts/files/file_contexts
 
4
%define FC_PRE ${FILE_CON}.pre
 
5
 
 
6
Summary: SELinux Reference Policy configuration source files 
 
7
Name: selinux-refpolicy-sources
 
8
Version: REFPOL_VERSION
 
9
Release: 1
 
10
License: GPL
 
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
 
19
BuildArch: noarch
 
20
BuildRoot: /tmp/rpmbuild/%{name}
 
21
 
 
22
%description
 
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.
 
26
 
 
27
%prep
 
28
%setup -q -n refpolicy
 
29
 
 
30
%build
 
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
 
34
make conf
 
35
make clean
 
36
rm -f support/*.pyc
 
37
 
 
38
%install
 
39
rm -fR $RPM_BUILD_ROOT
 
40
make DESTDIR=$RPM_BUILD_ROOT install-src
 
41
 
 
42
%clean
 
43
rm -fR $RPM_BUILD_ROOT
 
44
 
 
45
%files
 
46
%defattr(-,root,root,-)
 
47
%{_sysconfdir}/selinux/%{type}/src/policy/
 
48
 
 
49
%changelog