2012-03-23 14:48:37 +01:00
|
|
|
#
|
|
|
|
# spec file for package qmmp
|
|
|
|
#
|
2019-02-11 18:12:25 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-03-23 14:48:37 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-09-22 12:59:29 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-03-23 14:48:37 +01:00
|
|
|
#
|
|
|
|
|
2015-09-07 11:23:35 +02:00
|
|
|
|
2015-11-04 15:48:35 +01:00
|
|
|
%define sover 1
|
2019-02-11 18:12:25 +01:00
|
|
|
%define mver 1.3
|
2016-08-04 15:41:51 +02:00
|
|
|
%bcond_with faad
|
2016-08-27 00:50:27 +02:00
|
|
|
%bcond_with restricted
|
2012-03-23 14:48:37 +01:00
|
|
|
Name: qmmp
|
2019-02-11 18:12:25 +01:00
|
|
|
Version: 1.3.0
|
2012-03-23 14:48:37 +01:00
|
|
|
Release: 0
|
2015-10-13 12:02:24 +02:00
|
|
|
Summary: Qt-based Multimedia Player
|
2018-04-20 15:01:27 +02:00
|
|
|
License: GPL-2.0-or-later
|
2012-03-23 14:48:37 +01:00
|
|
|
Group: Productivity/Multimedia/Sound/Players
|
2018-11-11 18:58:42 +01:00
|
|
|
ExclusiveArch: %ix86 x86_64
|
2018-06-01 12:30:44 +02:00
|
|
|
URL: http://qmmp.ylsoftware.com/
|
2015-10-13 12:02:24 +02:00
|
|
|
Source: http://qmmp.ylsoftware.com/files/%{name}-%{version}.tar.bz2
|
2015-10-10 20:23:52 +02:00
|
|
|
Source1: baselibs.conf
|
2015-09-07 11:23:35 +02:00
|
|
|
# PATCH-FIX-UPSTREAM qmmp-fix_cdda_version.patch pascal.bleser@opensuse.org -- Fix header detection for cdparanoia cdda.h.
|
2015-10-13 12:02:24 +02:00
|
|
|
Patch0: %{name}-fix_cdda_version.patch
|
2015-09-07 11:23:35 +02:00
|
|
|
# PATCH-FEATURE-OPENSUSE qmmp-default_pulse.patch reddwarf@opensuse.org -- Use PulseAudio instead of ALSA by default.
|
2015-10-13 12:02:24 +02:00
|
|
|
Patch1: %{name}-default-pulse.patch
|
2017-06-03 18:06:12 +02:00
|
|
|
# PATCH-FIX-OPENSUSE qmmp-fix-openmpt.patch -- Fix OpenMPT compatibility.
|
2017-11-26 21:48:29 +01:00
|
|
|
Patch2: %{name}-fix-openmpt.patch
|
2017-08-10 14:54:14 +02:00
|
|
|
# PATCH-FIX-OPENSUSE qmmp-projectM-qt5.patch -- links to projectM-qt5
|
2017-11-26 21:48:29 +01:00
|
|
|
Patch3: %{name}-projectM-qt5.patch
|
2012-03-23 14:48:37 +01:00
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: hicolor-icon-theme
|
|
|
|
BuildRequires: libmpcdec-devel
|
2015-11-04 15:48:35 +01:00
|
|
|
BuildRequires: libqt5-qttools-devel >= 5.4
|
2016-06-22 00:33:57 +02:00
|
|
|
BuildRequires: pkgconfig
|
2015-11-04 15:48:35 +01:00
|
|
|
BuildRequires: pkgconfig(Qt5Core) >= 5.4
|
|
|
|
BuildRequires: pkgconfig(Qt5DBus) >= 5.4
|
2016-06-22 00:33:57 +02:00
|
|
|
BuildRequires: pkgconfig(Qt5Multimedia) >= 5.4
|
2015-11-04 15:48:35 +01:00
|
|
|
BuildRequires: pkgconfig(Qt5Network) >= 5.4
|
|
|
|
BuildRequires: pkgconfig(Qt5OpenGL) >= 5.4
|
|
|
|
BuildRequires: pkgconfig(Qt5Widgets) >= 5.4
|
|
|
|
BuildRequires: pkgconfig(Qt5X11Extras) >= 5.4
|
|
|
|
BuildRequires: pkgconfig(Qt5Xml) >= 5.4
|
2012-03-23 14:48:37 +01:00
|
|
|
BuildRequires: pkgconfig(alsa)
|
|
|
|
BuildRequires: pkgconfig(enca) >= 1.9
|
|
|
|
BuildRequires: pkgconfig(flac)
|
2015-10-10 20:19:42 +02:00
|
|
|
BuildRequires: pkgconfig(jack)
|
2015-09-07 11:23:35 +02:00
|
|
|
BuildRequires: pkgconfig(libavcodec)
|
|
|
|
BuildRequires: pkgconfig(libavformat)
|
|
|
|
BuildRequires: pkgconfig(libavutil)
|
2012-03-23 14:48:37 +01:00
|
|
|
BuildRequires: pkgconfig(libbs2b)
|
|
|
|
BuildRequires: pkgconfig(libcddb)
|
|
|
|
BuildRequires: pkgconfig(libcdio)
|
|
|
|
BuildRequires: pkgconfig(libcdio_cdda)
|
|
|
|
BuildRequires: pkgconfig(libcurl)
|
|
|
|
BuildRequires: pkgconfig(libgme)
|
|
|
|
BuildRequires: pkgconfig(libmms)
|
|
|
|
BuildRequires: pkgconfig(libmodplug)
|
2017-08-10 14:54:14 +02:00
|
|
|
BuildRequires: pkgconfig(libprojectM-qt5)
|
2012-03-23 14:48:37 +01:00
|
|
|
BuildRequires: pkgconfig(libpulse)
|
|
|
|
BuildRequires: pkgconfig(libpulse-simple)
|
2014-07-11 17:24:23 +02:00
|
|
|
BuildRequires: pkgconfig(libsidplayfp)
|
2017-08-29 09:30:45 +02:00
|
|
|
BuildRequires: pkgconfig(mad)
|
2015-09-07 11:23:35 +02:00
|
|
|
BuildRequires: pkgconfig(opus) >= 1.0.2
|
|
|
|
BuildRequires: pkgconfig(opusfile) >= 0.2
|
2012-03-23 14:48:37 +01:00
|
|
|
BuildRequires: pkgconfig(sndfile)
|
2016-06-22 00:33:57 +02:00
|
|
|
BuildRequires: pkgconfig(soxr)
|
2016-06-29 21:48:47 +02:00
|
|
|
BuildRequires: pkgconfig(taglib) >= 1.9
|
2012-03-23 14:48:37 +01:00
|
|
|
BuildRequires: pkgconfig(vorbisfile)
|
|
|
|
BuildRequires: pkgconfig(wavpack)
|
2015-10-13 12:02:24 +02:00
|
|
|
Requires: %{name}(%{sover})(Input)
|
|
|
|
Requires: %{name}(%{sover})(Output)
|
|
|
|
Requires: %{name}(%{sover})(Ui)
|
2018-06-01 12:30:44 +02:00
|
|
|
%if 0%{?suse_version} < 1500
|
2018-07-21 10:32:38 +02:00
|
|
|
BuildRequires: update-desktop-files
|
2017-10-21 00:32:31 +02:00
|
|
|
%endif
|
2016-08-04 15:41:51 +02:00
|
|
|
%if %{with faad}
|
2012-03-23 14:48:37 +01:00
|
|
|
BuildRequires: libfaad-devel
|
2016-08-04 15:41:51 +02:00
|
|
|
%endif
|
2012-03-23 14:48:37 +01:00
|
|
|
|
|
|
|
%description
|
2015-10-13 12:02:24 +02:00
|
|
|
This program is an audio-player, written with help of Qt library.
|
2012-03-23 14:48:37 +01:00
|
|
|
|
2015-10-13 12:02:24 +02:00
|
|
|
%package -n lib%{name}%{sover}
|
2012-03-23 14:48:37 +01:00
|
|
|
Summary: Qmmp library
|
|
|
|
Group: System/Libraries
|
2015-10-13 12:02:24 +02:00
|
|
|
Recommends: lib%{name}-plugins
|
2012-03-23 14:48:37 +01:00
|
|
|
|
2015-10-13 12:02:24 +02:00
|
|
|
%description -n lib%{name}%{sover}
|
|
|
|
This program is an audio-player, written with help of Qt library.
|
2012-03-23 14:48:37 +01:00
|
|
|
|
2015-10-13 12:02:24 +02:00
|
|
|
This package provides the Qmmp library.
|
|
|
|
|
|
|
|
%package -n lib%{name}-plugins
|
2012-05-26 13:01:10 +02:00
|
|
|
Summary: Plugins for libqmmp
|
2017-08-05 01:29:21 +02:00
|
|
|
# Suggests instead of Recommends since MPlayer is too big of a dependency.
|
2016-11-09 23:41:45 +01:00
|
|
|
Group: System/Libraries
|
2015-10-13 12:02:24 +02:00
|
|
|
Suggests: lib%{name}-plugin-mplayer
|
|
|
|
Provides: %{name}(%{sover})(Input)
|
|
|
|
Provides: %{name}(%{sover})(Output)
|
|
|
|
Provides: %{name}(%{sover})(Ui)
|
2015-11-15 22:45:27 +01:00
|
|
|
# libqmmp0-plugins & qmmp-plugin-pack-simple-ui were last used in openSUSE 13.2 (in PMBS).
|
|
|
|
Provides: %{name}-plugin-pack-simple-ui = %{version}
|
|
|
|
Obsoletes: %{name}-plugin-pack-simple-ui < %{version}
|
|
|
|
Obsoletes: lib%{name}0-plugins
|
2015-10-13 12:02:24 +02:00
|
|
|
|
|
|
|
%description -n lib%{name}-plugins
|
|
|
|
This program is an audio-player, written with help of Qt library.
|
2015-09-07 11:23:35 +02:00
|
|
|
|
2015-10-13 12:02:24 +02:00
|
|
|
This package provides plugins for libqmmp.
|
2012-03-23 14:48:37 +01:00
|
|
|
|
2015-10-13 12:02:24 +02:00
|
|
|
%if %{with restricted}
|
|
|
|
%package -n lib%{name}-plugin-mplayer
|
2012-05-26 13:01:10 +02:00
|
|
|
Summary: MPlayer plugin for libqmmp
|
2012-03-23 14:48:37 +01:00
|
|
|
Group: System/Libraries
|
2015-10-13 12:02:24 +02:00
|
|
|
Requires: MPlayer
|
2012-03-23 14:48:37 +01:00
|
|
|
|
2015-10-13 12:02:24 +02:00
|
|
|
%description -n lib%{name}-plugin-mplayer
|
|
|
|
This program is an audio-player, written with help of Qt library.
|
2012-03-23 14:48:37 +01:00
|
|
|
|
2015-10-13 12:02:24 +02:00
|
|
|
This package provides MPlayer plugin for libqmmp.
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%package -n lib%{name}-devel
|
2012-05-26 13:01:10 +02:00
|
|
|
Summary: Development files for libqmmp
|
2012-03-23 14:48:37 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2015-10-13 12:02:24 +02:00
|
|
|
Requires: lib%{name}%{sover} = %{version}
|
|
|
|
|
|
|
|
%description -n lib%{name}-devel
|
|
|
|
This program is an audio-player, written with help of Qt library.
|
2012-03-23 14:48:37 +01:00
|
|
|
|
2012-05-26 13:01:10 +02:00
|
|
|
Development files for libqmmp.
|
2012-03-23 14:48:37 +01:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2012-05-26 18:24:26 +02:00
|
|
|
%patch0
|
2015-09-07 11:23:35 +02:00
|
|
|
%patch1 -p1
|
2016-06-29 21:48:47 +02:00
|
|
|
%patch2 -p1
|
2017-06-03 18:06:12 +02:00
|
|
|
%patch3 -p1
|
2012-03-23 14:48:37 +01:00
|
|
|
|
|
|
|
%build
|
2015-11-04 15:48:35 +01:00
|
|
|
%cmake \
|
2017-06-03 13:50:28 +02:00
|
|
|
-DCMAKE_MODULE_LINKER_FLAGS="" \
|
2015-10-10 20:19:42 +02:00
|
|
|
-DCMAKE_BUILD_WITH_INSTALL_RPATH=ON \
|
2017-06-03 13:50:28 +02:00
|
|
|
-DLIB_DIR=%{_lib} \
|
2015-10-13 12:02:24 +02:00
|
|
|
%if %{without restricted}
|
2017-06-03 13:50:28 +02:00
|
|
|
-DUSE_MPLAYER=OFF \
|
2015-10-13 12:02:24 +02:00
|
|
|
%endif
|
2017-06-03 13:50:28 +02:00
|
|
|
-DUSE_HAL=OFF \
|
|
|
|
-DUSE_OSS=OFF \
|
2015-11-04 15:48:35 +01:00
|
|
|
-DUSE_OSS4=OFF
|
2016-11-09 23:41:45 +01:00
|
|
|
make %{?_smp_mflags} V=1
|
2012-03-23 14:48:37 +01:00
|
|
|
|
|
|
|
%install
|
2015-11-04 15:48:35 +01:00
|
|
|
%cmake_install
|
2012-03-23 14:48:37 +01:00
|
|
|
|
2017-10-21 00:32:31 +02:00
|
|
|
%post -n lib%{name}%{sover} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n lib%{name}%{sover} -p /sbin/ldconfig
|
|
|
|
|
2018-06-01 12:30:44 +02:00
|
|
|
%if 0%{?suse_version} < 1500
|
2012-05-26 13:01:10 +02:00
|
|
|
%post
|
|
|
|
%desktop_database_post
|
2016-11-09 23:41:45 +01:00
|
|
|
%icon_theme_cache_post
|
2012-03-23 14:48:37 +01:00
|
|
|
|
2012-05-26 13:01:10 +02:00
|
|
|
%postun
|
|
|
|
%desktop_database_postun
|
|
|
|
%icon_theme_cache_postun
|
|
|
|
|
2015-10-13 12:02:24 +02:00
|
|
|
%post -n lib%{name}-plugins
|
2012-05-26 13:01:10 +02:00
|
|
|
%desktop_database_post
|
|
|
|
|
2015-10-13 12:02:24 +02:00
|
|
|
%postun -n lib%{name}-plugins
|
2012-05-26 13:01:10 +02:00
|
|
|
%desktop_database_postun
|
2017-10-21 00:32:31 +02:00
|
|
|
%endif
|
2012-03-23 14:48:37 +01:00
|
|
|
|
|
|
|
%files
|
2018-06-01 12:30:44 +02:00
|
|
|
%license COPYING
|
|
|
|
%doc AUTHORS ChangeLog README
|
2015-10-13 12:02:24 +02:00
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_datadir}/%{name}/
|
|
|
|
%{_datadir}/applications/%{name}*.desktop
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/%{name}*
|
|
|
|
|
|
|
|
%files -n lib%{name}%{sover}
|
|
|
|
%{_libdir}/lib%{name}*.so.%{sover}*
|
2012-03-23 14:48:37 +01:00
|
|
|
|
2015-10-13 12:02:24 +02:00
|
|
|
%files -n lib%{name}-plugins
|
2019-02-11 18:12:25 +01:00
|
|
|
%{_libdir}/%{name}-%{mver}/
|
|
|
|
%if %{with restricted}
|
2015-10-13 12:02:24 +02:00
|
|
|
%exclude %{_libdir}/%{name}/Engines/libmplayer.so
|
2019-02-11 18:12:25 +01:00
|
|
|
%endif
|
2012-03-23 14:48:37 +01:00
|
|
|
|
2015-10-13 12:02:24 +02:00
|
|
|
%if %{with restricted}
|
|
|
|
%files -n lib%{name}-plugin-mplayer
|
|
|
|
%dir %{_libdir}/%{name}/
|
|
|
|
%dir %{_libdir}/%{name}/Engines/
|
|
|
|
%{_libdir}/%{name}/Engines/libmplayer.so
|
|
|
|
%endif
|
2012-03-23 14:48:37 +01:00
|
|
|
|
2015-10-13 12:02:24 +02:00
|
|
|
%files -n lib%{name}-devel
|
|
|
|
%{_includedir}/%{name}/
|
|
|
|
%{_includedir}/%{name}ui/
|
|
|
|
%{_libdir}/lib%{name}*.so
|
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
|
%{_libdir}/pkgconfig/%{name}ui.pc
|
2012-03-23 14:48:37 +01:00
|
|
|
|
|
|
|
%changelog
|