Make sure semanage and restorecon are installed when we want to use them.
authorJan Pazdziora <jpazdziora@redhat.com>
Fri, 6 Jun 2014 14:07:11 +0000 (16:07 +0200)
committerSimo Sorce <simo@redhat.com>
Fri, 6 Jun 2014 15:55:56 +0000 (11:55 -0400)
Addressing
Installing : ipsilon-0.2.4-3.fc20.x86_64                                  1/1
/var/tmp/rpm-tmp.pDkQSL: line 1: semanage: command not found

Signed-off-by: Jan Pazdziora <jpazdziora@redhat.com>
Reviewed-by: Simo Sorce <simo@redhat.com>
contrib/fedora/ipsilon.spec

index 74add2f..910c8c2 100644 (file)
@@ -20,6 +20,8 @@ Requires:       python-jinja2
 Requires:       python-lxml
 Requires:       python-pam
 Requires(pre):  shadow-utils
+Requires(post): %_sbindir/semanage, %_sbindir/restorecon
+Requires(postun): %_sbindir/semanage
 
 %description
 Ipsilon is a multi-protocol Identiy Provider service. Its function is to