File xmms2.spec of Package xmms2-devel

#
# spec file for package xmms2
#
# Copyright (c) 2015 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.
#
# This is a fork of the SuSE xmms2 package for use with development snapshots.
#
# Target archs: x86_64, armv6l, aarch64
# Target dists: SuSE, Fedora
#
# Please submit bugfixes or comments to dsvensson@gmail.com


%{!?python_sitelib:  %global python_sitelib  %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%{!?rb_sitelibdir: %global rb_sitelibdir %(ruby -rrbconfig -e 'puts RbConfig::CONFIG["sitelibdir"]')}
%{!?rb_sitearchdir: %global rb_sitearchdir %(ruby -rrbconfig -e 'puts RbConfig::CONFIG["sitearchdir"]')}

Name:           xmms2
Version:        0.8+WiP
Release:        0
Summary:        A modular audio framework and plugin architecture
License:        LGPL-2.1+ and GPL-2.0+ and BSD-3-Clause
Group:          Productivity/Multimedia/Sound/Players
Url:            http://xmms2.org
Source0:        %{name}-%{version}.tar.gz
BuildRequires:  SDL-devel
BuildRequires:  alsa-lib-devel
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  boost-devel
BuildRequires:  doxygen
BuildRequires:  fdupes
BuildRequires:  fftw3-devel
BuildRequires:  flac-devel
BuildRequires:  fluidsynth-devel
BuildRequires:  gcc
BuildRequires:  gcc-c++
BuildRequires:  gnome-vfs2-devel
BuildRequires:  jack-audio-connection-kit-devel
BuildRequires:  libao-devel

%if 0%{?fedora}
BuildRequires:  avahi-glib-devel
%endif
%if 0%{?suse_version}
BuildRequires:  libavahi-glib-devel
%endif

BuildRequires:  libcurl-devel
BuildRequires:  libdiscid-devel
BuildRequires:  libmodplug-devel
BuildRequires:  libmpcdec-devel
BuildRequires:  libofa-devel
BuildRequires:  libogg-devel

%if 0%{?fedora}
BuildRequires:  openssl-devel
%endif
%if 0%{?suse_version}
BuildRequires:  libopenssl-devel
%endif

%if 0%{?fedora}
BuildRequires: pulseaudio-libs-devel
%endif
%if 0%{?suse_version}
BuildRequires:  libpulse-devel
%endif

BuildRequires:  libsamplerate-devel
BuildRequires:  libshout-devel
BuildRequires:  libsmbclient-devel
BuildRequires:  libsndfile-devel
BuildRequires:  libvisual-devel
BuildRequires:  libvorbis-devel
BuildRequires:  libxml2-devel
BuildRequires:  make
BuildRequires:  perl
%if 0%{?fedora}
BuildRequires:  perl-devel
BuildRequires:  perl-ExtUtils-ParseXS
BuildRequires:  perl-Pod-Parser
%endif
BuildRequires:  pkgconfig(libxml-2.0)

%if 0%{?fedora}
BuildRequires:  Cython
%endif
%if 0%{?suse_version}
BuildRequires:  python-Cython
%endif

BuildRequires:  python-devel
BuildRequires:  readline-devel
BuildRequires:  ruby
BuildRequires:  ruby-devel
BuildRequires:  speex-devel
BuildRequires:  sqlite-devel
BuildRequires:  wavpack-devel
Requires:       %{name}-plugin-base
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  libcdio-paranoia-devel

%ifarch %ix86 x86_64 aarch64
BuildRequires:  valgrind-devel
%endif

BuildRequires:  libsidplayfp-devel

%if 0%{?fedora}
BuildRequires: CUnit-devel
%endif
%if 0%{?suse_version}
BuildRequires:  cunit-devel
%endif

%if 0%{?fedora}
BuildRequires:  game-music-emu-devel
%endif
%if 0%{?suse_version}
BuildRequires:  libgme-devel
%endif

%description
XMMS2 is an audio framework, but it is not a general multimedia player - it
will not play videos. It has a modular framework and plugin architecture for
audio processing, visualisation and output, but this framework has not been
designed to support video. Also the client-server design of XMMS2 (and the
                                                                   daemon being independent of any graphics output) practically prevents direct
video output being implemented. It has support for a wide range of audio
formats, which is expandable via plugins. It includes a basic CLI interface
to the XMMS2 framework, but most users will want to install a graphical XMMS2
client (such as gxmms2 or esperanza).

%package -n libxmmsclient++-glib1
Summary:        Glib c++ client library for %{name}
License:        LGPL-2.1+ and GPL-2.0+ and BSD-3-Clause
Group:          Productivity/Multimedia/Sound/Players

%description -n libxmmsclient++-glib1
A simple glib c++ client library for XMMS2

%package -n libxmmsclient++4
Summary:        C++ client library for  %{name}
License:        LGPL-2.1+ and GPL-2.0+ and BSD-3-Clause
Group:          Productivity/Multimedia/Sound/Players

%description -n libxmmsclient++4
A simple C++ client library for XMMS2

%package -n libxmmsclient-glib1
Summary:        Glib client library for  %{name}
License:        LGPL-2.1+ and GPL-2.0+ and BSD-3-Clause
Group:          Productivity/Multimedia/Sound/Players

%description -n libxmmsclient-glib1
A simple Glib client library for XMMS2

%package -n libxmmsclient6
Summary:        Client library for  %{name}
License:        LGPL-2.1+ and GPL-2.0+ and BSD-3-Clause
Group:          Productivity/Multimedia/Sound/Players

%description -n libxmmsclient6
A simple client library for XMMS2

%package devel
Summary:        Development libraries and headers for XMMS2
License:        LGPL-2.1+ and GPL-2.0+ and BSD-3-Clause
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version}
Requires:       boost-devel
Requires:       libxmmsclient++-glib1
Requires:       libxmmsclient++4
Requires:       libxmmsclient-glib1
Requires:       libxmmsclient6
Requires:       pkgconfig
Requires:       pkgconfig(glib-2.0)

%description devel
Development libraries and headers for XMMS2. You probably need this to develop
or build new plugins for XMMS2.

%package docs
Summary:        Development documentation for XMMS2
License:        LGPL-2.1+ and GPL-2.0+ and BSD-3-Clause
Group:          Documentation/Other
Requires:       %{name} = %{version}

%description docs
API documentation for the XMMS2 modular audio framework architecture.

%package -n python-xmms2
Summary:        Python support for XMMS2
License:        LGPL-2.1+ and GPL-2.0+ and BSD-3-Clause
Group:          Development/Languages/Python
Requires:       %{name} = %{version}
Requires:       python

%description -n python-xmms2
Python bindings for XMMS2.

%package perl
Summary:        Perl support for XMMS2
License:        GPL-1.0+ or Artistic-1.0
Group:          Development/Languages/Perl
Requires:       %{name} = %{version}
%if 0%{?fedora}
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%endif
%if 0%{?suse_version}
%{perl_requires}
%endif

%description perl
Perl bindings for XMMS2.

%package ruby
Summary:        Ruby support for XMMS2
License:        GPL-1.0+ or Artistic-1.0
Group:          Development/Languages/Ruby
Requires:       %{name} = %{version}
Requires:       ruby >= 1.8

%description ruby
Ruby bindings for XMMS2.

%package plugin-base
Summary:        Base plugins for %{name}
License:        GPL-1.0+ or Artistic-1.0
Group:          Productivity/Multimedia/Sound/Players
Requires:       %{name} = %{version}

%description plugin-base
XMMS2 is an audio framework, but it is not a general multimedia player - it
will not play videos. It has a modular framework and plugin architecture for
audio processing, visualisation and output, but this framework has not been
designed to support video. Also the client-server design of XMMS2 (and the
                                                                   daemon being independent of any graphics output) practically prevents direct
video output being implemented. It has support for a wide range of audio
formats, which is expandable via plugins. It includes a basic CLI interface
to the XMMS2 framework, but most users will want to install a graphical XMMS2
client (such as gxmms2 or esperanza).

%package plugin-airplay
Summary:        Airplay Support for %{name}
License:        GPL-1.0+ or Artistic-1.0
Group:          Productivity/Multimedia/Sound/Players
Requires:       %{name} = %{version}

%description plugin-airplay
XMMS2 is an audio framework, but it is not a general multimedia player - it
will not play videos. It has a modular framework and plugin architecture for
audio processing, visualisation and output, but this framework has not been
designed to support video. Also the client-server design of XMMS2 (and the
                                                                   daemon being independent of any graphics output) practically prevents direct
video output being implemented. It has support for a wide range of audio
formats, which is expandable via plugins. It includes a basic CLI interface
to the XMMS2 framework, but most users will want to install a graphical XMMS2
client (such as gxmms2 or esperanza).

%package plugin-ao
Summary:        Ao Support for %{name}
License:        GPL-1.0+ or Artistic-1.0
Group:          Productivity/Multimedia/Sound/Players
Requires:       %{name} = %{version}

%description plugin-ao
XMMS2 is an audio framework, but it is not a general multimedia player - it
will not play videos. It has a modular framework and plugin architecture for
audio processing, visualisation and output, but this framework has not been
designed to support video. Also the client-server design of XMMS2 (and the
                                                                   daemon being independent of any graphics output) practically prevents direct
video output being implemented. It has support for a wide range of audio
formats, which is expandable via plugins. It includes a basic CLI interface
to the XMMS2 framework, but most users will want to install a graphical XMMS2
client (such as gxmms2 or esperanza).

%package plugin-apefile
Summary:        Apefile Support for %{name}
License:        GPL-1.0+ or Artistic-1.0
Group:          Productivity/Multimedia/Sound/Players
Requires:       %{name} = %{version}

%description plugin-apefile
XMMS2 is an audio framework, but it is not a general multimedia player - it
will not play videos. It has a modular framework and plugin architecture for
audio processing, visualisation and output, but this framework has not been
designed to support video. Also the client-server design of XMMS2 (and the
                                                                   daemon being independent of any graphics output) practically prevents direct
video output being implemented. It has support for a wide range of audio
formats, which is expandable via plugins. It includes a basic CLI interface
to the XMMS2 framework, but most users will want to install a graphical XMMS2
client (such as gxmms2 or esperanza).

%package plugin-asf
Summary:        Asf Support for %{name}
License:        GPL-1.0+ or Artistic-1.0
Group:          Productivity/Multimedia/Sound/Players
Requires:       %{name} = %{version}

%description plugin-asf
XMMS2 is an audio framework, but it is not a general multimedia player - it
will not play videos. It has a modular framework and plugin architecture for
audio processing, visualisation and output, but this framework has not been
designed to support video. Also the client-server design of XMMS2 (and the
                                                                   daemon being independent of any graphics output) practically prevents direct
video output being implemented. It has support for a wide range of audio
formats, which is expandable via plugins. It includes a basic CLI interface
to the XMMS2 framework, but most users will want to install a graphical XMMS2
client (such as gxmms2 or esperanza).

%package plugin-asx
Summary:        Asx Support for %{name}
License:        GPL-1.0+ or Artistic-1.0
Group:          Productivity/Multimedia/Sound/Players
Requires:       %{name} = %{version}

%description plugin-asx
XMMS2 is an audio framework, but it is not a general multimedia player - it
will not play videos. It has a modular framework and plugin architecture for
audio processing, visualisation and output, but this framework has not been
designed to support video. Also the client-server design of XMMS2 (and the
                                                                   daemon being independent of any graphics output) practically prevents direct
video output being implemented. It has support for a wide range of audio
formats, which is expandable via plugins. It includes a basic CLI interface
to the XMMS2 framework, but most users will want to install a graphical XMMS2
client (such as gxmms2 or esperanza).

%package plugin-cdda
Summary:        Cdda Support for %{name}
License:        GPL-1.0+ or Artistic-1.0
Group:          Productivity/Multimedia/Sound/Players
Requires:       %{name} = %{version}

%description plugin-cdda
XMMS2 is an audio framework, but it is not a general multimedia player - it
will not play videos. It has a modular framework and plugin architecture for
audio processing, visualisation and output, but this framework has not been
designed to support video. Also the client-server design of XMMS2 (and the
                                                                   daemon being independent of any graphics output) practically prevents direct
video output being implemented. It has support for a wide range of audio
formats, which is expandable via plugins. It includes a basic CLI interface
to the XMMS2 framework, but most users will want to install a graphical XMMS2
client (such as gxmms2 or esperanza).

%package plugin-cue
Summary:        Cue Support for %{name}
License:        GPL-1.0+ or Artistic-1.0
Group:          Productivity/Multimedia/Sound/Players
Requires:       %{name} = %{version}

%description plugin-cue
XMMS2 is an audio framework, but it is not a general multimedia player - it
will not play videos. It has a modular framework and plugin architecture for
audio processing, visualisation and output, but this framework has not been
designed to support video. Also the client-server design of XMMS2 (and the
                                                                   daemon being independent of any graphics output) practically prevents direct
video output being implemented. It has support for a wide range of audio
formats, which is expandable via plugins. It includes a basic CLI interface
to the XMMS2 framework, but most users will want to install a graphical XMMS2
client (such as gxmms2 or esperanza).

%package plugin-curl
Summary:        Curl Support for %{name}
License:        GPL-1.0+ or Artistic-1.0
Group:          Productivity/Multimedia/Sound/Players
Requires:       %{name} = %{version}

%description plugin-curl
XMMS2 is an audio framework, but it is not a general multimedia player - it
will not play videos. It has a modular framework and plugin architecture for
audio processing, visualisation and output, but this framework has not been
designed to support video. Also the client-server design of XMMS2 (and the
                                                                   daemon being independent of any graphics output) practically prevents direct
video output being implemented. It has support for a wide range of audio
formats, which is expandable via plugins. It includes a basic CLI interface
to the XMMS2 framework, but most users will want to install a graphical XMMS2
client (such as gxmms2 or esperanza).

%package plugin-daap
Summary:        Daap Support for %{name}
License:        GPL-1.0+ or Artistic-1.0
Group:          Productivity/Multimedia/Sound/Players
Requires:       %{name} = %{version}

%description plugin-daap
XMMS2 is an audio framework, but it is not a general multimedia player - it
will not play videos. It has a modular framework and plugin architecture for
audio processing, visualisation and output, but this framework has not been
designed to support video. Also the client-server design of XMMS2 (and the
                                                                   daemon being independent of any graphics output) practically prevents direct
video output being implemented. It has support for a wide range of audio
formats, which is expandable via plugins. It includes a basic CLI interface
to the XMMS2 framework, but most users will want to install a graphical XMMS2
client (such as gxmms2 or esperanza).

%package plugin-flac
Summary:        Flac Support for %{name}
License:        GPL-1.0+ or Artistic-1.0
Group:          Productivity/Multimedia/Sound/Players
Requires:       %{name} = %{version}

%description plugin-flac
XMMS2 is an audio framework, but it is not a general multimedia player - it
will not play videos. It has a modular framework and plugin architecture for
audio processing, visualisation and output, but this framework has not been
designed to support video. Also the client-server design of XMMS2 (and the
                                                                   daemon being independent of any graphics output) practically prevents direct
video output being implemented. It has support for a wide range of audio
formats, which is expandable via plugins. It includes a basic CLI interface
to the XMMS2 framework, but most users will want to install a graphical XMMS2
client (such as gxmms2 or esperanza).

%package plugin-flv
Summary:        Flv Support for %{name}
License:        GPL-1.0+ or Artistic-1.0
Group:          Productivity/Multimedia/Sound/Players
Requires:       %{name} = %{version}

%description plugin-flv
XMMS2 is an audio framework, but it is not a general multimedia player - it
will not play videos. It has a modular framework and plugin architecture for
audio processing, visualisation and output, but this framework has not been
designed to support video. Also the client-server design of XMMS2 (and the
                                                                   daemon being independent of any graphics output) practically prevents direct
video output being implemented. It has support for a wide range of audio
formats, which is expandable via plugins. It includes a basic CLI interface
to the XMMS2 framework, but most users will want to install a graphical XMMS2
client (such as gxmms2 or esperanza).

%package plugin-gvfs
Summary:        Gvfs Support for %{name}
License:        GPL-1.0+ or Artistic-1.0
Group:          Productivity/Multimedia/Sound/Players
Requires:       %{name} = %{version}

%description plugin-gvfs
XMMS2 is an audio framework, but it is not a general multimedia player - it
will not play videos. It has a modular framework and plugin architecture for
audio processing, visualisation and output, but this framework has not been
designed to support video. Also the client-server design of XMMS2 (and the
                                                                   daemon being independent of any graphics output) practically prevents direct
video output being implemented. It has support for a wide range of audio
formats, which is expandable via plugins. It includes a basic CLI interface
to the XMMS2 framework, but most users will want to install a graphical XMMS2
client (such as gxmms2 or esperanza).

%package plugin-gme
Summary:        Gme Support for %{name}
License:        GPL-1.0+ or Artistic-1.0
Group:          Productivity/Multimedia/Sound/Players
Requires:       %{name} = %{version}

%description plugin-gme
XMMS2 is an audio framework, but it is not a general multimedia player - it
will not play videos. It has a modular framework and plugin architecture for
audio processing, visualisation and output, but this framework has not been
designed to support video. Also the client-server design of XMMS2 (and the
                                                                   daemon being independent of any graphics output) practically prevents direct
video output being implemented. It has support for a wide range of audio
formats, which is expandable via plugins. It includes a basic CLI interface
to the XMMS2 framework, but most users will want to install a graphical XMMS2
client (such as gxmms2 or esperanza).

%package plugin-html
Summary:        Html Support for %{name}
License:        GPL-1.0+ or Artistic-1.0
Group:          Productivity/Multimedia/Sound/Players
Requires:       %{name} = %{version}

%description plugin-html
XMMS2 is an audio framework, but it is not a general multimedia player - it
will not play videos. It has a modular framework and plugin architecture for
audio processing, visualisation and output, but this framework has not been
designed to support video. Also the client-server design of XMMS2 (and the
                                                                   daemon being independent of any graphics output) practically prevents direct
video output being implemented. It has support for a wide range of audio
formats, which is expandable via plugins. It includes a basic CLI interface
to the XMMS2 framework, but most users will want to install a graphical XMMS2
client (such as gxmms2 or esperanza).

%package plugin-ices
Summary:        Ices Support for %{name}
License:        GPL-1.0+ or Artistic-1.0
Group:          Productivity/Multimedia/Sound/Players
Requires:       %{name} = %{version}

%description plugin-ices
XMMS2 is an audio framework, but it is not a general multimedia player - it
will not play videos. It has a modular framework and plugin architecture for
audio processing, visualisation and output, but this framework has not been
designed to support video. Also the client-server design of XMMS2 (and the
                                                                   daemon being independent of any graphics output) practically prevents direct
video output being implemented. It has support for a wide range of audio
formats, which is expandable via plugins. It includes a basic CLI interface
to the XMMS2 framework, but most users will want to install a graphical XMMS2
client (such as gxmms2 or esperanza).

%package plugin-icymetaint
Summary:        SDL Support for %{name}
License:        GPL-1.0+ or Artistic-1.0
Group:          Productivity/Multimedia/Sound/Players
Requires:       %{name} = %{version}

%description plugin-icymetaint
XMMS2 is an audio framework, but it is not a general multimedia player - it
will not play videos. It has a modular framework and plugin architecture for
audio processing, visualisation and output, but this framework has not been
designed to support video. Also the client-server design of XMMS2 (and the
                                                                   daemon being independent of any graphics output) practically prevents direct
video output being implemented. It has support for a wide range of audio
formats, which is expandable via plugins. It includes a basic CLI interface
to the XMMS2 framework, but most users will want to install a graphical XMMS2
client (such as gxmms2 or esperanza).

%package plugin-id3v2
Summary:        Id3v2 Support for %{name}
License:        GPL-1.0+ or Artistic-1.0
Group:          Productivity/Multimedia/Sound/Players
Requires:       %{name} = %{version}

%description plugin-id3v2
XMMS2 is an audio framework, but it is not a general multimedia player - it
will not play videos. It has a modular framework and plugin architecture for
audio processing, visualisation and output, but this framework has not been
designed to support video. Also the client-server design of XMMS2 (and the
                                                                   daemon being independent of any graphics output) practically prevents direct
video output being implemented. It has support for a wide range of audio
formats, which is expandable via plugins. It includes a basic CLI interface
to the XMMS2 framework, but most users will want to install a graphical XMMS2
client (such as gxmms2 or esperanza).

%package plugin-jack
Summary:        Jack Support for %{name}
License:        GPL-1.0+ or Artistic-1.0
Group:          Productivity/Multimedia/Sound/Players
Requires:       %{name} = %{version}

%description plugin-jack
XMMS2 is an audio framework, but it is not a general multimedia player - it
will not play videos. It has a modular framework and plugin architecture for
audio processing, visualisation and output, but this framework has not been
designed to support video. Also the client-server design of XMMS2 (and the
                                                                   daemon being independent of any graphics output) practically prevents direct
video output being implemented. It has support for a wide range of audio
formats, which is expandable via plugins. It includes a basic CLI interface
to the XMMS2 framework, but most users will want to install a graphical XMMS2
client (such as gxmms2 or esperanza).

%package plugin-karaoke
Summary:        Karaoke Support for %{name}
License:        GPL-1.0+ or Artistic-1.0
Group:          Productivity/Multimedia/Sound/Players
Requires:       %{name} = %{version}

%description plugin-karaoke
XMMS2 is an audio framework, but it is not a general multimedia player - it
will not play videos. It has a modular framework and plugin architecture for
audio processing, visualisation and output, but this framework has not been
designed to support video. Also the client-server design of XMMS2 (and the
                                                                   daemon being independent of any graphics output) practically prevents direct
video output being implemented. It has support for a wide range of audio
formats, which is expandable via plugins. It includes a basic CLI interface
to the XMMS2 framework, but most users will want to install a graphical XMMS2
client (such as gxmms2 or esperanza).

%package plugin-m3u
Summary:        M3u Support for %{name}
License:        GPL-1.0+ or Artistic-1.0
Group:          Productivity/Multimedia/Sound/Players
Requires:       %{name} = %{version}

%description plugin-m3u
XMMS2 is an audio framework, but it is not a general multimedia player - it
will not play videos. It has a modular framework and plugin architecture for
audio processing, visualisation and output, but this framework has not been
designed to support video. Also the client-server design of XMMS2 (and the
                                                                   daemon being independent of any graphics output) practically prevents direct
video output being implemented. It has support for a wide range of audio
formats, which is expandable via plugins. It includes a basic CLI interface
to the XMMS2 framework, but most users will want to install a graphical XMMS2
client (such as gxmms2 or esperanza).

%package plugin-midi
Summary:        Midi Support for %{name}
License:        GPL-1.0+ or Artistic-1.0
Group:          Productivity/Multimedia/Sound/Players
Requires:       %{name} = %{version}

%description plugin-midi
XMMS2 is an audio framework, but it is not a general multimedia player - it
will not play videos. It has a modular framework and plugin architecture for
audio processing, visualisation and output, but this framework has not been
designed to support video. Also the client-server design of XMMS2 (and the
                                                                   daemon being independent of any graphics output) practically prevents direct
video output being implemented. It has support for a wide range of audio
formats, which is expandable via plugins. It includes a basic CLI interface
to the XMMS2 framework, but most users will want to install a graphical XMMS2
client (such as gxmms2 or esperanza).

%package plugin-modplug
Summary:        Modplug Support for %{name}
License:        GPL-1.0+ or Artistic-1.0
Group:          Productivity/Multimedia/Sound/Players
Requires:       %{name} = %{version}

%description plugin-modplug
XMMS2 is an audio framework, but it is not a general multimedia player - it
will not play videos. It has a modular framework and plugin architecture for
audio processing, visualisation and output, but this framework has not been
designed to support video. Also the client-server design of XMMS2 (and the
                                                                   daemon being independent of any graphics output) practically prevents direct
video output being implemented. It has support for a wide range of audio
formats, which is expandable via plugins. It includes a basic CLI interface
to the XMMS2 framework, but most users will want to install a graphical XMMS2
client (such as gxmms2 or esperanza).

%package plugin-mp4
Summary:        Mp4 Support for %{name}
License:        GPL-1.0+ or Artistic-1.0
Group:          Productivity/Multimedia/Sound/Players
Requires:       %{name} = %{version}

%description plugin-mp4
XMMS2 is an audio framework, but it is not a general multimedia player - it
will not play videos. It has a modular framework and plugin architecture for
audio processing, visualisation and output, but this framework has not been
designed to support video. Also the client-server design of XMMS2 (and the
                                                                   daemon being independent of any graphics output) practically prevents direct
video output being implemented. It has support for a wide range of audio
formats, which is expandable via plugins. It includes a basic CLI interface
to the XMMS2 framework, but most users will want to install a graphical XMMS2
client (such as gxmms2 or esperanza).

%package plugin-mpg123
Summary:        Mp3 Support for %{name}
License:        GPL-1.0+ or Artistic-1.0
Group:          Productivity/Multimedia/Sound/Players
Requires:       %{name} = %{version}

%description plugin-mpg123
XMMS2 is an audio framework, but it is not a general multimedia player - it
will not play videos. It has a modular framework and plugin architecture for
audio processing, visualisation and output, but this framework has not been
designed to support video. Also the client-server design of XMMS2 (and the
                                                                   daemon being independent of any graphics output) practically prevents direct
video output being implemented. It has support for a wide range of audio
formats, which is expandable via plugins. It includes a basic CLI interface
to the XMMS2 framework, but most users will want to install a graphical XMMS2
client (such as gxmms2 or esperanza).

%package plugin-musepack
Summary:        Musepack Support for %{name}
License:        GPL-1.0+ or Artistic-1.0
Group:          Productivity/Multimedia/Sound/Players
Requires:       %{name} = %{version}

%description plugin-musepack
XMMS2 is an audio framework, but it is not a general multimedia player - it
will not play videos. It has a modular framework and plugin architecture for
audio processing, visualisation and output, but this framework has not been
designed to support video. Also the client-server design of XMMS2 (and the
                                                                   daemon being independent of any graphics output) practically prevents direct
video output being implemented. It has support for a wide range of audio
formats, which is expandable via plugins. It includes a basic CLI interface
to the XMMS2 framework, but most users will want to install a graphical XMMS2
client (such as gxmms2 or esperanza).

%package plugin-normalize
Summary:        Normalize Support for %{name}
License:        GPL-1.0+ or Artistic-1.0
Group:          Productivity/Multimedia/Sound/Players
Requires:       %{name} = %{version}

%description plugin-normalize
XMMS2 is an audio framework, but it is not a general multimedia player - it
will not play videos. It has a modular framework and plugin architecture for
audio processing, visualisation and output, but this framework has not been
designed to support video. Also the client-server design of XMMS2 (and the
                                                                   daemon being independent of any graphics output) practically prevents direct
video output being implemented. It has support for a wide range of audio
formats, which is expandable via plugins. It includes a basic CLI interface
to the XMMS2 framework, but most users will want to install a graphical XMMS2
client (such as gxmms2 or esperanza).

%package plugin-ofa
Summary:        Ofa Support for %{name}
License:        GPL-1.0+ or Artistic-1.0
Group:          Productivity/Multimedia/Sound/Players
Requires:       %{name} = %{version}

%description plugin-ofa
XMMS2 is an audio framework, but it is not a general multimedia player - it
will not play videos. It has a modular framework and plugin architecture for
audio processing, visualisation and output, but this framework has not been
designed to support video. Also the client-server design of XMMS2 (and the
                                                                   daemon being independent of any graphics output) practically prevents direct
video output being implemented. It has support for a wide range of audio
formats, which is expandable via plugins. It includes a basic CLI interface
to the XMMS2 framework, but most users will want to install a graphical XMMS2
client (such as gxmms2 or esperanza).

%package plugin-pulse
Summary:        Pulse Support for %{name}
License:        GPL-1.0+ or Artistic-1.0
Group:          Productivity/Multimedia/Sound/Players
Requires:       %{name} = %{version}

%description plugin-pulse
XMMS2 is an audio framework, but it is not a general multimedia player - it
will not play videos. It has a modular framework and plugin architecture for
audio processing, visualisation and output, but this framework has not been
designed to support video. Also the client-server design of XMMS2 (and the
                                                                   daemon being independent of any graphics output) practically prevents direct
video output being implemented. It has support for a wide range of audio
formats, which is expandable via plugins. It includes a basic CLI interface
to the XMMS2 framework, but most users will want to install a graphical XMMS2
client (such as gxmms2 or esperanza).

%package plugin-samba
Summary:        Samba Support for %{name}
License:        GPL-1.0+ or Artistic-1.0
Group:          Productivity/Multimedia/Sound/Players
Requires:       %{name} = %{version}

%description plugin-samba
XMMS2 is an audio framework, but it is not a general multimedia player - it
will not play videos. It has a modular framework and plugin architecture for
audio processing, visualisation and output, but this framework has not been
designed to support video. Also the client-server design of XMMS2 (and the
                                                                   daemon being independent of any graphics output) practically prevents direct
video output being implemented. It has support for a wide range of audio
formats, which is expandable via plugins. It includes a basic CLI interface
to the XMMS2 framework, but most users will want to install a graphical XMMS2
client (such as gxmms2 or esperanza).

%package plugin-sndfile
Summary:        Sndfile Support for %{name}
License:        GPL-2.0+ or Artistic-1.0
Group:          Productivity/Multimedia/Sound/Players
Requires:       %{name} = %{version}

%description plugin-sndfile
XMMS2 is an audio framework, but it is not a general multimedia player - it
will not play videos. It has a modular framework and plugin architecture for
audio processing, visualisation and output, but this framework has not been
designed to support video. Also the client-server design of XMMS2 (and the
                                                                   daemon being independent of any graphics output) practically prevents direct
video output being implemented. It has support for a wide range of audio
formats, which is expandable via plugins. It includes a basic CLI interface
to the XMMS2 framework, but most users will want to install a graphical XMMS2
client (such as gxmms2 or esperanza).

%package plugin-speex
Summary:        Speex Support for %{name}
License:        GPL-1.0+ or Artistic-1.0
Group:          Productivity/Multimedia/Sound/Players
Requires:       %{name} = %{version}

%description plugin-speex
XMMS2 is an audio framework, but it is not a general multimedia player - it
will not play videos. It has a modular framework and plugin architecture for
audio processing, visualisation and output, but this framework has not been
designed to support video. Also the client-server design of XMMS2 (and the
                                                                   daemon being independent of any graphics output) practically prevents direct
video output being implemented. It has support for a wide range of audio
formats, which is expandable via plugins. It includes a basic CLI interface
to the XMMS2 framework, but most users will want to install a graphical XMMS2
client (such as gxmms2 or esperanza).

%package plugin-tta
Summary:        Tta Support for %{name}
License:        GPL-1.0+ or Artistic-1.0
Group:          Productivity/Multimedia/Sound/Players
Requires:       %{name} = %{version}

%description plugin-tta
XMMS2 is an audio framework, but it is not a general multimedia player - it
will not play videos. It has a modular framework and plugin architecture for
audio processing, visualisation and output, but this framework has not been
designed to support video. Also the client-server design of XMMS2 (and the
                                                                   daemon being independent of any graphics output) practically prevents direct
video output being implemented. It has support for a wide range of audio
formats, which is expandable via plugins. It includes a basic CLI interface
to the XMMS2 framework, but most users will want to install a graphical XMMS2
client (such as gxmms2 or esperanza).

%package plugin-vocoder
Summary:        Vocoder Support for %{name}
License:        GPL-1.0+ or Artistic-1.0
Group:          Productivity/Multimedia/Sound/Players
Requires:       %{name} = %{version}

%description plugin-vocoder
XMMS2 is an audio framework, but it is not a general multimedia player - it
will not play videos. It has a modular framework and plugin architecture for
audio processing, visualisation and output, but this framework has not been
designed to support video. Also the client-server design of XMMS2 (and the
                                                                   daemon being independent of any graphics output) practically prevents direct
video output being implemented. It has support for a wide range of audio
formats, which is expandable via plugins. It includes a basic CLI interface
to the XMMS2 framework, but most users will want to install a graphical XMMS2
client (such as gxmms2 or esperanza).

%package plugin-wave
Summary:        Wave Support for %{name}
License:        GPL-1.0+ or Artistic-1.0
Group:          Productivity/Multimedia/Sound/Players
Requires:       %{name} = %{version}

%description plugin-wave
XMMS2 is an audio framework, but it is not a general multimedia player - it
will not play videos. It has a modular framework and plugin architecture for
audio processing, visualisation and output, but this framework has not been
designed to support video. Also the client-server design of XMMS2 (and the
                                                                   daemon being independent of any graphics output) practically prevents direct
video output being implemented. It has support for a wide range of audio
formats, which is expandable via plugins. It includes a basic CLI interface
to the XMMS2 framework, but most users will want to install a graphical XMMS2
client (such as gxmms2 or esperanza).

%package plugin-wavpack
Summary:        Wavpack Support for %{name}
License:        GPL-1.0+ or Artistic-1.0
Group:          Productivity/Multimedia/Sound/Players
Requires:       %{name} = %{version}

%description plugin-wavpack
XMMS2 is an audio framework, but it is not a general multimedia player - it
will not play videos. It has a modular framework and plugin architecture for
audio processing, visualisation and output, but this framework has not been
designed to support video. Also the client-server design of XMMS2 (and the
                                                                   daemon being independent of any graphics output) practically prevents direct
video output being implemented. It has support for a wide range of audio
formats, which is expandable via plugins. It includes a basic CLI interface
to the XMMS2 framework, but most users will want to install a graphical XMMS2
client (such as gxmms2 or esperanza).

%if %{with restricted}
%package plugin-restricted
Summary:        Restricted plugins Support for %{name}
License:        GPL-1.0+ or Artistic-1.0
Group:          Productivity/Multimedia/Sound/Players
Requires:       %{name} = %{version}

%description plugin-restricted
XMMS2 is an audio framework, but it is not a general multimedia player - it
will not play videos. It has a modular framework and plugin architecture for
audio processing, visualisation and output, but this framework has not been
designed to support video. Also the client-server design of XMMS2 (and the
                                                                   daemon being independent of any graphics output) practically prevents direct
video output being implemented. It has support for a wide range of audio
formats, which is expandable via plugins. It includes a basic CLI interface
to the XMMS2 framework, but most users will want to install a graphical XMMS2
client (such as gxmms2 or esperanza).
%endif

%prep
%setup -q -n %{name}-%{version}

%build
export CFLAGS="%{optflags} -fno-strict-aliasing"
export CXXFLAGS="%{optflags} -fno-strict-aliasing"

# Get compiler version in the logs
cc -v 2>&1 | grep version

./waf configure \
      --prefix=%{_prefix} \
      --libdir=%{_libdir} \
      --with-perl-archdir=%{perl_archlib} \
      --with-ruby-archdir=%{rb_sitearchdir} \
      --with-ruby-libdir=%{rb_sitelibdir} \
      --pythondir=%{python_sitearch} \
      --pythonarchdir=%{python_sitearch} \
      --with-pkgconfigdir=%{_libdir}/pkgconfig \
      --with-custom-version="0.8+WiP+%(commit)s"
./waf build %{?_smp_mflags}
# make the docs
doxygen

%install
./waf install --destdir=%{buildroot}
# Convert to utf-8
for i in %{buildroot}%{_mandir}/man1/*.gz; do
    gunzip $i;
done
for i in %{buildroot}%{_mandir}/man1/*.1; do
    iconv -o $i.iso88591 -f iso88591 -t utf8 $i
    mv $i.iso88591 $i
done

%fdupes %{buildroot}

%post -n libxmmsclient++-glib1 -p /sbin/ldconfig

%postun -n libxmmsclient++-glib1 -p /sbin/ldconfig

%post -n libxmmsclient++4 -p /sbin/ldconfig

%postun -n libxmmsclient++4 -p /sbin/ldconfig

%post -n libxmmsclient-glib1 -p /sbin/ldconfig

%postun -n libxmmsclient-glib1 -p /sbin/ldconfig

%post -n libxmmsclient6 -p /sbin/ldconfig

%postun -n libxmmsclient6 -p /sbin/ldconfig

%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING COPYING.GPL COPYING.LGPL README.mdown TODO
%{_bindir}/*
%dir %{_libdir}/%{name}
%{_mandir}/man1/*.gz
%{_datadir}/pixmaps/*
%{_datadir}/%{name}

%files -n libxmmsclient++-glib1
%defattr(-,root,root,-)
%{_libdir}/libxmmsclient++-glib.so.1
%{_libdir}/libxmmsclient++-glib.so.1.0.0

%files -n libxmmsclient++4
%defattr(-,root,root,-)
%{_libdir}/libxmmsclient++.so.4
%{_libdir}/libxmmsclient++.so.4.0.0

%files -n libxmmsclient-glib1
%defattr(-,root,root,-)
%{_libdir}/libxmmsclient-glib.so.1
%{_libdir}/libxmmsclient-glib.so.1.0.0

%files -n libxmmsclient6
%defattr(-,root,root,-)
%{_libdir}/libxmmsclient.so.6
%{_libdir}/libxmmsclient.so.6.0.0

%files devel
%defattr(-,root,root,-)
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*
%{_libdir}/libxmmsclient*.so
%{_libdir}/pkgconfig/%{name}-*.pc

%files docs
%defattr(-,root,root,-)
%doc doc/xmms2/html

%files perl
%defattr(-,root,root,-)
%{perl_archlib}/Audio/
%{perl_archlib}/auto/Audio/

%files -n python-xmms2
%defattr(-,root,root,-)
%{python_sitearch}/xmmsclient

%files ruby
%defattr(-,root,root,-)
%{rb_sitearchdir}/*.so
%{rb_sitelibdir}/xmmsclient
%{rb_sitelibdir}/xmmsclient.rb

%files plugin-base
%defattr(-,root,root,-)
%{_libdir}/xmms2/libxmms_alsa.so
%{_libdir}/xmms2/libxmms_diskwrite.so
%{_libdir}/xmms2/libxmms_file.so
%{_libdir}/xmms2/libxmms_xml.so
%{_libdir}/xmms2/libxmms_vorbis.so
%{_libdir}/xmms2/libxmms_null.so
%{_libdir}/xmms2/libxmms_nulstripper.so
%{_libdir}/xmms2/libxmms_oss.so
%{_libdir}/xmms2/libxmms_pls.so
%{_libdir}/xmms2/libxmms_rss.so
%{_libdir}/xmms2/libxmms_xspf.so

%files plugin-airplay
%defattr(-,root,root,-)
%{_libdir}/xmms2/libxmms_airplay.so

%files plugin-ao
%defattr(-,root,root,-)
%{_libdir}/xmms2/libxmms_ao.so

%files plugin-apefile
%defattr(-,root,root,-)
%{_libdir}/xmms2/libxmms_apefile.so

%files plugin-asf
%defattr(-,root,root,-)
%{_libdir}/xmms2/libxmms_asf.so

%files plugin-asx
%defattr(-,root,root,-)
%{_libdir}/xmms2/libxmms_asx.so

%files plugin-cdda
%defattr(-,root,root,-)
%{_libdir}/xmms2/libxmms_cdda.so

%files plugin-cue
%defattr(-,root,root,-)
%{_libdir}/xmms2/libxmms_cue.so

%files plugin-curl
%defattr(-,root,root,-)
%{_libdir}/xmms2/libxmms_curl.so

%files plugin-daap
%defattr(-,root,root,-)
%{_libdir}/xmms2/libxmms_daap.so

%files plugin-flac
%defattr(-,root,root,-)
%{_libdir}/xmms2/libxmms_flac.so

%files plugin-flv
%defattr(-,root,root,-)
%{_libdir}/xmms2/libxmms_flv.so

%files plugin-gvfs
%defattr(-,root,root,-)
%{_libdir}/xmms2/libxmms_gvfs.so

%files plugin-gme
%defattr(-,root,root,-)
%{_libdir}/xmms2/libxmms_gme.so

%files plugin-html
%defattr(-,root,root,-)
%{_libdir}/xmms2/libxmms_html.so

%files plugin-ices
%defattr(-,root,root,-)
%{_libdir}/xmms2/libxmms_ices.so

%files plugin-icymetaint
%defattr(-,root,root,-)
%{_libdir}/xmms2/libxmms_icymetaint.so

%files plugin-id3v2
%defattr(-,root,root,-)
%{_libdir}/xmms2/libxmms_id3v2.so

%files plugin-jack
%defattr(-,root,root,-)
%{_libdir}/xmms2/libxmms_jack.so

%files plugin-karaoke
%defattr(-,root,root,-)
%{_libdir}/xmms2/libxmms_karaoke.so

%files plugin-m3u
%defattr(-,root,root,-)
%{_libdir}/xmms2/libxmms_m3u.so

%files plugin-midi
%defattr(-,root,root,-)
%{_libdir}/xmms2/libxmms_fluidsynth.so
%{_libdir}/xmms2/libxmms_mid1.so
%{_libdir}/xmms2/libxmms_midsquash.so

%files plugin-modplug
%defattr(-,root,root,-)
%{_libdir}/xmms2/libxmms_modplug.so

%files plugin-mp4
%defattr(-,root,root,-)
%{_libdir}/xmms2/libxmms_mp4.so

%files plugin-mpg123
%defattr(-,root,root,-)
%{_libdir}/xmms2/libxmms_mpg123.so

%files plugin-musepack
%defattr(-,root,root,-)
%{_libdir}/xmms2/libxmms_musepack.so

%files plugin-normalize
%defattr(-,root,root,-)
%{_libdir}/xmms2/libxmms_normalize.so

%files plugin-ofa
%defattr(-,root,root,-)
%{_libdir}/xmms2/libxmms_ofa.so

%files plugin-pulse
%defattr(-,root,root,-)
%{_libdir}/xmms2/libxmms_pulse.so

%files plugin-samba
%defattr(-,root,root,-)
%{_libdir}/xmms2/libxmms_samba.so

%files plugin-sndfile
%defattr(-,root,root,-)
%{_libdir}/xmms2/libxmms_sndfile.so

%files plugin-speex
%defattr(-,root,root,-)
%{_libdir}/xmms2/libxmms_speex.so

%files plugin-tta
%defattr(-,root,root,-)
%{_libdir}/xmms2/libxmms_tta.so

%files plugin-vocoder
%defattr(-,root,root,-)
%{_libdir}/xmms2/libxmms_vocoder.so

%files plugin-wave
%defattr(-,root,root,-)
%{_libdir}/xmms2/libxmms_wave.so

%files plugin-wavpack
%defattr(-,root,root,-)
%{_libdir}/xmms2/libxmms_wavpack.so

%changelog
openSUSE Build Service is sponsored by