Skip to content

Commit

Permalink
build: Move sefcontext_compile to utils package and cleanup spec.
Browse files Browse the repository at this point in the history
FC30 has the sefcontext_compile in utils package.

Also clened up and reorganized the build requires for readability.
  • Loading branch information
LaakkonenJussi committed Oct 16, 2018
1 parent b3e8bec commit 287904e
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions rpm/libselinux.spec
Expand Up @@ -38,16 +38,18 @@ License: Public Domain
Group: System Environment/Libraries
# https://github.com/SELinuxProject/selinux/wiki/Releases
Source: %{name}-%{version}.tar.bz2
#Source1: selinuxconlist.8
#Source2: selinuxdefcon.8
Url: https://github.com/SELinuxProject/selinux/wiki
Patch1: ln_old_coreutils_libselinux.patch
BuildRequires: libsepol-static >= %{libsepolver} swig xz-devel python3-base python3-devel pcre-devel
BuildRequires: libsepol-static >= %{libsepolver}
BuildRequires: pcre-devel
BuildRequires: python
BuildRequires: python-devel
BuildRequires: python3-base
BuildRequires: python3-devel
BuildRequires: systemd
# we don't build python2 modules, but make clean expects python2 (could be patched out though)
BuildRequires: python python-devel
BuildRequires: swig
BuildRequires: xz-devel
Requires: libsepol%{?_isa} >= %{libsepolver}
#Conflicts: filesystem < 3, selinux-policy-base < 3.13.1-138

%description
Security-enhanced Linux is a feature of the Linux® kernel and a number
Expand Down Expand Up @@ -188,8 +190,6 @@ rm -f %{buildroot}%{_sbindir}/selinux_check_securetty_context
mv %{buildroot}%{_sbindir}/getdefaultcon %{buildroot}%{_sbindir}/selinuxdefcon
mv %{buildroot}%{_sbindir}/getconlist %{buildroot}%{_sbindir}/selinuxconlist
install -d %{buildroot}%{_mandir}/man8/
#install -m 644 %{SOURCE1} %{buildroot}%{_mandir}/man8/
#install -m 644 %{SOURCE2} %{buildroot}%{_mandir}/man8/
rm -f %{buildroot}%{_mandir}/man8/togglesebool*

#%ldconfig_scriptlets
Expand All @@ -202,14 +202,14 @@ rm -f %{buildroot}%{_mandir}/man8/togglesebool*
%doc %{name}/LICENSE
%{_libdir}/libselinux.so.*
%dir %{_rundir}/setrans/
%{_sbindir}/sefcontext_compile
%{_tmpfilesdir}/libselinux.conf

%files utils
%{_sbindir}/avcstat
%{_sbindir}/getenforce
%{_sbindir}/getsebool
%{_sbindir}/matchpathcon
%{_sbindir}/sefcontext_compile
%{_sbindir}/selinuxconlist
%{_sbindir}/selinuxdefcon
%{_sbindir}/selinuxexeccon
Expand Down

0 comments on commit 287904e

Please sign in to comment.