diff --git a/mysql-selinux.spec b/mysql-selinux.spec index 5115c74..a947be0 100644 --- a/mysql-selinux.spec +++ b/mysql-selinux.spec @@ -4,17 +4,16 @@ %global modulename mysql Name: mysql-selinux -Version: 1.0.5 -Release: 1%{?dist} +Version: 1.0.2 +Release: 6%{?dist} License: GPLv3 URL: https://github.com/devexp-db/mysql-selinux 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 +Source0: mysql-selinux-%{version}.tar.gz BuildArch: noarch -BuildRequires: make BuildRequires: selinux-policy-devel Requires(post): policycoreutils %{?selinux_requires} @@ -22,10 +21,12 @@ 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 @@ -34,9 +35,7 @@ make install -d %{buildroot}%{_datadir}/selinux/packages install -m 0644 %{modulename}.pp.bz2 %{buildroot}%{_datadir}/selinux/packages - -%pre -%selinux_relabel_pre -s %{selinuxtype} +%check %post %selinux_modules_install -s %{selinuxtype} %{_datadir}/selinux/packages/%{modulename}.pp.bz2 || : @@ -49,7 +48,6 @@ fi %posttrans %selinux_relabel_post -s %{selinuxtype} || : - %files %defattr(-,root,root,0755) %attr(0644,root,root) %{_datadir}/selinux/packages/%{modulename}.pp.bz2 @@ -57,17 +55,6 @@ fi %license COPYING %changelog -* Thu Jun 09 2022 Michal Schorm - 1.0.5-1 -- Rebase to 1.0.5 - -* Fri Mar 18 2022 Lukas Javorsky - 1.0.4-1 -- Rebase to 1.0.4 -- Unintentional removal of semicolon - -* Fri Mar 18 2022 Lukas Javorsky - 1.0.3-1 -- Rebase to 1.0.3 -- Remove setuid/setgid capabilities from mysqld_t type. - * Thu Jan 10 2022 Lukas Javorsky - 1.0.2-6 - Fix the gating.yaml file so it checks the correct tests diff --git a/sources b/sources index 51160a7..8bff39e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (mysql-selinux-1.0.5.tar.gz) = e560914e1248fd2661f474ac4dfd14073807e6ae513292f80ba42276c47b14c6664d867a08850515d848549fcbc33e0d24d4fbb902475d9860d45c45f3140200 +SHA512 (mysql-selinux-1.0.2.tar.gz) = f3bea6ae7abec1cac42e91d71538933d69f6ef73c050e8a7e824333b7597914ed4ada0ff694bd46bb1828f9759de5ba455a38c4eced4f18c310e1f7fcee37dca