diff --git a/nfs-ganesha.spec b/nfs-ganesha.spec index d2702ce..d4d13d0 100644 --- a/nfs-ganesha.spec +++ b/nfs-ganesha.spec @@ -94,7 +94,7 @@ Requires: openSUSE-release Name: nfs-ganesha Version: 2.5.3 -Release: 1%{?dev:%{dev}}%{?dist} +Release: 2%{?dev:%{dev}}%{?dist} Summary: NFS-Ganesha is a NFS Server running in user space Group: Applications/System License: LGPLv3+ @@ -490,6 +490,7 @@ make DESTDIR=%{buildroot} install %post %if ( 0%{?suse_version} ) %service_add_post nfs-ganesha.service nfs-ganesha-lock.service nfs-ganesha-config.service +%else %if ( 0%{?fedora} || ( 0%{?rhel} && 0%{?rhel} > 6 ) ) semanage fcontext -a -t ganesha_var_log_t %{_localstatedir}/log/ganesha semanage fcontext -a -t ganesha_var_log_t %{_localstatedir}/log/ganesha/ganesha.log @@ -498,13 +499,6 @@ semanage fcontext -a -t ganesha_var_log_t %{_localstatedir}/log/ganesha/ganesha- %endif restorecon %{_localstatedir}/log/ganesha %endif -%else -%if ( 0%{?fedora} || ( 0%{?rhel} && 0%{?rhel} > 6 ) ) -semanage fcontext -a -t ganesha_var_log_t %{_localstatedir}/log/ganesha -semanage fcontext -a -t ganesha_var_log_t %{_localstatedir}/log/ganesha/ganesha.log -semanage fcontext -a -t ganesha_var_log_t %{_localstatedir}/log/ganesha/ganesha-gfapi.log -restorecon %{_localstatedir}/log/ganesha -%endif %if %{with_systemd} %systemd_post nfs-ganesha.service %systemd_post nfs-ganesha-lock.service @@ -714,6 +708,9 @@ exit 0 %endif %changelog +* Fri Oct 20 2017 Kaleb S. KEITHLEY 2.5.3-2 +- nfs-ganesha 2.5.3, fix semanage in %%post + * Tue Oct 10 2017 Kaleb S. KEITHLEY 2.5.3-1 - nfs-ganesha 2.5.3 GA