Blame SPECS/mysql-selinux.spec

0c61bc
# defining macros needed by SELinux
0c61bc
%global selinuxtype targeted
0c61bc
%global moduletype contrib
0c61bc
%global modulename mysql
0c61bc
0c61bc
Name:           mysql-selinux
0c61bc
Version:        1.0.4
0c61bc
Release:        2%{?dist}
0c61bc
0c61bc
License:        GPLv3
0c61bc
URL:            https://github.com/devexp-db/mysql-selinux
0c61bc
Summary:        SELinux policy modules for MySQL and MariaDB packages
0c61bc
0c61bc
Source0:        mysql-selinux-%{version}.tar.gz
0c61bc
0c61bc
BuildArch:      noarch
0c61bc
BuildRequires: make
0c61bc
BuildRequires:  selinux-policy-devel
0c61bc
Requires(post): policycoreutils
0c61bc
%{?selinux_requires}
0c61bc
0c61bc
%description
0c61bc
SELinux policy modules for MySQL and MariaDB packages.
0c61bc
0c61bc
%prep
0c61bc
%setup -q -n %{name}-%{version}
0c61bc
0c61bc
%pre
0c61bc
%selinux_relabel_pre -s %{selinuxtype}
0c61bc
0c61bc
%build
0c61bc
make
0c61bc
0c61bc
%install
0c61bc
# install policy modules
0c61bc
install -d %{buildroot}%{_datadir}/selinux/packages
0c61bc
install -m 0644 %{modulename}.pp.bz2 %{buildroot}%{_datadir}/selinux/packages
0c61bc
0c61bc
%check
0c61bc
0c61bc
%post
0c61bc
%selinux_modules_install -s %{selinuxtype} %{_datadir}/selinux/packages/%{modulename}.pp.bz2 || :
0c61bc
0c61bc
%postun
0c61bc
if [ $1 -eq 0 ]; then
0c61bc
    %selinux_modules_uninstall -s %{selinuxtype} %{modulename} || :
0c61bc
fi
0c61bc
0c61bc
%posttrans
0c61bc
%selinux_relabel_post -s %{selinuxtype} || :
0c61bc
0c61bc
%files
0c61bc
%defattr(-,root,root,0755)
0c61bc
%attr(0644,root,root) %{_datadir}/selinux/packages/%{modulename}.pp.bz2
0c61bc
%ghost %verify(not mode md5 size mtime) %{_sharedstatedir}/selinux/%{selinuxtype}/active/modules/200/%{modulename}
0c61bc
%license COPYING
0c61bc
0c61bc
%changelog
0c61bc
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.0.4-2
0c61bc
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
0c61bc
  Related: rhbz#1991688
0c61bc
0c61bc
* Tue May 04 2021 Lukas Javorsky <ljavorsk@redhat.com> - 1.0.4-1
0c61bc
- Rebase to 1.0.4
0c61bc
- Fix rpm verification it's a ghost file so it should ignore the error
0c61bc
0c61bc
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.0.2-3
0c61bc
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
0c61bc
0c61bc
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-2
0c61bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
0c61bc
0c61bc
* Wed Dec 02 2020 Michal Schorm <mschorm@redhat.com> - 1.0.2-1
0c61bc
- Rebase to 1.0.2 release
0c61bc
  Added context for "*mariadb*" named executables
0c61bc
0c61bc
* Tue Dec 01 2020 Michal Schorm <mschorm@redhat.com> - 1.0.1-1
0c61bc
- Rebase to 1.0.1 release
0c61bc
  This release is just a sync-up with upstream selinux-policy
0c61bc
- URL changed to a new upstream repository
0c61bc
0c61bc
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-10
0c61bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
0c61bc
0c61bc
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-9
0c61bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
0c61bc
0c61bc
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-8
0c61bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
0c61bc
0c61bc
* Fri Jan 11 2019 Kevin Fenzi <kevin@scrye.com> - 1.0.0-7
0c61bc
- Also make sure posttrans does not fail.
0c61bc
0c61bc
* Thu Jan 10 2019 Kevin Fenzi <kevin@scrye.com> - 1.0.0-6
0c61bc
- Add Requires(post) on policycoreutils for semodule and make sure post/postun cannot fail
0c61bc
0c61bc
* Thu Dec 06 2018 Jakub Janco <jjanco@redhat.com> - 1.0.0-5
0c61bc
- Sync with upstream
0c61bc
0c61bc
* Wed Aug 29 2018 Jakub Janco <jjanco@redhat.com> - 1.0.0-4
0c61bc
- Allow mysqld sys_nice capability
0c61bc
0c61bc
* Mon Aug 20 2018 Jakub Janco <jjanco@redhat.com> - 1.0.0-3
0c61bc
- reflect latest changes of mysql policy
0c61bc
0c61bc
* Fri Jul 27 2018 Jakub Janco <jjanco@redhat.com> - 1.0.0-2
0c61bc
- reflect latest changes of Independent Product Policy
0c61bc
0c61bc
* Wed Jul 18 2018 Jakub Janco <jjanco@redhat.com> - 1.0.0-1
0c61bc
- First Build
0c61bc