2020-07-28 16:28:20 +08:00
|
|
|
%global selinuxtype targeted
|
|
|
|
|
%global modulename mysql
|
|
|
|
|
Name: mysql-selinux
|
2023-10-25 14:54:07 +08:00
|
|
|
Version: 1.0.7
|
|
|
|
|
Release: 1
|
2020-07-28 16:28:20 +08:00
|
|
|
License: GPLv3
|
2023-10-25 14:54:07 +08:00
|
|
|
URL: https://github.com/devexp-db/mysql-selinux
|
2020-07-28 16:28:20 +08:00
|
|
|
Summary: SELinux policies for product
|
2023-10-25 14:54:07 +08:00
|
|
|
Source0: https://github.com/devexp-db/mysql-selinux/archive/%{version}/%{name}-%{version}.tar.gz
|
2020-07-28 16:28:20 +08:00
|
|
|
BuildArch: noarch
|
2021-06-09 16:08:23 +08:00
|
|
|
BuildRequires: selinux-policy-devel systemd
|
2020-07-28 16:28:20 +08:00
|
|
|
Requires(post): policycoreutils
|
|
|
|
|
%{?selinux_requires}
|
|
|
|
|
%description
|
|
|
|
|
SELinux policy modules for product.
|
|
|
|
|
|
|
|
|
|
%prep
|
2023-10-25 14:54:07 +08:00
|
|
|
%autosetup -n %{name}-%{version} -p1
|
2020-07-28 16:28:20 +08:00
|
|
|
|
|
|
|
|
%pre
|
|
|
|
|
%selinux_relabel_pre -s %{selinuxtype}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
make
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
install -d %{buildroot}%{_datadir}/selinux/packages
|
|
|
|
|
install -m 0644 %{modulename}.pp.bz2 %{buildroot}%{_datadir}/selinux/packages
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
%selinux_modules_install -s %{selinuxtype} %{_datadir}/selinux/packages/%{modulename}.pp.bz2 || :
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
if [ $1 -eq 0 ]; then
|
|
|
|
|
%selinux_modules_uninstall -s %{selinuxtype} %{modulename} || :
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
%posttrans
|
|
|
|
|
%selinux_relabel_post -s %{selinuxtype} || :
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root,0755)
|
|
|
|
|
%attr(0644,root,root) %{_datadir}/selinux/packages/%{modulename}.pp.bz2
|
|
|
|
|
%ghost %{_sharedstatedir}/selinux/%{selinuxtype}/active/modules/200/%{modulename}
|
|
|
|
|
%license COPYING
|
|
|
|
|
|
|
|
|
|
%changelog
|
2023-10-25 14:54:07 +08:00
|
|
|
* Wed Oct 25 2023 yaoxin <yao_xin001@hoperun.com> - 1.0.7-1
|
|
|
|
|
- Upgrade to 1.0.7
|
|
|
|
|
|
2022-12-24 15:43:28 +08:00
|
|
|
* Sun Jun 6 2021 zhaoyao <zhaoyao32@huawei.com> - 1.0.0-2
|
2021-06-09 16:08:23 +08:00
|
|
|
- fixs error: pkgconfig(systemd) is needed by mysql-selinux.
|
|
|
|
|
|
2020-07-28 16:28:20 +08:00
|
|
|
* Tue Jul 21 2020 zhangjiapeng <zhangjiapeng9@huawei.com> - 1.0.0-1
|
|
|
|
|
- package init
|