[pipelight-selinux/f19] new upstream release add scripts to %%post and %%postun to handle introduced file context

Björn Esser besser82 at fedoraproject.org
Wed Jul 16 13:00:39 UTC 2014


commit d65f5919da8fe36cfb0127fc4e1cad654fbaf2ac
Author: Björn Esser <bjoern.esser at gmail.com>
Date:   Wed Jul 16 14:54:13 2014 +0200

    new upstream release
    add scripts to %%post and %%postun to handle introduced file context

 pipelight-selinux.spec |   29 +++++++++++++++++++++++------
 sources                |    2 +-
 2 files changed, 24 insertions(+), 7 deletions(-)
---
diff --git a/pipelight-selinux.spec b/pipelight-selinux.spec
index b8ba340..b76011b 100644
--- a/pipelight-selinux.spec
+++ b/pipelight-selinux.spec
@@ -4,8 +4,8 @@
 %global selinux_variants %([ -z "%{selinux_types}" ] && echo mls targeted || echo %{selinux_types})
 
 Name:			%{pname}-selinux
-Version:		0.1.0
-Release:		2%{?dist}
+Version:		0.2.0
+Release:		1%{?dist}
 Summary:		SELinux-policy-module for %{pname}
 
 License:		MIT
@@ -19,15 +19,18 @@ BuildRequires:		%{_datadir}/selinux/devel/policyhelp
 BuildRequires:		%{_sbindir}/hardlink
 BuildRequires:		selinux-policy-devel
 
-%{!?rhel:Requires:	%{pname}}
+Requires:		%{pname}
 %if "%{_selinux_policy_version}" != ""
 Requires:		selinux-policy		>= %{_selinux_policy_version}
 %else # "%%{_selinux_policy_version}" != ""
 Requires:		selinux-policy
 %endif # "%%{_selinux_policy_version}" != ""
 
-Requires(post):		%{_sbindir}/semodule
-Requires(postun):	%{_sbindir}/semodule
+Requires(post):		%{_bindir}/find %{_sbindir}/fixfiles
+Requires(post):		%{_sbindir}/restorecon %{_sbindir}/semodule %{pname}
+
+Requires(postun):	%{_bindir}/find %{_sbindir}/fixfiles
+Requires(postun):	%{_sbindir}/restorecon %{_sbindir}/semodule %{pname}
 
 %description
 This package contains the
@@ -64,6 +67,11 @@ do
   %{_sbindir}/semodule -s ${_selinuxvariant}				\
     -i %{_datadir}/selinux/${_selinuxvariant}/%{pname}.pp &> /dev/null || :
 done
+%{_sbindir}/fixfiles -R %{pname} restore || :
+for _dirs in $(%{_bindir}/find /home -type d -name '.wine-pipelight*')
+do
+  %{_sbindir}/restorecon -R "${_dir}" &> /dev/null || :
+done
 
 %postun
 if [ $1 -eq 0 ] ; then
@@ -72,14 +80,23 @@ if [ $1 -eq 0 ] ; then
     %{_sbindir}/semodule -s ${_selinuxvariant} -r %{pname} &> /dev/null || :
   done
 fi
+%{_sbindir}/fixfiles -R %{pname} restore || :
+for _dirs in $(%{_bindir}/find /home -type d -name '.wine-pipelight*')
+do
+  %{_sbindir}/restorecon -R "${_dir}" &> /dev/null || :
+done
 
 
 %files
-%doc %{pname}.te README.md
+%doc ChangeLog.md LICENSE %{pname}.te README.md
 %{_datadir}/selinux/*/%{pname}.pp
 
 
 %changelog
+* Wed Jul 16 2014 Björn Esser <bjoern.esser at gmail.com> - 0.2.0-1
+- new upstream release
+- add scripts to %%post and %%postun to handle introduced file context
+
 * Mon Jul 14 2014 Björn Esser <bjoern.esser at gmail.com> - 0.1.0-2
 - getting rid of broken dependency on epel7 caused by premature build
 - fix macro-in-comment
diff --git a/sources b/sources
index acbd2e8..b2b6318 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-a1cc8519d86ab1324bc69cbe06464c9f  pipelight-selinux-0.1.0.tar.gz
+bdba9dc86dff5d72b34275322ea37570  pipelight-selinux-0.2.0.tar.gz


More information about the scm-commits mailing list