File audacious-plugins.spec of Package audacious-plugins
#
# spec file for package audacious-plugins
#
# Copyright (c) 2017 SUSE LINUX 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 __provides_exclude_from ^%{_libdir}/audacious/*/.*.so$
%define aud_ver_min 3.8
%define aud_ver_max 3.8.99
%if 0%{?suse_version} >= 1320 || (0%{?sle_version} >= 120100 && 0%{?is_opensuse})
%bcond_without qt
%else
%bcond_with qt
%endif
%bcond_with faad
%bcond_with lame
%bcond_with restricted
%bcond_without gtk
Name: audacious-plugins
Version: 3.8.2
Release: 0
Summary: Plugins for Audacious
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/
Source: http://distfiles.audacious-media-player.org/%{name}-%{version}-gtk3.tar.bz2
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: fdupes
BuildRequires: gcc-c++ >= 4.5
BuildRequires: lirc-devel
BuildRequires: pkgconfig
BuildRequires: pkgconfig(alsa) >= 1.0.16
BuildRequires: pkgconfig(audacious) >= %{aud_ver_min}
BuildRequires: pkgconfig(dbus-1) >= 0.60
BuildRequires: pkgconfig(dbus-glib-1) >= 0.60
BuildRequires: pkgconfig(flac) >= 1.2.1
BuildRequires: pkgconfig(fluidsynth) >= 1.0.6
BuildRequires: pkgconfig(gdk-pixbuf-2.0) >= 2.26
BuildRequires: pkgconfig(gio-2.0) >= 2.32
BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(glib-2.0) >= 2.32
BuildRequires: pkgconfig(gmodule-2.0) >= 2.32
BuildRequires: pkgconfig(jack) >= 1.9.7
BuildRequires: pkgconfig(libavcodec) >= 53.40.0
BuildRequires: pkgconfig(libavformat) >= 53.25.0
BuildRequires: pkgconfig(libavutil) >= 51.27.0
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.27
BuildRequires: pkgconfig(ogg) >= 1.0
BuildRequires: pkgconfig(samplerate)
BuildRequires: pkgconfig(sdl2) >= 2.0
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)
Requires: libaudcore%{?_isa} <= %{aud_ver_max}
Requires: libaudcore%{?_isa} >= %{aud_ver_min}
Recommends: %{name}-extra
Recommends: %{name}-lang
%if %{with gtk}
BuildRequires: pkgconfig(gdk-x11-3.0)
BuildRequires: pkgconfig(gtk+-3.0) >= 3.4
BuildRequires: pkgconfig(xcomposite)
BuildRequires: pkgconfig(xrender)
%endif
%if %{with qt}
BuildRequires: pkgconfig(Qt5Core) >= 5.2
BuildRequires: pkgconfig(Qt5Gui) >= 5.2
BuildRequires: pkgconfig(Qt5Multimedia) >= 5.2
BuildRequires: pkgconfig(Qt5OpenGL) >= 5.2
BuildRequires: pkgconfig(Qt5Widgets) >= 5.2
%endif
%if %{with faad}
BuildRequires: libfaad-devel
%endif
%if %{with lame}
BuildRequires: libmp3lame-devel
%endif
%if 0%{?suse_version} > 1320 || 0%{?sle_version} > 120200 || %{with restricted}
BuildRequires: pkgconfig(libmpg123) >= 1.12
%endif
%description
Plugins for the Audacious audio player.
%lang_package
%package extra
Summary: Extra plugins for Audacious
License: GPL-2.0+ and MIT and BSD-2-Clause
Group: Productivity/Multimedia/Sound/Players
Requires: %{name} = %{version}
%description extra
Extra plugins for the Audacious audio player.
%prep
%setup -q -n %{name}-%{version}-gtk3
%build
NOCONFIGURE=1 ./autogen.sh
%configure \
%if %{with qt}
--enable-qt \
%else
--disable-qt \
%endif
%if %{with gtk}
--enable-gtk \
%else
--disable-gtk \
%endif
%if %{with faad}
--enable-aac \
%else
--disable-aac \
%endif
%if 0%{?suse_version} > 1320 || 0%{?sle_version} > 120200 || %{with restricted}
--enable-mpg123
%else
--disable-mpg123
%endif
make %{?_smp_mflags} V=1
%install
%make_install
%find_lang %{name}
%fdupes %{buildroot}%{_datadir}/
%files
%defattr(-,root,root)
%{_libdir}/audacious/
%if %{with faad}
%exclude %{_libdir}/audacious/Input/aac-raw.so
%endif
%if 0%{?suse_version} <= 1320 && 0%{?sle_version} < 120300 && %{with restricted}
%exclude %{_libdir}/audacious/Input/madplug.so
%endif
%exclude %{_libdir}/audacious/Output/filewriter.so
%{_datadir}/audacious/
%files lang -f %{name}.lang
%defattr(-,root,root)
%files extra
%defattr(-,root,root)
%if %{with faad}
%{_libdir}/audacious/Input/aac-raw.so
%endif
%if 0%{?suse_version} <= 1320 && 0%{?sle_version} < 120300 && %{with restricted}
%{_libdir}/audacious/Input/madplug.so
%endif
%{_libdir}/audacious/Output/filewriter.so
%changelog