Enabled ffmpeg support on RPM based systems.
authorArmin Novak <armin.novak@thincast.com>
Wed, 8 Aug 2018 11:31:52 +0000 (13:31 +0200)
committerArmin Novak <armin.novak@thincast.com>
Wed, 8 Aug 2018 12:50:41 +0000 (14:50 +0200)
packaging/rpm/freerdp-nightly.spec

index 602c620..e109019 100644 (file)
@@ -55,7 +55,6 @@ BuildRequires: pkg-config
 BuildRequires: libopenssl-devel
 BuildRequires: alsa-devel
 BuildRequires: libpulse-devel
-BuildRequires: libgsm-devel
 BuildRequires: libusb-1_0-devel
 BuildRequires: libudev-devel
 BuildRequires: dbus-1-glib-devel
@@ -64,6 +63,8 @@ BuildRequires: gstreamer-plugins-base-devel
 BuildRequires: wayland-devel
 BuildRequires: libjpeg-devel
 BuildRequires: libavutil-devel
+BuildRequires: libavcodec-devel
+BuildRequires: libavresample-devel
 %endif
 # fedora 21+
 %if 0%{?fedora} >= 21 || 0%{?rhel} >= 7
@@ -73,13 +74,13 @@ BuildRequires: pkgconfig
 BuildRequires: openssl-devel
 BuildRequires: alsa-lib-devel
 BuildRequires: pulseaudio-libs-devel
-BuildRequires: gsm-devel
 BuildRequires: libusbx-devel
 BuildRequires: systemd-devel
 BuildRequires: dbus-glib-devel
 BuildRequires: gstreamer1-devel
 BuildRequires: gstreamer1-plugins-base-devel
 BuildRequires: libjpeg-turbo-devel
+BuildRequires: ffmpeg-devel
 %endif 
 
 %if 0%{?fedora} >= 21 || 0%{?rhel} >= 8
@@ -117,7 +118,8 @@ cp %{_topdir}/SOURCES/source_version freerdp-nightly-%{version}/.source_version
         -DWITH_PCSC=ON \
         -DWITH_JPEG=ON \
         -DWITH_GSTREAMER_0_10=ON \
-        -DWITH_GSM=ON \
+        -DWITH_FFMPEG=ON \
+        -DWITH_DSP_FFMPEG=ON \
 %if %{defined rhel} && 0%{?rhel} <= 7
         -DWITH_WAYLAND=OFF \
 %endif
@@ -167,6 +169,10 @@ export NO_BRP_CHECK_RPATH true
 %{INSTALL_PREFIX}/share/man/man1/winpr-hash.1*
 %{INSTALL_PREFIX}/share/man/man7/wlog.7*
 
+%if 0%{?fedora} >= 21 || 0%{?rhel} >= 8 || %{defined suse_version}
+%{INSTALL_PREFIX}/share/man/man1/wlfreerdp.1*
+%endif
+
 %files devel
 %defattr(-,root,root)
 %{INSTALL_PREFIX}/%{_lib}/*.so