qmmp/qmmp.spec

195 lines
6.1 KiB
RPMSpec
Raw Normal View History

#
# spec file for package qmmp
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%define sover 1
Accepting request 799149 from home:alois:branches:multimedia:apps - Update to version 1.4.0 * added sleep mode inhibition plugin * added separate ListenBrainz submission plugin * added feature to auto-hide empty service menus * added option to disable two passes for equalizer * added fast mute function for most output plugins * added shared CUE parser * added feature to transit between playlists * added optimizations for flac plugin * added feature to select playlist format from the file dialog * added '--pl-next' and '--pl-prev' command line options * added SOCKS5 proxy support * added feature to display average bitrate * added average bitrate displaying for shoutcast/icecast streams * added Ogg Opus support in the ReplayGain scanner * added feature to merge different tag types in the mpeg plugin * added feature to start command on application startup/exit * added 'make docs' build target * added big endian support formats in the PulseAudio plugin * added feature to write singe file in the file writer plugin * improved qsui plugin: + added feature to override track background color + added scope visualization + added feature to reset visualization colors + added waveform seek bar + added alternate analyzer appearance + using gradients between analyzer colors + improved status bar * improved ffmpeg plugin: + added opus bitrate issue workaround + added new implementation of the read function + added embedded CUE sheet support (for Monkey's Audio format) + added format name displaying + added DSD (Direct Stream Digital) support + changed minimal ffmpeg version to 3.2 + removed libav support * improved lyrics plugin: + added feature to save window geometry + added multiple lyrics providers support (based on Ultimare Lyrics plugin) * improved cdaudio plugin: + show more metadata + added KDE Solid integration * improved remote playlists support * improved m3u support * using qsui by default for Wayland sessions * fixed API documentation * updated Portuguese, Dutch, Polish, Galician, Spanish, Russian, Ukrainian, French, Indonesian, Greek, Italian and German translations - Refreshed qmmp-fix_cdda_version.patch OBS-URL: https://build.opensuse.org/request/show/799149 OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/qmmp?expand=0&rev=145
2020-04-30 10:27:30 +02:00
%define mver 1.4
%bcond_with faad
%bcond_with restricted
Name: qmmp
Version: 1.4.2
Release: 0
Summary: Qt-based Multimedia Player
License: GPL-2.0-or-later
URL: https://qmmp.ylsoftware.com/
Source: https://qmmp.ylsoftware.com/files/%{name}-%{version}.tar.bz2
Source1: baselibs.conf
# PATCH-FIX-UPSTREAM qmmp-fix_cdda_version.patch pascal.bleser@opensuse.org -- Fix header detection for cdparanoia cdda.h.
Patch0: %{name}-fix_cdda_version.patch
# PATCH-FEATURE-OPENSUSE qmmp-default_pulse.patch reddwarf@opensuse.org -- Use PulseAudio instead of ALSA by default.
Patch1: %{name}-default-pulse.patch
# PATCH-FIX-OPENSUSE qmmp-fix-openmpt.patch -- Fix OpenMPT compatibility.
Patch2: %{name}-fix-openmpt.patch
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: libmpcdec-devel
BuildRequires: libqt5-qttools-devel >= 5.4
BuildRequires: pkgconfig
BuildRequires: pkgconfig(Qt5Core) >= 5.4
BuildRequires: pkgconfig(Qt5DBus) >= 5.4
BuildRequires: pkgconfig(Qt5Multimedia) >= 5.4
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
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(enca) >= 1.9
BuildRequires: pkgconfig(flac)
BuildRequires: pkgconfig(jack)
BuildRequires: pkgconfig(libavcodec)
BuildRequires: pkgconfig(libavformat)
BuildRequires: pkgconfig(libavutil)
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)
BuildRequires: pkgconfig(libprojectM) >= 3.1.0
BuildRequires: pkgconfig(libpulse)
BuildRequires: pkgconfig(libpulse-simple)
BuildRequires: pkgconfig(libsidplayfp)
BuildRequires: pkgconfig(mad)
BuildRequires: pkgconfig(opus) >= 1.0.2
BuildRequires: pkgconfig(opusfile) >= 0.2
BuildRequires: pkgconfig(sndfile)
BuildRequires: pkgconfig(soxr)
BuildRequires: pkgconfig(taglib) >= 1.9
BuildRequires: pkgconfig(vorbisfile)
BuildRequires: pkgconfig(wavpack)
Requires: %{name}(%{sover})(Input)
Requires: %{name}(%{sover})(Output)
Requires: %{name}(%{sover})(Ui)
ExclusiveArch: %ix86 x86_64
%if %{with faad}
BuildRequires: libfaad-devel
%endif
%description
This program is an audio-player, written with help of Qt library.
%package -n lib%{name}%{sover}
Summary: Qmmp library
Recommends: lib%{name}-plugins
%description -n lib%{name}%{sover}
This program is an audio-player, written with help of Qt library.
This package provides the Qmmp library.
%package -n lib%{name}-plugins
Summary: Plugins for libqmmp
# Suggests instead of Recommends since MPlayer is too big of a dependency.
Suggests: lib%{name}-plugin-mplayer
Provides: %{name}(%{sover})(Input)
Provides: %{name}(%{sover})(Output)
Provides: %{name}(%{sover})(Ui)
# 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
%description -n lib%{name}-plugins
This program is an audio-player, written with help of Qt library.
This package provides plugins for libqmmp.
%if %{with restricted}
%package -n lib%{name}-plugin-mplayer
Summary: MPlayer plugin for libqmmp
Requires: MPlayer
%description -n lib%{name}-plugin-mplayer
This program is an audio-player, written with help of Qt library.
This package provides MPlayer plugin for libqmmp.
%endif
%package -n lib%{name}-devel
Summary: Development files for libqmmp
Requires: lib%{name}%{sover} = %{version}
%description -n lib%{name}-devel
This program is an audio-player, written with help of Qt library.
Development files for libqmmp.
%prep
Accepting request 799149 from home:alois:branches:multimedia:apps - Update to version 1.4.0 * added sleep mode inhibition plugin * added separate ListenBrainz submission plugin * added feature to auto-hide empty service menus * added option to disable two passes for equalizer * added fast mute function for most output plugins * added shared CUE parser * added feature to transit between playlists * added optimizations for flac plugin * added feature to select playlist format from the file dialog * added '--pl-next' and '--pl-prev' command line options * added SOCKS5 proxy support * added feature to display average bitrate * added average bitrate displaying for shoutcast/icecast streams * added Ogg Opus support in the ReplayGain scanner * added feature to merge different tag types in the mpeg plugin * added feature to start command on application startup/exit * added 'make docs' build target * added big endian support formats in the PulseAudio plugin * added feature to write singe file in the file writer plugin * improved qsui plugin: + added feature to override track background color + added scope visualization + added feature to reset visualization colors + added waveform seek bar + added alternate analyzer appearance + using gradients between analyzer colors + improved status bar * improved ffmpeg plugin: + added opus bitrate issue workaround + added new implementation of the read function + added embedded CUE sheet support (for Monkey's Audio format) + added format name displaying + added DSD (Direct Stream Digital) support + changed minimal ffmpeg version to 3.2 + removed libav support * improved lyrics plugin: + added feature to save window geometry + added multiple lyrics providers support (based on Ultimare Lyrics plugin) * improved cdaudio plugin: + show more metadata + added KDE Solid integration * improved remote playlists support * improved m3u support * using qsui by default for Wayland sessions * fixed API documentation * updated Portuguese, Dutch, Polish, Galician, Spanish, Russian, Ukrainian, French, Indonesian, Greek, Italian and German translations - Refreshed qmmp-fix_cdda_version.patch OBS-URL: https://build.opensuse.org/request/show/799149 OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/qmmp?expand=0&rev=145
2020-04-30 10:27:30 +02:00
%autosetup -p1
%build
%cmake \
-DCMAKE_MODULE_LINKER_FLAGS="" \
-DCMAKE_BUILD_WITH_INSTALL_RPATH=ON \
-DLIB_DIR=%{_lib} \
-DPLUGIN_DIR=%{_lib}/%{name}-%{mver} \
%if %{without restricted}
-DUSE_MPLAYER=OFF \
%endif
-DUSE_HAL=OFF \
-DUSE_OSS=OFF \
-DUSE_OSS4=OFF
%cmake_build
%install
%cmake_install
# Do not install werdly-sized icons.
rm -r %{buildroot}/%{_datadir}/icons/hicolor/56x56
%post -n lib%{name}%{sover} -p /sbin/ldconfig
%postun -n lib%{name}%{sover} -p /sbin/ldconfig
%files
%license COPYING
%doc AUTHORS ChangeLog README
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}*.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}*
%{_datadir}/metainfo/%{name}.appdata.xml
Accepting request 799149 from home:alois:branches:multimedia:apps - Update to version 1.4.0 * added sleep mode inhibition plugin * added separate ListenBrainz submission plugin * added feature to auto-hide empty service menus * added option to disable two passes for equalizer * added fast mute function for most output plugins * added shared CUE parser * added feature to transit between playlists * added optimizations for flac plugin * added feature to select playlist format from the file dialog * added '--pl-next' and '--pl-prev' command line options * added SOCKS5 proxy support * added feature to display average bitrate * added average bitrate displaying for shoutcast/icecast streams * added Ogg Opus support in the ReplayGain scanner * added feature to merge different tag types in the mpeg plugin * added feature to start command on application startup/exit * added 'make docs' build target * added big endian support formats in the PulseAudio plugin * added feature to write singe file in the file writer plugin * improved qsui plugin: + added feature to override track background color + added scope visualization + added feature to reset visualization colors + added waveform seek bar + added alternate analyzer appearance + using gradients between analyzer colors + improved status bar * improved ffmpeg plugin: + added opus bitrate issue workaround + added new implementation of the read function + added embedded CUE sheet support (for Monkey's Audio format) + added format name displaying + added DSD (Direct Stream Digital) support + changed minimal ffmpeg version to 3.2 + removed libav support * improved lyrics plugin: + added feature to save window geometry + added multiple lyrics providers support (based on Ultimare Lyrics plugin) * improved cdaudio plugin: + show more metadata + added KDE Solid integration * improved remote playlists support * improved m3u support * using qsui by default for Wayland sessions * fixed API documentation * updated Portuguese, Dutch, Polish, Galician, Spanish, Russian, Ukrainian, French, Indonesian, Greek, Italian and German translations - Refreshed qmmp-fix_cdda_version.patch OBS-URL: https://build.opensuse.org/request/show/799149 OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/qmmp?expand=0&rev=145
2020-04-30 10:27:30 +02:00
%{_datadir}/solid
%files -n lib%{name}%{sover}
%{_libdir}/lib%{name}*.so.%{sover}*
%files -n lib%{name}-plugins
Accepting request 673420 from home:alois:branches:multimedia:apps - Update to version 1.3.0 * added history plugin * added mono to stereo converter * added mpg123-based decoder * added PulseAudio volume control * added cover edition feature * added playlist reading/writing optimization * added TAK support * added feature to send listened tracks to ListenBrainz * added sorting by time in the history plugin * changed KDE notification plugin description * improved skinned plugin: + added KWin rules + added feature to hide splitters + added alternate splitter colors + added ability to hold the first visible track while loading a playlist * improved qsui plugin: + added feature to hide splitters + added feature to change splitter color + added ability to hold the first visible track while loading a playlist * moved removable volumes to the "add" menu * improved http plugin: + reduced number of memory allocations + limited maximum buffer size * improved stream browser: + added feature to edit bookmark list + moved launch action from "tools" to "add" menu * added track properties to the title formatting fields * added feature to disable tag reading while loading a playlist file * reduced number of locks * improved command line support * fixed "--pl-help", "--nowplaying-syntax" command line options processing * fixed feature to disable engine * fixed flac preset in the converter plugin * fixed xfce support * improved Windows support: + added support for progress indicator in the taskbar (taskbar plugin) + added removable device detecion (rdetect plugin) + added exclusive mode in the WASAPI plugin * hid private symbols in the liqmmp and libqmmpui libraries * changed plugin installation path * resolved conflict between Qt4- and Qt5-based versions * using GNUInstallDirs module for cmake build * removed mpris1 support * removed support for old versions of the following libraries: musepack, curl, alsa, sndlib, ffmpeg * removed Windows XP support * removed uninstall plugin * replaced deprecated Qt classes: QDesktopWidget, QSignalMapper * updated Russian translation (Alexey Loginov, Viktor Eruhin) * updated Polish translation (mrerexx) * updated Portuguese translation (Sérgio Marques) * updated Ukrainian translation (Gennady Motsyo) * updated Spanish translation (Joel Barrios) * updated German translation (Ettore Atalan) * updated Greek translation (Dimitrios Glentadakis) * updated Galician translation (Delio Docampo Cordeiro) * updated Indonesian translation (Wantoyo) * updated Italian translation (Luigi Toscano) * updated Finnish translation (Jiri Grönroos) * updated Chinese Traditional translation (Cosmos Chen) version 1.2.6 * fixed OSS4 plugin build * fixed 12, 20-bit integer and 32-bit float formats support in the WavPack plugin OBS-URL: https://build.opensuse.org/request/show/673420 OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/qmmp?expand=0&rev=126
2019-02-11 18:12:25 +01:00
%{_libdir}/%{name}-%{mver}/
%if %{with restricted}
%exclude %{_libdir}/%{name}-%{mver}/Engines/libmplayer.so
Accepting request 673420 from home:alois:branches:multimedia:apps - Update to version 1.3.0 * added history plugin * added mono to stereo converter * added mpg123-based decoder * added PulseAudio volume control * added cover edition feature * added playlist reading/writing optimization * added TAK support * added feature to send listened tracks to ListenBrainz * added sorting by time in the history plugin * changed KDE notification plugin description * improved skinned plugin: + added KWin rules + added feature to hide splitters + added alternate splitter colors + added ability to hold the first visible track while loading a playlist * improved qsui plugin: + added feature to hide splitters + added feature to change splitter color + added ability to hold the first visible track while loading a playlist * moved removable volumes to the "add" menu * improved http plugin: + reduced number of memory allocations + limited maximum buffer size * improved stream browser: + added feature to edit bookmark list + moved launch action from "tools" to "add" menu * added track properties to the title formatting fields * added feature to disable tag reading while loading a playlist file * reduced number of locks * improved command line support * fixed "--pl-help", "--nowplaying-syntax" command line options processing * fixed feature to disable engine * fixed flac preset in the converter plugin * fixed xfce support * improved Windows support: + added support for progress indicator in the taskbar (taskbar plugin) + added removable device detecion (rdetect plugin) + added exclusive mode in the WASAPI plugin * hid private symbols in the liqmmp and libqmmpui libraries * changed plugin installation path * resolved conflict between Qt4- and Qt5-based versions * using GNUInstallDirs module for cmake build * removed mpris1 support * removed support for old versions of the following libraries: musepack, curl, alsa, sndlib, ffmpeg * removed Windows XP support * removed uninstall plugin * replaced deprecated Qt classes: QDesktopWidget, QSignalMapper * updated Russian translation (Alexey Loginov, Viktor Eruhin) * updated Polish translation (mrerexx) * updated Portuguese translation (Sérgio Marques) * updated Ukrainian translation (Gennady Motsyo) * updated Spanish translation (Joel Barrios) * updated German translation (Ettore Atalan) * updated Greek translation (Dimitrios Glentadakis) * updated Galician translation (Delio Docampo Cordeiro) * updated Indonesian translation (Wantoyo) * updated Italian translation (Luigi Toscano) * updated Finnish translation (Jiri Grönroos) * updated Chinese Traditional translation (Cosmos Chen) version 1.2.6 * fixed OSS4 plugin build * fixed 12, 20-bit integer and 32-bit float formats support in the WavPack plugin OBS-URL: https://build.opensuse.org/request/show/673420 OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/qmmp?expand=0&rev=126
2019-02-11 18:12:25 +01:00
%endif
%if %{with restricted}
%files -n lib%{name}-plugin-mplayer
%dir %{_libdir}/%{name}-%{mver}/
%dir %{_libdir}/%{name}-%{mver}/Engines/
%{_libdir}/%{name}-%{mver}/Engines/libmplayer.so
%endif
%files -n lib%{name}-devel
%{_includedir}/%{name}/
%{_includedir}/%{name}ui/
%{_libdir}/lib%{name}*.so
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/pkgconfig/%{name}ui.pc
%changelog