Enabled ffmpeg support on RPM based systems.

This commit is contained in:
Armin Novak 2018-08-08 13:31:52 +02:00
Родитель b18f9ee862
Коммит f78794b729
1 изменённых файлов: 9 добавлений и 3 удалений

Просмотреть файл

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