- Remove lame/mad/twolame conditional because it is always present
OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/mpd?expand=0&rev=2
This commit is contained in:
parent
c0f576ce44
commit
cb917600ba
40
mpd.spec
40
mpd.spec
@ -18,9 +18,6 @@
|
|||||||
|
|
||||||
|
|
||||||
%bcond_with faad
|
%bcond_with faad
|
||||||
%bcond_with lame
|
|
||||||
%bcond_with mad
|
|
||||||
%bcond_with twolame
|
|
||||||
|
|
||||||
%if !%{defined _userunitdir}
|
%if !%{defined _userunitdir}
|
||||||
%define _userunitdir /usr/lib/systemd/user
|
%define _userunitdir /usr/lib/systemd/user
|
||||||
@ -42,27 +39,16 @@ Patch1: mpd-configh.patch
|
|||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: pkg-config
|
BuildRequires: pkg-config
|
||||||
%if 0%{?suse_version} > 1320
|
|
||||||
BuildRequires: libboost_headers-devel
|
BuildRequires: libboost_headers-devel
|
||||||
%else
|
|
||||||
BuildRequires: boost-devel
|
|
||||||
%endif
|
|
||||||
#uildRequires: cdrkit-cdrtools-compat
|
#uildRequires: cdrkit-cdrtools-compat
|
||||||
%if 0%{?suse_version} > 1320
|
%if 0%{?suse_version} > 1320
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
%else
|
%else
|
||||||
# mpd requires C++14 support.
|
|
||||||
%if 0%{?sle_version} == 120100
|
|
||||||
# Leap 42.1
|
|
||||||
BuildRequires: gcc5
|
|
||||||
BuildRequires: gcc5-c++
|
|
||||||
%else
|
|
||||||
# Leap 42.2+ / SLE12SP2Backports
|
# Leap 42.2+ / SLE12SP2Backports
|
||||||
BuildRequires: gcc6
|
BuildRequires: gcc6
|
||||||
BuildRequires: gcc6-c++
|
BuildRequires: gcc6-c++
|
||||||
%endif
|
%endif
|
||||||
%endif
|
|
||||||
BuildRequires: libcue-devel
|
BuildRequires: libcue-devel
|
||||||
BuildRequires: libmikmod-devel
|
BuildRequires: libmikmod-devel
|
||||||
# MPD_ENABLE_AUTO_LIB
|
# MPD_ENABLE_AUTO_LIB
|
||||||
@ -70,9 +56,7 @@ BuildRequires: pkgconfig(bzip2)
|
|||||||
%if %{with faad}
|
%if %{with faad}
|
||||||
BuildRequires: faad2-devel
|
BuildRequires: faad2-devel
|
||||||
%endif
|
%endif
|
||||||
%if %{with lame}
|
|
||||||
BuildRequires: libmp3lame-devel
|
BuildRequires: libmp3lame-devel
|
||||||
%endif
|
|
||||||
# MPD_ENABLE_AUTO_PKG
|
# MPD_ENABLE_AUTO_PKG
|
||||||
BuildRequires: pkgconfig(alsa) >= 0.9.0
|
BuildRequires: pkgconfig(alsa) >= 0.9.0
|
||||||
BuildRequires: pkgconfig(ao)
|
BuildRequires: pkgconfig(ao)
|
||||||
@ -100,9 +84,7 @@ BuildRequires: pkgconfig(libmpg123)
|
|||||||
BuildRequires: pkgconfig(libpulse) >= 0.9.16
|
BuildRequires: pkgconfig(libpulse) >= 0.9.16
|
||||||
BuildRequires: pkgconfig(libsystemd)
|
BuildRequires: pkgconfig(libsystemd)
|
||||||
BuildRequires: pkgconfig(libupnp)
|
BuildRequires: pkgconfig(libupnp)
|
||||||
%if %{with mad}
|
|
||||||
BuildRequires: pkgconfig(mad)
|
BuildRequires: pkgconfig(mad)
|
||||||
%endif
|
|
||||||
BuildRequires: pkgconfig(ogg)
|
BuildRequires: pkgconfig(ogg)
|
||||||
BuildRequires: pkgconfig(openal)
|
BuildRequires: pkgconfig(openal)
|
||||||
BuildRequires: pkgconfig(opus)
|
BuildRequires: pkgconfig(opus)
|
||||||
@ -113,9 +95,7 @@ BuildRequires: pkgconfig(smbclient) >= 0.2
|
|||||||
BuildRequires: pkgconfig(sndfile)
|
BuildRequires: pkgconfig(sndfile)
|
||||||
BuildRequires: pkgconfig(soxr)
|
BuildRequires: pkgconfig(soxr)
|
||||||
BuildRequires: pkgconfig(sqlite3) >= 3.7.3
|
BuildRequires: pkgconfig(sqlite3) >= 3.7.3
|
||||||
%if %{with twolame}
|
|
||||||
BuildRequires: pkgconfig(twolame)
|
BuildRequires: pkgconfig(twolame)
|
||||||
%endif
|
|
||||||
BuildRequires: pkgconfig(vorbis)
|
BuildRequires: pkgconfig(vorbis)
|
||||||
BuildRequires: pkgconfig(vorbisenc)
|
BuildRequires: pkgconfig(vorbisenc)
|
||||||
BuildRequires: pkgconfig(wavpack)
|
BuildRequires: pkgconfig(wavpack)
|
||||||
@ -153,25 +133,14 @@ Please read README.mpd how to configure it.
|
|||||||
export CC=gcc
|
export CC=gcc
|
||||||
export CXX=g++
|
export CXX=g++
|
||||||
%else
|
%else
|
||||||
# mpd requires C++14 support.
|
|
||||||
%if 0%{?sle_version} == 120100
|
|
||||||
# Leap 42.1
|
|
||||||
export CC=gcc-5
|
|
||||||
export CXX=g++-5
|
|
||||||
%else
|
|
||||||
# Leap 42.2+ / SLE12SP2Backports
|
# Leap 42.2+ / SLE12SP2Backports
|
||||||
export CC=gcc-6
|
export CC=gcc-6
|
||||||
export CXX=g++-6
|
export CXX=g++-6
|
||||||
%endif
|
%endif
|
||||||
%endif
|
NOCONFIGURE=1 ./autogen.sh
|
||||||
#Need to run as makefile.in built with later version of automake.
|
|
||||||
[ -x autogen.sh ] && NOCONFIGURE=1 ./autogen.sh
|
|
||||||
%configure \
|
%configure \
|
||||||
--disable-sidplay \
|
--disable-sidplay \
|
||||||
--disable-aac \
|
--disable-aac \
|
||||||
--disable-mad \
|
|
||||||
--disable-lame-encoder \
|
|
||||||
--disable-twolame-encoder \
|
|
||||||
\
|
\
|
||||||
--enable-syslog \
|
--enable-syslog \
|
||||||
--enable-eventfd \
|
--enable-eventfd \
|
||||||
@ -235,9 +204,7 @@ export CXX=g++-6
|
|||||||
--enable-flac \
|
--enable-flac \
|
||||||
--enable-fluidsynth \
|
--enable-fluidsynth \
|
||||||
--enable-gme \
|
--enable-gme \
|
||||||
%if %{with mad}
|
|
||||||
--enable-mad \
|
--enable-mad \
|
||||||
%endif
|
|
||||||
--enable-mpg123 \
|
--enable-mpg123 \
|
||||||
--enable-modplug \
|
--enable-modplug \
|
||||||
--enable-opus \
|
--enable-opus \
|
||||||
@ -247,12 +214,8 @@ export CXX=g++-6
|
|||||||
--disable-wildmidi \
|
--disable-wildmidi \
|
||||||
--enable-shine-encoder \
|
--enable-shine-encoder \
|
||||||
--enable-vorbis-encoder \
|
--enable-vorbis-encoder \
|
||||||
%if %{with lame}
|
|
||||||
--enable-lame-encoder \
|
--enable-lame-encoder \
|
||||||
%endif
|
|
||||||
%if %{with twolame}
|
|
||||||
--enable-twolame-encoder \
|
--enable-twolame-encoder \
|
||||||
%endif
|
|
||||||
--enable-alsa \
|
--enable-alsa \
|
||||||
--disable-roar \
|
--disable-roar \
|
||||||
--disable-sndio \
|
--disable-sndio \
|
||||||
@ -284,7 +247,6 @@ 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 /var/lib/mpd -s /sbin/nologin -c "user for mpd" mpd
|
getent passwd mpd >/dev/null || useradd -r -g audio -d /var/lib/mpd -s /sbin/nologin -c "user for mpd" mpd
|
||||||
exit 0
|
|
||||||
%service_add_pre mpd.service
|
%service_add_pre mpd.service
|
||||||
|
|
||||||
%post
|
%post
|
||||||
|
Loading…
Reference in New Issue
Block a user