Bug 201719 - spec file cleanups
Summary: spec file cleanups
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: setroubleshoot
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: John Dennis
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-08-08 14:51 UTC by Jeremy Katz
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-08-08 15:38:11 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jeremy Katz 2006-08-08 14:51:47 UTC
Some minor spec file fixes to
* make the restart on update quiet
* properly require things needed by scriptlets

--- setroubleshoot.spec 7 Aug 2006 22:09:36 -0000       1.18
+++ setroubleshoot.spec 8 Aug 2006 14:59:31 -0000
@@ -32,8 +32,11 @@
 BuildRequires: intltool gettext python
 
 Requires(post):  /sbin/chkconfig
+Requires(post):  /sbin/service
+Requires(post):  /usr/bin/update-desktop-database
 Requires(preun): /sbin/chkconfig
 Requires(preun): /sbin/service
+Requires(postun):  /usr/bin/update-desktop-database
 
 %description
 Provides tools to help diagnose SELinux problems. When AVC messages
@@ -57,7 +60,7 @@
 %post
 /usr/bin/update-desktop-database %{_datadir}/applications
 /sbin/chkconfig --add %{name}
-[ -x /sbin/service ] && /sbin/service %{name} condrestart
+/sbin/service %{name} condrestart >/dev/null 2>&1
 
 %preun
 if [ $1 = 0 ]; then

Comment 1 John Dennis 2006-08-08 15:38:11 UTC
Thanks Jeremy! Changes are applied.


Note You need to log in before you can comment on or make changes to this bug.