diff --git a/mumble.changes b/mumble.changes index dc60915..2a47574 100644 --- a/mumble.changes +++ b/mumble.changes @@ -2,6 +2,7 @@ Mon Jun 25 14:58:45 UTC 2012 - lnussel@suse.de - allow reading /etc/ssl/openssl.cnf in apparmor profile (bnc#768692) +- fix path to sed and grep due to usr move in 12.2 ------------------------------------------------------------------- Mon Feb 20 08:49:15 UTC 2012 - lnussel@suse.de diff --git a/mumble.spec b/mumble.spec index 61fb45b..d5211ef 100644 --- a/mumble.spec +++ b/mumble.spec @@ -337,6 +337,9 @@ install -D -m 0755 release/mumble11x %{buildroot}%{_bindir}/mumble11x install -D -m 0755 release/murmurd "%{buildroot}%{_sbindir}/murmurd" install -D -m 0755 %{SOURCE2} %{buildroot}/etc/init.d/mumble-server install -D -m 0755 %{SOURCE3} %{buildroot}/etc/apparmor.d/usr.sbin.murmurd +%if 0%{?suse_version} < 1220 +sed -e 's,/usr/bin/grep,/bin/grep,;s,/usr/bin/sed,/bin/sed,' %{buildroot}/etc/apparmor.d/usr.sbin.murmurd +%endif install -d -m 0755 %{buildroot}%{_bindir} # can be launched as user too but apparmor profile doesn't make # sense in that case. So use link to avoid the profile. diff --git a/murmur.apparmor b/murmur.apparmor index a5e830a..e062800 100644 --- a/murmur.apparmor +++ b/murmur.apparmor @@ -41,8 +41,8 @@ /proc/meminfo r, /usr/bin/getopt rix, /usr/bin/head rix, - /bin/grep rix, - /bin/sed rix, + /usr/bin/grep rix, + /usr/bin/sed rix, /usr/bin/cut rix, /usr/bin/lsb_release r, /etc/SuSE-release r,