Code reorganisation

- whitespace changes
 - remove empty %check phase
 - move all scriptlets to one place

--

Cherry-picked Fedora commit: 082bdac2473eceba348ba3b0eedd47b5e01315eb

--

Related: #2073386
This commit is contained in:
Michal Schorm 2021-09-13 13:23:20 +02:00
parent f87299cded
commit bac48fef99
1 changed files with 6 additions and 5 deletions

View File

@ -14,7 +14,7 @@ Summary: SELinux policy modules for MySQL and MariaDB packages
Source0: https://github.com/devexp-db/mysql-selinux/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: make
BuildRequires: make
BuildRequires: selinux-policy-devel
Requires(post): policycoreutils
%{?selinux_requires}
@ -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