[xmp] - In audacious-plugin-xmp require a specific audacious(plugin-api).

Michael Schwendt mschwendt at fedoraproject.org
Fri Jan 28 11:25:12 UTC 2011


commit ee8e1ff28deaa12da983ac9ad4ab59eebac32e68
Author: Michael Schwendt <mschwendt at fedoraproject.org>
Date:   Fri Jan 28 12:25:01 2011 +0100

    - In audacious-plugin-xmp require a specific audacious(plugin-api).

 xmp.spec |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/xmp.spec b/xmp.spec
index 5f4b1b1..46f923a 100644
--- a/xmp.spec
+++ b/xmp.spec
@@ -3,7 +3,7 @@
 
 Name: xmp
 Version: 3.3.0
-Release: 3%{?dist}
+Release: 4%{?dist}
 Summary: A multi-format module player
 Group: Applications/Multimedia
 #Source: http://downloads.sourceforge.net/sourceforge/xmp/xmp-%{version}.tar.gz
@@ -30,7 +30,14 @@ Tracker II (XM) and Impulse Tracker (IT) files.
 %package -n audacious-plugin-%{name}
 Summary: A xmp plugin for Audacious
 Group: Applications/Multimedia
+%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
+%else
 Requires: audacious
+%endif
 
 %description -n audacious-plugin-%{name}
 The Extended Module Player is a modplayer for Unix-like systems that plays
@@ -94,6 +101,9 @@ rm -rf %{buildroot}
 %{xmms_input_plugin_dir}/*
 
 %changelog
+* Fri Jan 28 2011 Michael Schwendt <mschwendt at fedoraproject.org> - 3.3.0-4
+- In audacious-plugin-xmp require a specific audacious(plugin-api).
+
 * Mon Dec 13 2010 Michael Schwendt <mschwendt at fedoraproject.org> - 3.3.0-3
 - Rebuild for Audacious 2.4.2 generic plugin API/ABI bump.
 


More information about the scm-commits mailing list