Changes of Revision 29

obs-studio.changes Changed
x
 
1
@@ -768,6 +768,20 @@
2
 - Remove 8376.patch
3
 
4
 -------------------------------------------------------------------
5
+Thu May 18 01:22:55 UTC 2023 - Marcus Rueckert <mrueckert@suse.de>
6
+
7
+- packaging fixes
8
+  - Build with Qt6 (can be switched with the qt_version define on
9
+    top)
10
+  - update buildrequires for the websocket support
11
+    - pkgconfig(asio)
12
+    - pkgconfig(websocketpp)
13
+    - pkgconfig(nlohmann_json)
14
+  - enable sndio support (new BR: sndio-devel)
15
+  - pkgconfig(uuid) is now required
16
+  - enable libfdk support to fix AAC support
17
+
18
+-------------------------------------------------------------------
19
 Fri May 12 14:27:03 UTC 2023 - Hans-Peter Jansen <hp@urpla.net>
20
 
21
 - Apply upstream pull request 8376.patch to fix build with ffmpeg >= 6
22
obs-studio.spec Changed
108
 
1
@@ -7,6 +7,9 @@
2
 %bcond_with cef
3
 %endif
4
 
5
+%define qt_version 6
6
+%bcond_without websockets
7
+
8
 Name:           obs-studio
9
 Version:        29.1.2
10
 Release:        0
11
@@ -40,10 +43,17 @@
12
 BuildRequires:  pciutils-devel
13
 BuildRequires:  pipewire-devel
14
 BuildRequires:  libpulse-devel
15
+%if "%{qt_version}" == "5"
16
 BuildRequires:  libqt5-qtbase-devel >= 5.3
17
 BuildRequires:  libqt5-qtbase-private-headers-devel
18
 BuildRequires:  libqt5-qtsvg-devel
19
 BuildRequires:  libqt5-qtx11extras-devel >= 5.3
20
+%endif
21
+%if "%{qt_version}" == "6"
22
+BuildRequires:  cmake(Qt6Core)
23
+BuildRequires:  cmake(Qt6Svg)
24
+BuildRequires:  qt6-base-private-devel
25
+%endif
26
 BuildRequires:  libudev-devel
27
 BuildRequires:  libv4l-devel
28
 BuildRequires:  libx264-devel
29
@@ -51,27 +61,31 @@
30
 BuildRequires:  pipewire-devel
31
 BuildRequires:  pkgconfig
32
 BuildRequires:  pkgconfig(alsa)
33
-BuildRequires:  pkgconfig(asio)
34
 BuildRequires:  pkgconfig(jack)
35
 BuildRequires:  pkgconfig(libavcodec)
36
 BuildRequires:  pkgconfig(libavdevice)
37
 BuildRequires:  pkgconfig(libavfilter)
38
 BuildRequires:  pkgconfig(libavformat)
39
 BuildRequires:  pkgconfig(libavutil)
40
+BuildRequires:  pkgconfig(libmfx)
41
 BuildRequires:  pkgconfig(librist)
42
 BuildRequires:  pkgconfig(libswresample)
43
 BuildRequires:  pkgconfig(libswscale)
44
 BuildRequires:  pkgconfig(libva)
45
 BuildRequires:  pkgconfig(lua)
46
 BuildRequires:  pkgconfig(luajit)
47
-BuildRequires:  pkgconfig(nlohmann_json)
48
 BuildRequires:  pkgconfig(srt) >= 1.4
49
 BuildRequires:  pkgconfig(uuid)
50
-BuildRequires:  pkgconfig(websocketpp)
51
+%if %{with websockets}
52
+BuildRequires:  pkgconfig(nlohmann_json) >= 3
53
+BuildRequires:  pkgconfig(websocketpp) >= 0.8.0
54
+BuildRequires:  pkgconfig(asio) >= 1.12.1
55
+%endif
56
 BuildRequires:  python3-devel
57
 %if 0%{?suse_version} != 1315 || 0%{?is_opensuse}
58
 BuildRequires:  speexdsp-devel
59
 %endif
60
+BuildRequires:  sndio-devel
61
 BuildRequires:  swig
62
 BuildRequires:  vlc-devel
63
 %if %{with cef}
64
@@ -127,6 +141,13 @@
65
   -DENABLE_PIPEWIRE=OFF \
66
 %endif
67
   -DENABLE_JACK=ON \
68
+  -DENABLE_LIBFDK=ON \
69
+  -DENABLE_SNDIO=ON \
70
+%if %{with websockets}
71
+  -DENABLE_WEBSOCKET=ON \
72
+%else
73
+  -DENABLE_WEBSOCKET=OFF \
74
+%endif
75
 %if %{with cef}
76
   -DBUILD_BROWSER=ON \
77
   -DCEF_ROOT_DIR="%{_builddir}/%{cef_binary}" \
78
@@ -135,6 +156,8 @@
79
 %endif
80
   ..
81
 
82
+%cmake_build
83
+
84
 %install
85
 %cmake_install
86
 %suse_update_desktop_file com.obsproject.Studio
87
@@ -153,12 +176,12 @@
88
 %{_bindir}/obs-ffmpeg-mux
89
 # Upstream forces libs dir regardless of arch and building plugins is encumbered
90
 # by moving them to the proper directory.
91
-%{_libdir}/obs-plugins
92
+%{_libdir}/obs-plugins/
93
 %{_libdir}/libobs.so.*
94
 %{_libdir}/libobs-frontend-api.so.*
95
 %{_libdir}/libobs-opengl.so.*
96
 %{_libdir}/libobs-scripting.so.*
97
-%{_libdir}/obs-scripting
98
+%{_libdir}/obs-scripting/
99
 %dir %{_datadir}/metainfo
100
 %{_datadir}/metainfo/com.obsproject.Studio.appdata.xml
101
 %{_datadir}/applications/com.obsproject.Studio.desktop
102
@@ -173,4 +196,5 @@
103
 %{_libdir}/cmake
104
 %{_libdir}/pkgconfig/libobs.pc
105
 %{_includedir}/obs
106
+
107
 %changelog
108