diff --git a/audacious-plugin-fc.spec b/audacious-plugin-fc.spec index 9eae01a..d9ee5d1 100644 --- a/audacious-plugin-fc.spec +++ b/audacious-plugin-fc.spec @@ -1,21 +1,20 @@ # Minimum audacious/audacious-plugins version in inter-package dependencies. %global aud_ver 2.4.3 -%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} +%if 0%{aud_plugin_api} > 0 +%global aud_plugin_dep Requires: audacious(plugin-api) = %{aud_plugin_api} %endif -%else + +%{?aud_plugin_dep} Requires: audacious >= %{aud_ver} -%endif -%global plugindir %(pkg-config audacious --variable=input_plugin_dir) +%global plugindir %(pkg-config audacious --variable=input_plugin_dir 2>/dev/null) Summary: Future Composer input plugin for Audacious Name: audacious-plugin-fc Version: 0.6 -Release: 3%{?dist} +Release: 4%{?dist} Provides: audacious-plugins-fc = %{version}-%{release} URL: http://xmms-fc.sourceforge.net/ License: GPLv2+ @@ -33,6 +32,11 @@ music files from AMIGA. Song-length detection and seek are implemented, too. %prep +%if 0%{?fedora} > 13 +# Enforce availability of the audacious(plugin-api) dependency. +%{!?aud_plugin_dep:echo 'No audacious(plugin-api) dependency!' && exit -1} +%endif + %setup -q @@ -58,6 +62,10 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Fri Feb 4 2011 Michael Schwendt - 0.6-4 +- No build: wait for mass-rebuild in Rawhide. +- Enhance the audacious(plugin-api) stuff in the spec file. + * Thu Jan 27 2011 Michael Schwendt - 0.6-3 - Require specific audacious(plugin-api) capability.