Code reorganisation
- whitespace changes - remove empty %check phase - move all scriptlets to one place
This commit is contained in:
parent
802ff2081e
commit
082bdac247
@ -22,12 +22,10 @@ Requires(post): policycoreutils
|
||||
%description
|
||||
SELinux policy modules for MySQL and MariaDB packages.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{version}
|
||||
|
||||
%pre
|
||||
%selinux_relabel_pre -s %{selinuxtype}
|
||||
|
||||
%build
|
||||
make
|
||||
|
||||
@ -36,7 +34,9 @@ make
|
||||
install -d %{buildroot}%{_datadir}/selinux/packages
|
||||
install -m 0644 %{modulename}.pp.bz2 %{buildroot}%{_datadir}/selinux/packages
|
||||
|
||||
%check
|
||||
|
||||
%pre
|
||||
%selinux_relabel_pre -s %{selinuxtype}
|
||||
|
||||
%post
|
||||
%selinux_modules_install -s %{selinuxtype} %{_datadir}/selinux/packages/%{modulename}.pp.bz2 || :
|
||||
@ -49,6 +49,7 @@ fi
|
||||
%posttrans
|
||||
%selinux_relabel_post -s %{selinuxtype} || :
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,0755)
|
||||
%attr(0644,root,root) %{_datadir}/selinux/packages/%{modulename}.pp.bz2
|
||||
|
Loading…
Reference in New Issue
Block a user