Changes of Revision 3

obs-studio.spec Changed
x
 
1
@@ -92,7 +92,9 @@
2
 BuildRequires:  pkgconfig(srt) >= 1.4
3
 BuildRequires:  pkgconfig(uuid)
4
 BuildRequires:  pkgconfig(rnnoise)
5
+%if 0%{?suse_version} > 1500
6
 BuildRequires:  pkgconfig(ffnvcodec) >= 12.1.14.0
7
+%endif
8
 BuildRequires:  pkgconfig(vpl)
9
 BuildRequires:  libdatachannel-devel
10
 BuildRequires:  pkgconfig(nlohmann_json) >= 3
11
@@ -117,6 +119,7 @@
12
 Requires:       librist4
13
 Requires:       libsrt1_5
14
 Requires:       libspeexdsp1
15
+Recommends:     qt6-wayland
16
 ExclusiveArch:  x86_64 aarch64
17
 
18
 Recommends:     obs-studio-x264
19
@@ -176,6 +179,11 @@
20
 %endif
21
   -DOBS_VERSION_OVERRIDE="$(echo "%{version}" | grep -oE "^^++")" \
22
   -DENABLE_AJA=OFF \
23
+%if 0%{?suse_version} > 1500
24
+  -DENABLE_NVENC=ON \
25
+%else
26
+  -DENABLE_NVENC=OFF \
27
+%endif
28
 %if 0%{?sle_version} > 150000 && 0%{?sle_version} < 150500 && 0%{?is_opensuse}
29
   -DENABLE_PIPEWIRE=OFF \
30
 %endif
31
@@ -213,7 +221,9 @@
32
 %files
33
 %{_bindir}/obs
34
 %{_bindir}/obs-ffmpeg-mux
35
+%if 0%{?suse_version} > 1500
36
 %{_bindir}/obs-nvenc-test
37
+%endif
38
 # Upstream forces libs dir regardless of arch and building plugins is encumbered
39
 # by moving them to the proper directory.
40
 %{_libdir}/obs-plugins/
41