File qmmp-plugin-pack.spec of Package qmmp-plugin-pack

#
# spec file for package qmmp-plugin-pack
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2014 Dmitry Misharov <quarckster@gmail.com>
#
# 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 qmmp_ver_min 1.2.0
%define qmmp_ver_max 1.2.99
Name:           qmmp-plugin-pack
Version:        1.2.1
Release:        0
Summary:        Extra plugins for Qmmp
License:        GPL-2.0-or-later
Group:          Productivity/Multimedia/Sound/Players
URL:            http://qmmp.ylsoftware.com/plugins.php
Source:         http://qmmp.ylsoftware.com/files/plugins/%{name}-%{version}.tar.bz2
BuildRequires:  cmake
BuildRequires:  libqmmp-plugins <= %{qmmp_ver_max}
BuildRequires:  libqmmp-plugins >= %{qmmp_ver_min}
BuildRequires:  libqt5-qttools-devel >= 5.4
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(Qt5Core) >= 5.4
BuildRequires:  pkgconfig(Qt5Sql) >= 5.4
BuildRequires:  pkgconfig(Qt5Widgets) >= 5.4
BuildRequires:  pkgconfig(libmpg123)
BuildRequires:  pkgconfig(libxmp)
BuildRequires:  pkgconfig(qmmp) <= %{qmmp_ver_max}
BuildRequires:  pkgconfig(qmmp) >= %{qmmp_ver_min}
BuildRequires:  pkgconfig(samplerate)
BuildRequires:  pkgconfig(taglib) >= 1.9

%description
This package contains extra plugins for Qmmp.

%package ffap
Summary:        Enhanced Monkey's Audio (APE) decoder for Qmmp
Group:          Productivity/Multimedia/Sound/Players
Requires:       qmmp <= %{qmmp_ver_max}
Requires:       qmmp >= %{qmmp_ver_min}

%description ffap
Enhanced Monkey's Audio (APE) decoder (24-bit samples and embedded
CUE support).

%package goom
Summary:        Goom visualisation Qmmp plugin
Group:          Productivity/Multimedia/Sound/Players
Requires:       qmmp <= %{qmmp_ver_max}
Requires:       qmmp >= %{qmmp_ver_min}

%description goom
Qmmp plugin which provides goom visualisation.

%package history
Summary:        Qmpp history plugin
Group:          Productivity/Multimedia/Sound/Players
Requires:       qmmp <= %{qmmp_ver_max}
Requires:       qmmp >= %{qmmp_ver_min}

%description history
Qmmp plugin which provides history.

%package mpg123
Summary:        Qmmp plugin which uses libmpg123 for decoding
Group:          Productivity/Multimedia/Sound/Players
Requires:       qmmp <= %{qmmp_ver_max}
Requires:       qmmp >= %{qmmp_ver_min}

%description mpg123
Qmmp plugin which uses libmpg123 for decoding of MPEG v1/2
layer1/2/3 files.

%package samplerate
Summary:        Qmmp plugin which uses libsamplerate for decoding
Group:          Productivity/Multimedia/Sound/Players
Requires:       qmmp <= %{qmmp_ver_max}
Requires:       qmmp >= %{qmmp_ver_min}

%description samplerate
Qmmp plugin which uses libsamplerate resampling library.

%package xmp
Summary:        Qmmp plugin which uses the libxmp module library
Group:          Productivity/Multimedia/Sound/Players
Requires:       qmmp <= %{qmmp_ver_max}
Requires:       qmmp >= %{qmmp_ver_min}

%description xmp
Qmmp plugin which uses libxmp to play module and tracker files.

%prep
%setup -q

%build
%cmake \
  -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON \
  -DLIB_DIR=%{_lib}
make %{?_smp_mflags} V=1

%install
%cmake_install

%files ffap
%license COPYING
%doc AUTHORS ChangeLog README
%{_libdir}/qmmp/Input/libffap.so

%files goom
%license COPYING
%doc AUTHORS ChangeLog README
%{_libdir}/qmmp/Visual/libgoom.so

%files history
%license COPYING
%doc AUTHORS ChangeLog README
%{_libdir}/qmmp/General/libhistory.so

%files mpg123
%license COPYING
%doc AUTHORS ChangeLog README
%{_libdir}/qmmp/Input/libmpg123.so

%files samplerate
%license COPYING
%doc AUTHORS ChangeLog README
%{_libdir}/qmmp/Effect/libsrconverter.so

%files xmp
%license COPYING
%doc AUTHORS ChangeLog README
%{_libdir}/qmmp/Input/libxmp.so

%changelog
openSUSE Build Service is sponsored by