-%{__aclocal} -I m4
-%{__autoconf}
-%{__autoheader}
-%{__automake}
-# ac_cv_* hacks to avoid unwanted linking
-GME_CFLAGS="-I/usr/include/gme" GME_LIBS="-lgme" \
-%configure \
- ac_cv_lib_iconv_main=no \
- ac_cv_lib_nsl_gethostbyname=no \
- %{!?with_pulseaudio:--disable-pulse} \
- %{?with_mod:--enable-mikmod} \
- --enable-adplug \
- --enable-alsa \
- --enable-ao \
- %{?with_audiofile:--enable-audiofile} \
- --enable-bzip2 \
- --enable-cdio-paranoia \
- --enable-curl \
- --enable-database \
- --enable-documentation \
- --enable-dsd \
- --enable-expat \
- --enable-ffmpeg \
- --enable-fifo \
- --enable-flac \
- --enable-fluidsynth \
- --enable-gme \
- --enable-httpd-output \
- --enable-icu \
- --enable-id3 \
- --enable-inotify \
- --enable-ipv6 \
- --enable-iso9660 \
- --enable-jack \
- --enable-lame-encoder \
- --enable-libmpdclient \
- --enable-libwrap \
- --enable-lsr \
- --enable-mad \
- --enable-mikmod \
- --enable-mms \
- --enable-modplug \
- --enable-mpc \
- --enable-nfs \
- --enable-openal \
- --enable-opus \
- --enable-oss \
- --enable-pipe-output \
- --enable-recorder-output \
- --enable-sidplay \
- --enable-shine-encoder \
- --enable-shout \
- --enable-smbclient \
- --enable-sndfile \
- --enable-soundcloud \
- --enable-soxr \
- --enable-sqlite \
- --enable-systemd-daemon \
- --enable-tcp \
- --enable-twolame-encoder \
- --enable-upnp \
- --enable-un \
- --enable-vorbis \
- --enable-vorbis-encoder \
- --enable-wave-encoder \
- --enable-wavpack \
- --enable-wildmidi \
- --enable-zlib \
- --enable-zzip \
- --with-zeroconf=avahi \
- --without-tremor \
- --with-systemdsystemunitdir=%{systemdunitdir}
-%{__make}
+%meson build \
+ -Dpulse=%{?with_pulseaudio:enabled}%{!?with_pulseaudio:disabled} \
+ -Dmikmod=%{?with_mod:enabled}%{!?with_mod:disabled} \
+ -Dadplug=enabled \
+ -Dalsa=enabled \
+ -Dao=enabled \
+ -Daudiofile=%{?with_audiofile:enabled}%{!?with_audiofile:disabled} \
+ -Dbzip2=enabled \
+ -Dcdio_paranoia=enabled \
+ -Dcurl=enabled \
+ -Ddatabase=true \
+ -Ddocumentation=enabled \
+ -Ddsd=true \
+ -Dexpat=enabled \
+ -Dffmpeg=enabled \
+ -Dfifo=true \
+ -Dflac=enabled \
+ -Dfluidsynth=enabled \
+ -Dgme=enabled \
+ -Dhttpd=true \
+ -Dicu=enabled \
+ -Did3tag=enabled \
+ -Dinotify=true \
+ -Dio_uring=enabled \
+ -Dipv6=enabled \
+ -Diso9660=enabled \
+ -Djack=enabled \
+ -Dlame=enabled \
+ -Dlibmpdclient=enabled \
+ -Dmad=enabled \
+ -Dmikmod=enabled \
+ -Dmms=enabled \
+ -Dmodplug=enabled \
+ -Dmpcdec=disabled \
+ -Dnfs=enabled \
+ -Dopenal=enabled \
+ -Dopus=enabled \
+ -Doss=enabled \
+ -Dpipe=true \
+ -Drecorder=true \
+ -Dsidplay=enabled \
+ -Dshine=enabled \
+ -Dshout=enabled \
+ -Dsmbclient=enabled \
+ -Dsndfile=enabled \
+ -Dsoundcloud=enabled \
+ -Dsoxr=enabled \
+ -Dsqlite=enabled \
+ -Ddaemon=true \
+ -Dsystemd=enabled \
+ -Dtcp=true \
+ -Dtwolame=enabled \
+ -Dupnp=enabled \
+ -Dvorbis=enabled \
+ -Dvorbisenc=enabled \
+ -Dwave_encoder=true \
+ -Dwavpack=enabled \
+ -Dwildmidi=enabled \
+ -Dzlib=enabled \
+ -Dzzip=enabled \
+ -Dzeroconf=avahi \
+ -Dsystemd_system_unit_dir=%{systemdunitdir} \
+ -Dsystemd_user_unit_dir=%{systemduserunitdir}
+%ninja_build -C build