[audacious-plugins] silence the plugin-api grep and make the stuff for F15 only (for now)

Michael Schwendt mschwendt at fedoraproject.org
Thu Jan 27 17:48:21 UTC 2011


commit 560215e821e09c890a325d026375e531be266d00
Author: Michael Schwendt <mschwendt at fedoraproject.org>
Date:   Thu Jan 27 18:48:10 2011 +0100

    silence the plugin-api grep and make the stuff for F15 only (for now)

 audacious-plugins.spec |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/audacious-plugins.spec b/audacious-plugins.spec
index dde04f3..01cf4e2 100644
--- a/audacious-plugins.spec
+++ b/audacious-plugins.spec
@@ -1,7 +1,9 @@
-%global aud_plugin_api %(grep '[ ]*#define[ ]*__AUDACIOUS_PLUGIN_API__' %{_includedir}/audacious/plugin.h | sed 's!.*__AUDACIOUS_PLUGIN_API__[ ]*\\([0-9]\\+\\).*!\\1!')
+%if 0%{?fedora} > 14
+%global aud_plugin_api %(grep '[ ]*#define[ ]*__AUDACIOUS_PLUGIN_API__' %{_includedir}/audacious/plugin.h 2>/dev/null | sed 's!.*__AUDACIOUS_PLUGIN_API__[ ]*\\([0-9]\\+\\).*!\\1!')
 %if %(test -f %{_includedir}/audacious/plugin.h && echo 1 || echo 0)
 Requires: audacious(plugin-api) = %{aud_plugin_api}
 %endif
+%endif
 
 # Minimum audacious/audacious-plugins version in inter-package dependencies.
 # We need at least 2.4.3 because of the plugin API change after 2.4.0


More information about the scm-commits mailing list