diff --git a/packaging/rules/rpm/jami-libclient.spec b/packaging/rules/rpm/jami-libclient.spec index 5826c10e1299ee00bc54086eea6f37cf40284662..d2c6d9c3c4e52d3b01dfcb7625c1b4f526eb82c9 100644 --- a/packaging/rules/rpm/jami-libclient.spec +++ b/packaging/rules/rpm/jami-libclient.spec @@ -32,6 +32,23 @@ users. %setup -n jami-project %build +# Configure and build bundled ffmpeg (for libavutil/avframe). +mkdir -p %{_builddir}/jami-project/daemon/contrib/native +cd %{_builddir}/jami-project/daemon/contrib/native && \ + ../bootstrap \ + --no-checksums \ + --disable-ogg \ + --disable-flac \ + --disable-vorbis \ + --disable-vorbisenc \ + --disable-speex \ + --disable-sndfile \ + --disable-gsm \ + --disable-speexdsp \ + --disable-natpmp && \ + make list && \ + make fetch && \ + make %{_smp_mflags} V=1 .ffmpeg # Qt-related variables cd %{_builddir}/jami-project/lrc && \ mkdir build && cd build && \ diff --git a/packaging/rules/rpm/jami-qt.spec b/packaging/rules/rpm/jami-qt.spec index 4af924b388858461ba0425f326650dc2fad2e097..a05755d798be78fbbb1dc5e056a4010da042b8ac 100644 --- a/packaging/rules/rpm/jami-qt.spec +++ b/packaging/rules/rpm/jami-qt.spec @@ -38,6 +38,23 @@ privacy of its users. %setup -n jami-project %build +# Configure and build bundled ffmpeg (for libavutil/avframe). +mkdir -p %{_builddir}/jami-project/daemon/contrib/native +cd %{_builddir}/jami-project/daemon/contrib/native && \ + ../bootstrap \ + --no-checksums \ + --disable-ogg \ + --disable-flac \ + --disable-vorbis \ + --disable-vorbisenc \ + --disable-speex \ + --disable-sndfile \ + --disable-gsm \ + --disable-speexdsp \ + --disable-natpmp && \ + make list && \ + make fetch && \ + make %{_smp_mflags} V=1 .ffmpeg # Qt-related variables cd %{_builddir}/jami-project/client-qt && \ mkdir build && cd build && \