Accepting request 650289 from multimedia:apps
- Update to version 0.21.2 * protocol - operator "=~" matches a regular expression - operator "contains" matches substrings * decoder - ffmpeg: require FFmpeg 3.1 or later - ffmpeg: fix broken sound with certain codecs * output - alsa: fix high CPU usage with dmix - httpd: fix three crash bugs * mixer - alsa: fix more rounding errors * fix zlib support - Remove mpd-zlib.patch which was already merged upstream. - Add systemd pre(un)/post(un) macros for mpd.socket - buildrequire libgcrypt-devel to fix build - Update to version 0.21.1, fixes (boo#1114607) * protocol + allow escaping quotes in filter expressions + operator "==" never searches substrings in filter expressions * decoder + ffmpeg: fix build failure with non-standard FFmpeg installation path + flac: fix linker failure when building without FLAC support * encoder + vorbis: fix linker failure when building without Vorbis decoder * fix build failure on Linux-PowerPC * add warning about buggy Boost version 1.67 * require Meson 0.47.2 because a Meson 0.47.1 bug breaks our build version 0.21 * configuration + add "include" directive, allows including config files + incremental "metadata_to_use" setting * protocol + "tagtypes" can be used to hide tags + "find" and "search" can sort + "outputs" prints the plugin name + "outputset" sets runtime attributes + close connection when client sends HTTP request + new filter syntax for "find"/"search" etc. with negation * database + simple: scan audio formats + proxy: require libmpdclient 2.9 + proxy: forward `sort` and `window` to server * player + hard-code "buffer_before_play" to 1 second, independent of audio format + "one-shot" single mode * input + curl: download to buffer instead of throttling transfer + qobuz: new plugin to play Qobuz streams + tidal: new plugin to play Tidal streams * tags + new tags "OriginalDate", "MUSICBRAINZ_WORKID" * decoder + ffmpeg: require at least version 11.12 + gme: try loading m3u sidecar files + hybrid_dsd: new decoder plugin + mad: move "gapless_mp3_playback" setting to "decoder" block + mikmod: require at least version 3.2 + pcm: support audio/L24 (RFC 3190) + sidplay: support basic and kernal rom (libsidplayfp) * resampler + soxr: flush resampler at end of song * output + alsa: non-blocking mode + alsa: change "dop" and "allowed_formats" settings at runtime + ao: fix crash bug due to partial frames + shout: support the Shine encoder plugin + sndio: remove support for the broken RoarAudio sndio emulation + roar: removed + httpd_output: support for unix sockets * mixer + sndio: new mixer plugin * encoder + opus: support for sending metadata using ogg stream chaining * listen on $XDG_RUNTIME_DIR/mpd/socket by default * append hostname to Zeroconf service name * systemd watchdog support * require GCC 6 * build with Meson instead of autotools * use GTest instead of cppunit version 0.20.23 * protocol + emit "player" idle event when restarting the current song * fix broken float to s32 conversion * new clang crash bug workaround - Dropped mpd-configh.patch (no longer necessary) - Added mpd-zlib.patch, mpd-docs.patch and mpd-sndfile.patch - Switched build to meson - Make iso9660 support optional (gh#173) OBS-URL: https://build.opensuse.org/request/show/650289 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mpd?expand=0&rev=7
This commit is contained in:
commit
547bbb2c37
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:78f4c4e2b5b5b4c542037f970c9253486b24e4a52e122d5859cd615b3b9a7cdd
|
|
||||||
size 807084
|
|
3
mpd-0.21.2.tar.xz
Normal file
3
mpd-0.21.2.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:c6ff74ff521aa2b390bdeac299954da21b9d0a66216abdd500ae590d97ab514a
|
||||||
|
size 664408
|
@ -1,12 +0,0 @@
|
|||||||
--- a/src/decoder/plugins/FfmpegDecoderPlugin.cxx
|
|
||||||
+++ b/src/decoder/plugins/FfmpegDecoderPlugin.cxx
|
|
||||||
@@ -20,8 +20,8 @@
|
|
||||||
/* necessary because libavutil/common.h uses UINT64_C */
|
|
||||||
#define __STDC_CONSTANT_MACROS
|
|
||||||
|
|
||||||
-#include "lib/ffmpeg/Time.hxx"
|
|
||||||
#include "config.h"
|
|
||||||
+#include "lib/ffmpeg/Time.hxx"
|
|
||||||
#include "FfmpegDecoderPlugin.hxx"
|
|
||||||
#include "lib/ffmpeg/Domain.hxx"
|
|
||||||
#include "lib/ffmpeg/Error.hxx"
|
|
30
mpd-docs.patch
Normal file
30
mpd-docs.patch
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
Index: mpd-0.21.1/meson.build
|
||||||
|
===================================================================
|
||||||
|
--- mpd-0.21.1.orig/meson.build
|
||||||
|
+++ mpd-0.21.1/meson.build
|
||||||
|
@@ -458,8 +458,23 @@ install_data(
|
||||||
|
)
|
||||||
|
|
||||||
|
install_data(
|
||||||
|
- 'AUTHORS', 'COPYING', 'NEWS', 'README.md',
|
||||||
|
- install_dir: join_paths(get_option('datadir'), 'doc', meson.project_name()),
|
||||||
|
+ 'AUTHORS', 'NEWS', 'README.md', 'doc/mpdconf.example',
|
||||||
|
+ install_dir: join_paths(get_option('datadir'), 'doc', 'packages', meson.project_name()),
|
||||||
|
+)
|
||||||
|
+
|
||||||
|
+install_data(
|
||||||
|
+ 'doc/mpdconf.example', rename : 'mpd.conf',
|
||||||
|
+ install_dir: get_option('sysconfdir'),
|
||||||
|
+)
|
||||||
|
+
|
||||||
|
+install_data(
|
||||||
|
+ 'doc/mpd.1',
|
||||||
|
+ install_dir: join_paths(get_option('mandir'), 'man1'),
|
||||||
|
+)
|
||||||
|
+
|
||||||
|
+install_data(
|
||||||
|
+ 'doc/mpd.conf.5',
|
||||||
|
+ install_dir: join_paths(get_option('mandir'), 'man5'),
|
||||||
|
)
|
||||||
|
|
||||||
|
if get_option('documentation')
|
20
mpd-sndfile.patch
Normal file
20
mpd-sndfile.patch
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
From: Luigi Baldoni <aloisio@gmx.com>
|
||||||
|
Date: 2018-11-09 21:10:34 +0100
|
||||||
|
Subject: avoid clash wrt sndfile.h
|
||||||
|
|
||||||
|
sndfile.h is present both in /usr/include and /usr/include/libmodplug
|
||||||
|
This hack hardcodes the path of the first one.
|
||||||
|
|
||||||
|
Index: mpd-0.21.1/src/decoder/plugins/SndfileDecoderPlugin.cxx
|
||||||
|
===================================================================
|
||||||
|
--- mpd-0.21.1.orig/src/decoder/plugins/SndfileDecoderPlugin.cxx
|
||||||
|
+++ mpd-0.21.1/src/decoder/plugins/SndfileDecoderPlugin.cxx
|
||||||
|
@@ -29,7 +29,7 @@
|
||||||
|
|
||||||
|
#include <exception>
|
||||||
|
|
||||||
|
-#include <sndfile.h>
|
||||||
|
+#include "/usr/include/sndfile.h"
|
||||||
|
|
||||||
|
static constexpr Domain sndfile_domain("sndfile");
|
||||||
|
|
118
mpd.changes
118
mpd.changes
@ -1,3 +1,121 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Nov 16 11:55:10 UTC 2018 - Antonio Larrosa <alarrosa@suse.com>
|
||||||
|
|
||||||
|
- Update to version 0.21.2
|
||||||
|
* protocol
|
||||||
|
- operator "=~" matches a regular expression
|
||||||
|
- operator "contains" matches substrings
|
||||||
|
* decoder
|
||||||
|
- ffmpeg: require FFmpeg 3.1 or later
|
||||||
|
- ffmpeg: fix broken sound with certain codecs
|
||||||
|
* output
|
||||||
|
- alsa: fix high CPU usage with dmix
|
||||||
|
- httpd: fix three crash bugs
|
||||||
|
* mixer
|
||||||
|
- alsa: fix more rounding errors
|
||||||
|
* fix zlib support
|
||||||
|
|
||||||
|
- Remove mpd-zlib.patch which was already merged upstream.
|
||||||
|
|
||||||
|
- Add systemd pre(un)/post(un) macros for mpd.socket
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Nov 15 11:12:49 UTC 2018 - meissner@suse.com
|
||||||
|
|
||||||
|
- buildrequire libgcrypt-devel to fix build
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Nov 9 14:53:54 UTC 2018 - Luigi Baldoni <aloisio@gmx.com>
|
||||||
|
|
||||||
|
- Update to version 0.21.1, fixes (boo#1114607)
|
||||||
|
* protocol
|
||||||
|
+ allow escaping quotes in filter expressions
|
||||||
|
+ operator "==" never searches substrings in filter
|
||||||
|
expressions
|
||||||
|
* decoder
|
||||||
|
+ ffmpeg: fix build failure with non-standard FFmpeg
|
||||||
|
installation path
|
||||||
|
+ flac: fix linker failure when building without FLAC support
|
||||||
|
* encoder
|
||||||
|
+ vorbis: fix linker failure when building without Vorbis
|
||||||
|
decoder
|
||||||
|
* fix build failure on Linux-PowerPC
|
||||||
|
* add warning about buggy Boost version 1.67
|
||||||
|
* require Meson 0.47.2 because a Meson 0.47.1 bug breaks our
|
||||||
|
build
|
||||||
|
version 0.21
|
||||||
|
* configuration
|
||||||
|
+ add "include" directive, allows including config files
|
||||||
|
+ incremental "metadata_to_use" setting
|
||||||
|
* protocol
|
||||||
|
+ "tagtypes" can be used to hide tags
|
||||||
|
+ "find" and "search" can sort
|
||||||
|
+ "outputs" prints the plugin name
|
||||||
|
+ "outputset" sets runtime attributes
|
||||||
|
+ close connection when client sends HTTP request
|
||||||
|
+ new filter syntax for "find"/"search" etc. with negation
|
||||||
|
* database
|
||||||
|
+ simple: scan audio formats
|
||||||
|
+ proxy: require libmpdclient 2.9
|
||||||
|
+ proxy: forward `sort` and `window` to server
|
||||||
|
* player
|
||||||
|
+ hard-code "buffer_before_play" to 1 second, independent of
|
||||||
|
audio format
|
||||||
|
+ "one-shot" single mode
|
||||||
|
* input
|
||||||
|
+ curl: download to buffer instead of throttling transfer
|
||||||
|
+ qobuz: new plugin to play Qobuz streams
|
||||||
|
+ tidal: new plugin to play Tidal streams
|
||||||
|
* tags
|
||||||
|
+ new tags "OriginalDate", "MUSICBRAINZ_WORKID"
|
||||||
|
* decoder
|
||||||
|
+ ffmpeg: require at least version 11.12
|
||||||
|
+ gme: try loading m3u sidecar files
|
||||||
|
+ hybrid_dsd: new decoder plugin
|
||||||
|
+ mad: move "gapless_mp3_playback" setting to "decoder" block
|
||||||
|
+ mikmod: require at least version 3.2
|
||||||
|
+ pcm: support audio/L24 (RFC 3190)
|
||||||
|
+ sidplay: support basic and kernal rom (libsidplayfp)
|
||||||
|
* resampler
|
||||||
|
+ soxr: flush resampler at end of song
|
||||||
|
* output
|
||||||
|
+ alsa: non-blocking mode
|
||||||
|
+ alsa: change "dop" and "allowed_formats" settings at
|
||||||
|
runtime
|
||||||
|
+ ao: fix crash bug due to partial frames
|
||||||
|
+ shout: support the Shine encoder plugin
|
||||||
|
+ sndio: remove support for the broken RoarAudio sndio
|
||||||
|
emulation
|
||||||
|
+ roar: removed
|
||||||
|
+ httpd_output: support for unix sockets
|
||||||
|
* mixer
|
||||||
|
+ sndio: new mixer plugin
|
||||||
|
* encoder
|
||||||
|
+ opus: support for sending metadata using ogg stream
|
||||||
|
chaining
|
||||||
|
* listen on $XDG_RUNTIME_DIR/mpd/socket by default
|
||||||
|
* append hostname to Zeroconf service name
|
||||||
|
* systemd watchdog support
|
||||||
|
* require GCC 6
|
||||||
|
* build with Meson instead of autotools
|
||||||
|
* use GTest instead of cppunit
|
||||||
|
version 0.20.23
|
||||||
|
* protocol
|
||||||
|
+ emit "player" idle event when restarting the current song
|
||||||
|
* fix broken float to s32 conversion
|
||||||
|
* new clang crash bug workaround
|
||||||
|
|
||||||
|
- Dropped mpd-configh.patch (no longer necessary)
|
||||||
|
|
||||||
|
- Added mpd-zlib.patch, mpd-docs.patch and mpd-sndfile.patch
|
||||||
|
|
||||||
|
- Switched build to meson
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Nov 9 10:25:48 UTC 2018 - olaf@aepfle.de
|
||||||
|
|
||||||
|
- Make iso9660 support optional (gh#173)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Oct 23 18:51:03 UTC 2018 - Luigi Baldoni <aloisio@gmx.com>
|
Tue Oct 23 18:51:03 UTC 2018 - Luigi Baldoni <aloisio@gmx.com>
|
||||||
|
|
||||||
|
246
mpd.spec
246
mpd.spec
@ -18,44 +18,41 @@
|
|||||||
|
|
||||||
|
|
||||||
%bcond_with faad
|
%bcond_with faad
|
||||||
|
%bcond_without mpd_iso9660
|
||||||
|
|
||||||
%if !%{defined _userunitdir}
|
%if !%{defined _userunitdir}
|
||||||
%define _userunitdir %{_prefix}/lib/systemd/user
|
%define _userunitdir %{_prefix}/lib/systemd/user
|
||||||
%endif
|
%endif
|
||||||
|
%define mver 0.21
|
||||||
Name: mpd
|
Name: mpd
|
||||||
Version: 0.20.22
|
Version: 0.21.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Music Player Daemon
|
Summary: Music Player Daemon
|
||||||
License: GPL-3.0-or-later
|
License: GPL-3.0-or-later
|
||||||
Group: Productivity/Multimedia/Sound/Players
|
Group: Productivity/Multimedia/Sound/Players
|
||||||
URL: https://www.musicpd.org/
|
Url: https://www.musicpd.org/
|
||||||
Source: https://www.musicpd.org/download/mpd/0.20/mpd-%{version}.tar.xz
|
Source: https://www.musicpd.org/download/mpd/%{mver}/mpd-%{version}.tar.xz
|
||||||
Source2: README.%{name}
|
Source2: README.%{name}
|
||||||
Source3: mpd-user.conf
|
Source3: mpd-user.conf
|
||||||
# PATCH-FEATURE-OPENSUSE mpd-mpdconf_suse.patch --
|
# PATCH-FEATURE-OPENSUSE mpd-mpdconf_suse.patch --
|
||||||
Patch0: %{name}-mpdconf_suse.patch
|
Patch0: %{name}-mpdconf_suse.patch
|
||||||
Patch1: mpd-configh.patch
|
# PATCH-FEATURE-OPENSUSE mpd-docs.patch
|
||||||
BuildRequires: autoconf
|
Patch3: mpd-docs.patch
|
||||||
BuildRequires: automake
|
# PATCH-FIX-OPENSUSE mpd-sndfile.patch
|
||||||
%if 0%{?suse_version} > 1315
|
Patch4: mpd-sndfile.patch
|
||||||
BuildRequires: libboost_headers-devel
|
%if 0%{?suse_version} >= 1500
|
||||||
|
BuildRequires: libboost_headers-devel >= 1.58
|
||||||
%else
|
%else
|
||||||
BuildRequires: boost-devel
|
BuildRequires: boost-devel >= 1.58
|
||||||
%endif
|
%endif
|
||||||
%if 0%{?suse_version} > 1320
|
%if 0%{?suse_version} >= 1500
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
%else
|
%else
|
||||||
%if 0%{?sle_version} == 120200
|
|
||||||
# Leap 42.2
|
|
||||||
BuildRequires: gcc6
|
|
||||||
BuildRequires: gcc6-c++
|
|
||||||
%else
|
|
||||||
# Leap 42.3+ / SLE12SP3Backports
|
# Leap 42.3+ / SLE12SP3Backports
|
||||||
BuildRequires: gcc7
|
BuildRequires: gcc7
|
||||||
BuildRequires: gcc7-c++
|
BuildRequires: gcc7-c++
|
||||||
%endif
|
%endif
|
||||||
%endif
|
|
||||||
#uildRequires: cdrkit-cdrtools-compat
|
#uildRequires: cdrkit-cdrtools-compat
|
||||||
%if %{with faad}
|
%if %{with faad}
|
||||||
BuildRequires: faad2-devel
|
BuildRequires: faad2-devel
|
||||||
@ -63,8 +60,9 @@ BuildRequires: faad2-devel
|
|||||||
#
|
#
|
||||||
BuildRequires: hicolor-icon-theme
|
BuildRequires: hicolor-icon-theme
|
||||||
BuildRequires: libcue-devel
|
BuildRequires: libcue-devel
|
||||||
BuildRequires: libmikmod-devel
|
BuildRequires: libmikmod-devel >= 3.2
|
||||||
BuildRequires: libmp3lame-devel
|
BuildRequires: libmp3lame-devel
|
||||||
|
BuildRequires: meson >= 0.47.2
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
# MPD_ENABLE_AUTO_PKG
|
# MPD_ENABLE_AUTO_PKG
|
||||||
BuildRequires: pkgconfig(alsa) >= 0.9.0
|
BuildRequires: pkgconfig(alsa) >= 0.9.0
|
||||||
@ -72,26 +70,31 @@ BuildRequires: pkgconfig(ao)
|
|||||||
BuildRequires: pkgconfig(audiofile) >= 0.3
|
BuildRequires: pkgconfig(audiofile) >= 0.3
|
||||||
BuildRequires: pkgconfig(avahi-client)
|
BuildRequires: pkgconfig(avahi-client)
|
||||||
# MPD_ENABLE_AUTO_LIB
|
# MPD_ENABLE_AUTO_LIB
|
||||||
|
BuildRequires: libgcrypt-devel
|
||||||
BuildRequires: pkgconfig(bzip2)
|
BuildRequires: pkgconfig(bzip2)
|
||||||
BuildRequires: pkgconfig(dbus-1)
|
BuildRequires: pkgconfig(dbus-1)
|
||||||
BuildRequires: pkgconfig(expat)
|
BuildRequires: pkgconfig(expat)
|
||||||
BuildRequires: pkgconfig(flac) >= 1.2
|
BuildRequires: pkgconfig(flac) >= 1.2
|
||||||
BuildRequires: pkgconfig(fluidsynth) >= 1.1
|
BuildRequires: pkgconfig(fluidsynth) >= 1.1
|
||||||
BuildRequires: pkgconfig(icu-i18n)
|
BuildRequires: pkgconfig(icu-i18n) >= 50
|
||||||
BuildRequires: pkgconfig(id3tag)
|
BuildRequires: pkgconfig(id3tag)
|
||||||
BuildRequires: pkgconfig(jack) >= 0.100
|
BuildRequires: pkgconfig(jack) >= 0.100
|
||||||
BuildRequires: pkgconfig(libavcodec) >= 53.25
|
BuildRequires: pkgconfig(libavcodec) >= 56.1
|
||||||
BuildRequires: pkgconfig(libavformat) >= 53.17
|
BuildRequires: pkgconfig(libavformat) >= 56.1
|
||||||
BuildRequires: pkgconfig(libavutil) >= 51.17
|
BuildRequires: pkgconfig(libavutil) >= 54.3
|
||||||
|
BuildRequires: pkgconfig(libchromaprint)
|
||||||
|
BuildRequires: pkgconfig(libcdio) >= 2.0.0
|
||||||
BuildRequires: pkgconfig(libcdio_paranoia)
|
BuildRequires: pkgconfig(libcdio_paranoia)
|
||||||
BuildRequires: pkgconfig(libcurl) >= 7.18
|
BuildRequires: pkgconfig(libcurl) >= 7.18
|
||||||
BuildRequires: pkgconfig(libgme)
|
BuildRequires: pkgconfig(libgme)
|
||||||
|
%if %{with mpd_iso9660}
|
||||||
BuildRequires: pkgconfig(libiso9660)
|
BuildRequires: pkgconfig(libiso9660)
|
||||||
|
%endif
|
||||||
BuildRequires: pkgconfig(libmms) >= 0.4
|
BuildRequires: pkgconfig(libmms) >= 0.4
|
||||||
BuildRequires: pkgconfig(libmodplug)
|
BuildRequires: pkgconfig(libmodplug)
|
||||||
BuildRequires: pkgconfig(libmpdclient) >= 2.2
|
BuildRequires: pkgconfig(libmpdclient) >= 2.9
|
||||||
BuildRequires: pkgconfig(libmpg123)
|
BuildRequires: pkgconfig(libmpg123)
|
||||||
BuildRequires: pkgconfig(libnfs)
|
BuildRequires: pkgconfig(libnfs) >= 1.11
|
||||||
BuildRequires: pkgconfig(libpulse) >= 0.9.16
|
BuildRequires: pkgconfig(libpulse) >= 0.9.16
|
||||||
BuildRequires: pkgconfig(libsystemd)
|
BuildRequires: pkgconfig(libsystemd)
|
||||||
BuildRequires: pkgconfig(libupnp)
|
BuildRequires: pkgconfig(libupnp)
|
||||||
@ -110,14 +113,13 @@ BuildRequires: pkgconfig(twolame)
|
|||||||
BuildRequires: pkgconfig(vorbis)
|
BuildRequires: pkgconfig(vorbis)
|
||||||
BuildRequires: pkgconfig(vorbisenc)
|
BuildRequires: pkgconfig(vorbisenc)
|
||||||
BuildRequires: pkgconfig(wavpack)
|
BuildRequires: pkgconfig(wavpack)
|
||||||
# soundcloud
|
BuildRequires: pkgconfig(yajl) >= 2.0
|
||||||
#uildRequires: pkgconfig(yajl) >= 2.0
|
|
||||||
BuildRequires: pkgconfig(zlib)
|
BuildRequires: pkgconfig(zlib)
|
||||||
BuildRequires: pkgconfig(zziplib) >= 0.13
|
BuildRequires: pkgconfig(zziplib) >= 0.13
|
||||||
Requires(pre): %fillup_prereq
|
Requires(pre): %fillup_prereq
|
||||||
Requires(pre): pwdutils
|
Requires(pre): pwdutils
|
||||||
Requires(pre): shadow
|
Requires(pre): shadow
|
||||||
%if 0%{?suse_version} > 1320
|
%if 0%{?suse_version} >= 1500
|
||||||
BuildRequires: group(audio)
|
BuildRequires: group(audio)
|
||||||
Requires(pre): group(audio)
|
Requires(pre): group(audio)
|
||||||
%endif
|
%endif
|
||||||
@ -139,136 +141,120 @@ Please read README.mpd how to configure it.
|
|||||||
%build
|
%build
|
||||||
export CC=gcc
|
export CC=gcc
|
||||||
export CXX=g++
|
export CXX=g++
|
||||||
test -x "$(type -p gcc-5)" && export CC=gcc-5
|
|
||||||
test -x "$(type -p g++-5)" && export CXX=g++-5
|
|
||||||
test -x "$(type -p gcc-6)" && export CC=gcc-6
|
|
||||||
test -x "$(type -p g++-6)" && export CXX=g++-6
|
|
||||||
test -x "$(type -p gcc-7)" && export CC=gcc-7
|
test -x "$(type -p gcc-7)" && export CC=gcc-7
|
||||||
test -x "$(type -p g++-7)" && export CXX=g++-7
|
test -x "$(type -p g++-7)" && export CXX=g++-7
|
||||||
NOCONFIGURE=1 ./autogen.sh
|
%meson \
|
||||||
%configure \
|
-Dsidplay=disabled \
|
||||||
--disable-sidplay \
|
-Dfaad=disabled \
|
||||||
--disable-aac \
|
-Diso9660=disabled \
|
||||||
\
|
-Dsyslog=enabled \
|
||||||
--enable-syslog \
|
-Deventfd=true \
|
||||||
--enable-eventfd \
|
-Dsignalfd=true \
|
||||||
--enable-signalfd \
|
-Depoll=true \
|
||||||
--enable-poll \
|
-Ddatabase=true \
|
||||||
--enable-epoll \
|
-Ddaemon=true \
|
||||||
--enable-database \
|
-Ddocumentation=false \
|
||||||
--enable-daemon \
|
-Ddsd=true \
|
||||||
--enable-debug \
|
-Dfifo=true \
|
||||||
--disable-documentation \
|
-Dhttpd=true \
|
||||||
--enable-dsd \
|
-Dinotify=true \
|
||||||
--enable-fifo \
|
-Dipv6=enabled \
|
||||||
--enable-httpd-output \
|
-Dsoundcloud=disabled \
|
||||||
--enable-inotify \
|
-Dlibwrap=disabled \
|
||||||
--enable-ipv6 \
|
-Dmikmod=enabled \
|
||||||
--enable-largefile \
|
-Dopenal=enabled \
|
||||||
--disable-soundcloud \
|
-Doss=disabled \
|
||||||
--disable-libwrap \
|
-Dpipe=true \
|
||||||
--enable-mikmod \
|
-Drecorder=true \
|
||||||
--enable-openal \
|
-Dshout=enabled \
|
||||||
--disable-oss \
|
-Dsolaris_output=enabled \
|
||||||
--disable-osx \
|
-Dtcp=true \
|
||||||
--enable-pipe-output \
|
-Dtest=false \
|
||||||
--enable-recorder-output \
|
-Dlocal_socket=true \
|
||||||
--enable-shout \
|
-Dvorbis=enabled \
|
||||||
--enable-solaris-output \
|
-Dwave_encoder=true \
|
||||||
--enable-tcp \
|
-Dicu=enabled \
|
||||||
--disable-test \
|
-Diconv=enabled \
|
||||||
--enable-un \
|
-Dsystemd=enabled \
|
||||||
--enable-vorbis \
|
-Dlibmpdclient=enabled \
|
||||||
--enable-wave-encoder \
|
-Dexpat=enabled \
|
||||||
--disable-werror \
|
-Did3tag=enabled \
|
||||||
--enable-icu \
|
-Dsqlite=enabled \
|
||||||
--enable-iconv \
|
-Dlibsamplerate=enabled \
|
||||||
--enable-systemd-daemon \
|
-Dsoxr=enabled \
|
||||||
--enable-libmpdclient \
|
-Dcurl=enabled \
|
||||||
--enable-expat \
|
-Dsmbclient=enabled \
|
||||||
--enable-id3 \
|
-Dnfs=enabled \
|
||||||
--enable-sqlite \
|
-Dcdio_paranoia=enabled \
|
||||||
--enable-lsr \
|
-Dmms=enabled \
|
||||||
--enable-soxr \
|
-Dwebdav=enabled \
|
||||||
--enable-curl \
|
-Dcue=true \
|
||||||
--enable-smbclient \
|
-Dneighbor=true \
|
||||||
--enable-nfs \
|
%if %{with mpd_iso9660}
|
||||||
--enable-cdio-paranoia \
|
-Diso9660=enabled \
|
||||||
--enable-mms \
|
|
||||||
--enable-webdav \
|
|
||||||
--enable-cue \
|
|
||||||
--enable-neighbor-plugins \
|
|
||||||
--enable-iso9660 \
|
|
||||||
--enable-zlib \
|
|
||||||
--enable-bzip2 \
|
|
||||||
--enable-upnp \
|
|
||||||
--enable-zzip \
|
|
||||||
--disable-adplug \
|
|
||||||
--enable-audiofile \
|
|
||||||
%if %{with faad}
|
|
||||||
--enable-aac \
|
|
||||||
%endif
|
%endif
|
||||||
--enable-ffmpeg \
|
-Dzlib=enabled \
|
||||||
--enable-flac \
|
-Dbzip2=enabled \
|
||||||
--enable-fluidsynth \
|
-Dupnp=enabled \
|
||||||
--enable-gme \
|
-Dzzip=enabled \
|
||||||
--enable-mad \
|
-Dadplug=disabled \
|
||||||
--enable-mpg123 \
|
-Daudiofile=enabled \
|
||||||
--enable-modplug \
|
%if %{with faad}
|
||||||
--enable-opus \
|
-Dfaad=enabled \
|
||||||
--enable-sndfile \
|
%endif
|
||||||
--disable-mpc \
|
-Dffmpeg=enabled \
|
||||||
--enable-wavpack \
|
-Dflac=enabled \
|
||||||
--disable-wildmidi \
|
-Dfluidsynth=enabled \
|
||||||
--enable-shine-encoder \
|
-Dgme=enabled \
|
||||||
--enable-vorbis-encoder \
|
-Dmad=enabled \
|
||||||
--enable-lame-encoder \
|
-Dmpg123=enabled \
|
||||||
--enable-twolame-encoder \
|
-Dmodplug=enabled \
|
||||||
--enable-alsa \
|
-Dopus=enabled \
|
||||||
--disable-roar \
|
-Dsndfile=enabled \
|
||||||
--disable-sndio \
|
-Dmpcdec=disabled \
|
||||||
--disable-haiku \
|
-Dwavpack=enabled \
|
||||||
--enable-jack \
|
-Dwildmidi=disabled \
|
||||||
--enable-ao \
|
-Dshine=enabled \
|
||||||
--enable-pulse \
|
-Dvorbisenc=enabled \
|
||||||
\
|
-Dlame=enabled \
|
||||||
--with-boost=yes \
|
-Dtwolame=enabled \
|
||||||
--enable-systemd-daemon \
|
-Dalsa=enabled \
|
||||||
--with-systemdsystemunitdir=%{_unitdir} \
|
-Dsndio=disabled \
|
||||||
--with-systemduserunitdir=%{_userunitdir}
|
-Djack=enabled \
|
||||||
make %{?_smp_mflags}
|
-Dao=enabled \
|
||||||
|
-Dpulse=enabled \
|
||||||
|
-Dsystemd_system_unit_dir=%{_unitdir} \
|
||||||
|
-Dsystemd_user_unit_dir=%{_userunitdir}
|
||||||
|
%meson_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install docdir=%{_docdir}/%{name}
|
%meson_install
|
||||||
find %{buildroot} -ls
|
|
||||||
# missing dirs
|
# missing dirs
|
||||||
install -d \
|
install -d \
|
||||||
%{buildroot}%{_localstatedir}/lib/%{name}/playlists \
|
%{buildroot}%{_localstatedir}/lib/%{name}/playlists \
|
||||||
%{buildroot}%{_sbindir}
|
%{buildroot}%{_sbindir}
|
||||||
# additional docs
|
# additional docs
|
||||||
install -m 0644 %{SOURCE2} README.mpd
|
install -m 0644 %{SOURCE2} README.mpd
|
||||||
# copy example mpd.conf
|
|
||||||
install -Dm0644 %{buildroot}%{_docdir}/%{name}/mpdconf.example %{buildroot}%{_sysconfdir}/mpd.conf
|
|
||||||
cp -a "%{SOURCE3}" "%{buildroot}%{_docdir}/%{name}/"
|
cp -a "%{SOURCE3}" "%{buildroot}%{_docdir}/%{name}/"
|
||||||
ln -s service %{buildroot}%{_sbindir}/rcmpd
|
ln -s service %{buildroot}%{_sbindir}/rcmpd
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
# add mpd user only when installing first time
|
# add mpd user only when installing first time
|
||||||
getent passwd mpd >/dev/null || useradd -r -g audio -d %{_localstatedir}/lib/mpd -s /sbin/nologin -c "user for mpd" mpd
|
getent passwd mpd >/dev/null || useradd -r -g audio -d %{_localstatedir}/lib/mpd -s /sbin/nologin -c "user for mpd" mpd
|
||||||
%service_add_pre mpd.service
|
%service_add_pre mpd.service mpd.socket
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%service_add_post mpd.service
|
%service_add_post mpd.service mpd.socket
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
%service_del_preun mpd.service
|
%service_del_preun mpd.service mpd.socket
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%service_del_postun mpd.service
|
%service_del_postun mpd.service mpd.socket
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%doc AUTHORS NEWS README.md README.mpd
|
%doc README.mpd
|
||||||
%config(noreplace) %{_sysconfdir}/%{name}.conf
|
%config(noreplace) %{_sysconfdir}/%{name}.conf
|
||||||
%{_bindir}/%{name}
|
%{_bindir}/%{name}
|
||||||
%{_sbindir}/rcmpd
|
%{_sbindir}/rcmpd
|
||||||
|
Loading…
x
Reference in New Issue
Block a user