From 7b6ea34a24f2dbc5e6145cfabfd19cab76117bbd Mon Sep 17 00:00:00 2001 From: Michael Schwendt Date: Jan 27 2011 17:48:42 +0000 Subject: silence the plugin-api grep and make the stuff for F15 only (for now) --- diff --git a/audacious-plugin-fc.spec b/audacious-plugin-fc.spec index 19967ca..2d63253 100644 --- a/audacious-plugin-fc.spec +++ b/audacious-plugin-fc.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 2.4 for both.