- Merge Upstream
This commit is contained in:
parent
2e33f7ba70
commit
081b6ac47e
@ -42,6 +42,9 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: python gawk checkpolicy >= %{CHECKPOLICYVER} m4 policycoreutils >= %{POLICYCOREUTILSVER}
|
BuildRequires: python gawk checkpolicy >= %{CHECKPOLICYVER} m4 policycoreutils >= %{POLICYCOREUTILSVER}
|
||||||
Requires(pre): policycoreutils >= %{POLICYCOREUTILSVER} libsemanage >= 2.0.14-3
|
Requires(pre): policycoreutils >= %{POLICYCOREUTILSVER} libsemanage >= 2.0.14-3
|
||||||
|
Requires: checkpolicy >= %{CHECKPOLICYVER} m4
|
||||||
|
Obsoletes: selinux-policy-devel
|
||||||
|
Provides: selinux-policy-devel
|
||||||
|
|
||||||
%description
|
%description
|
||||||
SELinux Base package
|
SELinux Base package
|
||||||
@ -50,22 +53,11 @@ SELinux Base package
|
|||||||
%{_mandir}/*
|
%{_mandir}/*
|
||||||
%doc %{_usr}/share/doc/%{name}-%{version}
|
%doc %{_usr}/share/doc/%{name}-%{version}
|
||||||
%dir %{_usr}/share/selinux
|
%dir %{_usr}/share/selinux
|
||||||
|
%dir %{_usr}/share/selinux/devel
|
||||||
|
%dir %{_usr}/share/selinux/devel/include
|
||||||
%dir %{_sysconfdir}/selinux
|
%dir %{_sysconfdir}/selinux
|
||||||
%ghost %config(noreplace) %{_sysconfdir}/selinux/config
|
%ghost %config(noreplace) %{_sysconfdir}/selinux/config
|
||||||
%ghost %{_sysconfdir}/sysconfig/selinux
|
%ghost %{_sysconfdir}/sysconfig/selinux
|
||||||
|
|
||||||
%package devel
|
|
||||||
Summary: SELinux policy development
|
|
||||||
Group: System Environment/Base
|
|
||||||
Requires: checkpolicy >= %{CHECKPOLICYVER} m4
|
|
||||||
Requires: selinux-policy = %{version}-%{release} policycoreutils >= %{POLICYCOREUTILSVER}
|
|
||||||
|
|
||||||
%description devel
|
|
||||||
SELinux Policy development package
|
|
||||||
|
|
||||||
%files devel
|
|
||||||
%dir %{_usr}/share/selinux/devel
|
|
||||||
%dir %{_usr}/share/selinux/devel/include
|
|
||||||
%{_usr}/share/selinux/devel/include/*
|
%{_usr}/share/selinux/devel/include/*
|
||||||
%{_usr}/share/selinux/devel/Makefile
|
%{_usr}/share/selinux/devel/Makefile
|
||||||
%{_usr}/share/selinux/devel/policygentool
|
%{_usr}/share/selinux/devel/policygentool
|
||||||
@ -73,13 +65,9 @@ SELinux Policy development package
|
|||||||
%{_usr}/share/selinux/devel/policy.*
|
%{_usr}/share/selinux/devel/policy.*
|
||||||
%attr(755,root,root) %{_usr}/share/selinux/devel/policyhelp
|
%attr(755,root,root) %{_usr}/share/selinux/devel/policyhelp
|
||||||
|
|
||||||
%check devel
|
%check
|
||||||
/usr/bin/sepolgen-ifgen -i %{buildroot}%{_usr}/share/selinux/devel/include -o /dev/null
|
/usr/bin/sepolgen-ifgen -i %{buildroot}%{_usr}/share/selinux/devel/include -o /dev/null
|
||||||
|
|
||||||
%post devel
|
|
||||||
[ -x /usr/bin/sepolgen-ifgen ] && /usr/bin/sepolgen-ifgen
|
|
||||||
exit 0
|
|
||||||
|
|
||||||
%define setupCmds() \
|
%define setupCmds() \
|
||||||
make UNK_PERMS=%5 NAME=%1 TYPE=%2 DISTRO=%{distro} DIRECT_INITRC=%3 MONOLITHIC=%{monolithic} POLY=%4 MLS_CATS=1024 MCS_CATS=1024 bare \
|
make UNK_PERMS=%5 NAME=%1 TYPE=%2 DISTRO=%{distro} DIRECT_INITRC=%3 MONOLITHIC=%{monolithic} POLY=%4 MLS_CATS=1024 MCS_CATS=1024 bare \
|
||||||
make UNK_PERMS=%5 NAME=%1 TYPE=%2 DISTRO=%{distro} DIRECT_INITRC=%3 MONOLITHIC=%{monolithic} POLY=%4 MLS_CATS=1024 MCS_CATS=1024 conf \
|
make UNK_PERMS=%5 NAME=%1 TYPE=%2 DISTRO=%{distro} DIRECT_INITRC=%3 MONOLITHIC=%{monolithic} POLY=%4 MLS_CATS=1024 MCS_CATS=1024 conf \
|
||||||
@ -257,6 +245,8 @@ else
|
|||||||
grep -q "^SETLOCALDEFS" /etc/selinux/config || echo -n "
|
grep -q "^SETLOCALDEFS" /etc/selinux/config || echo -n "
|
||||||
">> /etc/selinux/config
|
">> /etc/selinux/config
|
||||||
fi
|
fi
|
||||||
|
[ -x /usr/bin/sepolgen-ifgen ] && /usr/bin/sepolgen-ifgen
|
||||||
|
exit 0
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
if [ $1 = 0 ]; then
|
if [ $1 = 0 ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user