File audacious-plugins.spec of Package audacious-plugins

#
# spec file for package audacious-plugins
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


%define aud_plugin_api %(grep '[ ]*#define[ ]*_AUD_PLUGIN_VERSION[ ]\\+' %{_includedir}/audacious/plugin.h 2>/dev/null | sed 's!.*_AUD_PLUGIN_VERSION[ ]\\+\\([0-9]\\+\\).*!\\1!')

%bcond_with faad
%bcond_with lame
%bcond_with ffmpeg
%bcond_with mpg123

Name:           audacious-plugins
Version:        3.4.2
Release:        0
Summary:        Plugins for the Audacious audio player
License:        GPL-2.0+ and LGPL-2.1+ and GPL-3.0 and MIT and BSD-2-Clause
Group:          Productivity/Multimedia/Sound/Players
Url:            http://audacious-media-player.org/
Source0:        http://distfiles.audacious-media-player.org/audacious-plugins-%{version}.tar.bz2
Source1:        BSD-2-Clause
Source2:        MIT
Source3:        gpl-2.0.txt
Source4:        gpl-3.0.txt
Source5:        lgpl-2.1.txt
BuildRequires:  gcc-c++
BuildRequires:  lirc-devel
BuildRequires:  pkgconfig(alsa) >= 1.0.16
BuildRequires:  pkgconfig(audacious) >= 3.3
BuildRequires:  pkgconfig(cairo) >= 1.6
BuildRequires:  pkgconfig(dbus-glib-1) >= 0.60
BuildRequires:  pkgconfig(flac) >= 1.1.3
BuildRequires:  pkgconfig(fluidsynth) >= 1.0.6
BuildRequires:  pkgconfig(glib-2.0) >= 2.16
BuildRequires:  pkgconfig(gmodule-2.0) >= 2.16
BuildRequires:  pkgconfig(gthread-2.0) >= 2.16
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.0.0
BuildRequires:  pkgconfig(jack) >= 1.9.7
BuildRequires:  pkgconfig(libbinio) >= 1.4
BuildRequires:  pkgconfig(libbs2b) >= 3.0.0
BuildRequires:  pkgconfig(libcddb) >= 1.2.1
BuildRequires:  pkgconfig(libcdio) >= 0.70
BuildRequires:  pkgconfig(libcdio_cdda) >= 0.70
BuildRequires:  pkgconfig(libcue)
BuildRequires:  pkgconfig(libcurl) >= 7.9.7
BuildRequires:  pkgconfig(libmms) >= 0.3
BuildRequires:  pkgconfig(libmodplug)
BuildRequires:  pkgconfig(libnotify) >= 0.7
BuildRequires:  pkgconfig(libpulse) >= 0.9.5
BuildRequires:  pkgconfig(libsidplayfp) >= 1.0
BuildRequires:  pkgconfig(libxml-2.0)
BuildRequires:  pkgconfig(neon) >= 0.26
BuildRequires:  pkgconfig(ogg) >= 1.0
BuildRequires:  pkgconfig(pango) >= 1.22
BuildRequires:  pkgconfig(samplerate)
BuildRequires:  pkgconfig(sndfile) >= 0.19
BuildRequires:  pkgconfig(soxr)
BuildRequires:  pkgconfig(vorbis) >= 1.0
BuildRequires:  pkgconfig(vorbisenc) >= 1.0
BuildRequires:  pkgconfig(vorbisfile) >= 1.0
BuildRequires:  pkgconfig(wavpack) >= 4.31
BuildRequires:  pkgconfig(zlib)
%if %{with faad}
BuildRequires:  libfaad-devel
%endif
%if %{with lame}
BuildRequires:  libmp3lame-devel
%endif
%if %{with ffmpeg}
BuildRequires:  pkgconfig(libavcodec) >= 53.40.0
BuildRequires:  pkgconfig(libavformat) >= 53.5.0
BuildRequires:  pkgconfig(libavutil) >= 50.42.0
%endif
%if %{with mpg123}
BuildRequires:  pkgconfig(libmpg123) >= 1.12
%endif
Provides:       audacious-plugin(Input)%{?_isa} = %{aud_plugin_api}
Provides:       audacious-plugin(Interface)%{?_isa} = %{aud_plugin_api}
Provides:       audacious-plugin(Output)%{?_isa} = %{aud_plugin_api}
Supplements:    audacious(plugin-api)%{?_isa} = %{aud_plugin_api}

%define __provides_exclude_from ^%{_libdir}/audacious/*/.*.so$

%description
Plugins for the Audacious audio player.

%if %{with faad} || %{with ffmpeg} || %{with mpg123}
%package extra
Summary:        Plugins for the Audacious audio player
License:        GPL-2.0+ and MIT and BSD-2-Clause
Group:          Productivity/Multimedia/Sound/Players
Provides:       audacious-plugin(Input)%{?_isa} = %{aud_plugin_api}
Supplements:    audacious(plugin-api)%{?_isa} = %{aud_plugin_api}

%description extra
Plugins for the Audacious audio player.
%endif

%prep
%setup -q
# Make build verbose
sed -i '\,^.SILENT:,d' buildsys.mk.in
cp %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} .

%build
%configure
make %{?_smp_mflags}

%install
%make_install
%find_lang %{name}

%files -f %{name}.lang
%defattr(0644,root,root,0755)
%doc BSD-2-Clause MIT gpl-2.0.txt gpl-3.0.txt lgpl-2.1.txt
%{_libdir}/audacious/
%if %{with faad}
%exclude %{_libdir}/audacious/Input/aac.so
%endif
%if %{with ffmpeg}
%exclude %{_libdir}/audacious/Input/ffaudio.so
%endif
%if %{with mpg123}
%exclude %{_libdir}/audacious/Input/madplug.so
%endif
%{_datadir}/audacious/

%if %{with faad} || %{with ffmpeg} || %{with mpg123}
%files extra
%defattr(0644,root,root,0755)
%doc gpl-2.0.txt BSD-2-Clause MIT
%if %{with faad}
%{_libdir}/audacious/Input/aac.so
%endif
%if %{with ffmpeg}
%{_libdir}/audacious/Input/ffaudio.so
%endif
%if %{with mpg123}
%{_libdir}/audacious/Input/madplug.so
%endif
%endif

%changelog
openSUSE Build Service is sponsored by