]>
Commit | Line | Data |
---|---|---|
19691b4e | 1 | Summary: OBS Studio - live streaming and screen recording software |
dd351b2f | 2 | Summary(pl.UTF-8): OBS Studio - oprogramowanie do przesyłania strumieni na żywo i nagrywania ekranu |
19691b4e | 3 | Name: obs-studio |
94059a2b | 4 | Version: 27.2.4 |
8c2aae49 | 5 | Release: 4 |
dd351b2f | 6 | License: GPL v2+ |
f058ee60 | 7 | %define obs_vst_gitref 8ad3f64e702ac4f1799b209a511620eb1d096a01 |
dd351b2f JB |
8 | Group: X11/Applications/Multimedia |
9 | #Source0Download: https://github.com/obsproject/obs-studio/releases | |
19691b4e | 10 | Source0: https://github.com/jp9000/obs-studio/archive/%{version}/%{name}-%{version}.tar.gz |
94059a2b | 11 | # Source0-md5: a79f8bf28ab9995e333fc1ac0bcfa708 |
f058ee60 KM |
12 | Source1: https://github.com/obsproject/obs-vst/archive/%{obs_vst_gitref}/obs-vst-20220206.tar.gz |
13 | # Source1-md5: 7554389796e176c6bc73d453cf883703 | |
2f3b3ac9 KM |
14 | Patch0: mbedtls3-compatibility.patch |
15 | Patch1: Remove_encrypted_RTMP_support.patch | |
19691b4e | 16 | URL: https://obsproject.com/ |
dd351b2f JB |
17 | BuildRequires: ImageMagick-devel |
18 | BuildRequires: OpenGL-GLX-devel | |
19 | BuildRequires: Qt5Core-devel >= 5 | |
20 | BuildRequires: Qt5Gui-devel >= 5 | |
21 | BuildRequires: Qt5Svg-devel >= 5 | |
22 | BuildRequires: Qt5Widgets-devel >= 5 | |
23 | BuildRequires: Qt5X11Extras-devel >= 5 | |
24 | BuildRequires: alsa-lib-devel | |
25 | BuildRequires: cmake >= 2.8.12 | |
19691b4e | 26 | BuildRequires: curl-devel |
dd351b2f | 27 | BuildRequires: dbus-devel |
1caed849 | 28 | BuildRequires: fdk-aac-devel |
dd351b2f | 29 | # avcodec avfilter avdevice avutil swscale avformat swresample |
19691b4e JK |
30 | BuildRequires: ffmpeg-devel |
31 | BuildRequires: fontconfig-devel | |
dd351b2f | 32 | BuildRequires: freetype-devel >= 2 |
19691b4e | 33 | BuildRequires: jack-audio-connection-kit-devel |
dd351b2f | 34 | BuildRequires: jansson-devel >= 2.5 |
19691b4e | 35 | BuildRequires: libv4l-devel |
dd351b2f | 36 | BuildRequires: libxcb-devel |
7212aad4 | 37 | %ifnarch x32 |
a7610887 | 38 | BuildRequires: luajit-devel |
7212aad4 | 39 | %endif |
dd351b2f JB |
40 | BuildRequires: libstdc++-devel >= 6:4.7 |
41 | BuildRequires: libx264-devel | |
42 | BuildRequires: mbedtls-devel | |
b02850c0 | 43 | BuildRequires: pipewire-devel |
dd351b2f | 44 | BuildRequires: pkgconfig |
19691b4e | 45 | BuildRequires: pulseaudio-devel |
dd351b2f JB |
46 | BuildRequires: python3-devel >= 1:3.2 |
47 | BuildRequires: qt5-build >= 5 | |
48 | BuildRequires: qt5-qmake >= 5 | |
49 | BuildRequires: speexdsp-devel | |
50 | BuildRequires: swig-python >= 2 | |
19691b4e | 51 | BuildRequires: udev-devel |
1caed849 | 52 | BuildRequires: vlc-devel |
dd351b2f | 53 | BuildRequires: xorg-lib-libX11-devel |
dd351b2f | 54 | BuildRequires: zlib-devel |
19691b4e JK |
55 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
56 | ||
57 | %define _noautoprovfiles %{_libdir}/obs-plugins | |
58 | ||
59 | %description | |
60 | OBS Studio is software designed for capturing, compositing, encoding, | |
61 | recording, and streaming video content, efficiently. | |
62 | ||
dd351b2f JB |
63 | %description -l pl.UTF-8 |
64 | OBS Studio to oprogramowanie służące do wydajnego przechwytywania, | |
65 | składania, kodowania, nagrywania i przesyłania treści wideo. | |
66 | ||
19691b4e JK |
67 | %package devel |
68 | Summary: Header files for OBS Studio | |
dd351b2f | 69 | Summary(pl.UTF-8): Pliki nagłówkowe OBS Studio |
19691b4e JK |
70 | Group: Development/Libraries |
71 | Requires: %{name} = %{version}-%{release} | |
72 | ||
73 | %description devel | |
dd351b2f | 74 | Header files for OBS Studio. |
19691b4e JK |
75 | |
76 | %description devel -l pl.UTF-8 | |
dd351b2f | 77 | Pliki nagłówkowe OBS Studio. |
19691b4e JK |
78 | |
79 | %prep | |
b02850c0 | 80 | %setup -q -a1 |
2f3b3ac9 KM |
81 | %patch0 -p1 |
82 | %patch1 -p1 | |
b02850c0 KM |
83 | %{__mv} obs-vst-%{obs_vst_gitref} obs-vst |
84 | %{__mv} obs-vst plugins | |
19691b4e JK |
85 | |
86 | %build | |
87 | install -d build | |
88 | cd build | |
c7025d0a | 89 | |
dd351b2f JB |
90 | export OBS_MULTIARCH_SUFFIX="%(echo "%{_lib}" | sed -e 's/^lib//')" |
91 | %cmake .. \ | |
1c30f223 | 92 | -DUNIX_STRUCTURE=1 \ |
b02850c0 KM |
93 | -DOBS_VERSION_OVERRIDE=%{version} \ |
94 | -DBUILD_BROWSER=OFF | |
c7025d0a | 95 | |
19691b4e JK |
96 | %{__make} |
97 | ||
98 | %install | |
99 | rm -rf $RPM_BUILD_ROOT | |
dd351b2f | 100 | |
19691b4e JK |
101 | %{__make} -C build install/fast \ |
102 | DESTDIR=$RPM_BUILD_ROOT | |
103 | ||
dd351b2f JB |
104 | builddir="$(pwd)" |
105 | ||
106 | cd $RPM_BUILD_ROOT | |
107 | reldatadir="$(echo %{_datadir} | sed -e 's,^/,,')" | |
1c30f223 | 108 | for f in $reldatadir/obs/obs-studio/locale/??*-??*.ini $reldatadir/obs/obs-plugins/*/locale/??*-??*.ini ; do |
dd351b2f JB |
109 | locale="$(basename "$f" .ini | tr - _)" |
110 | case "$locale" in | |
111 | en_US) | |
112 | loctag="" | |
113 | ;; | |
114 | pt_BR|zh_CN|zh_TW) | |
115 | loctag="%lang($locale) " | |
116 | ;; | |
117 | *) | |
118 | # this rule covers also conversion of bogus Serbian codes to "sr": "sr_CS" (actually sr_RS@latin), "sr_SP" (actually sr_RS, cyrillic) | |
119 | loctag="%lang(${locale%_??}) " | |
120 | ;; | |
121 | esac | |
122 | echo "${loctag}/$f" | |
123 | done > "$builddir/%{name}.lang" | |
124 | ||
125 | # dir guard | |
1c30f223 | 126 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/obs/obs-plugins/{decklink-captions,decklink-ouput-ui}/.keepme |
dd351b2f | 127 | |
19691b4e JK |
128 | %clean |
129 | rm -rf $RPM_BUILD_ROOT | |
130 | ||
131 | %post -p /sbin/ldconfig | |
132 | %postun -p /sbin/ldconfig | |
133 | ||
dd351b2f | 134 | %files -f %{name}.lang |
19691b4e JK |
135 | %defattr(644,root,root,755) |
136 | %doc AUTHORS README.rst | |
137 | %attr(755,root,root) %{_bindir}/obs | |
dd351b2f JB |
138 | %attr(755,root,root) %{_bindir}/obs-ffmpeg-mux |
139 | %attr(755,root,root) %{_libdir}/libobs-frontend-api.so.*.* | |
140 | %attr(755,root,root) %ghost %{_libdir}/libobs-frontend-api.so.0 | |
141 | %attr(755,root,root) %{_libdir}/libobs-opengl.so.*.* | |
142 | %attr(755,root,root) %ghost %{_libdir}/libobs-opengl.so.0 | |
19691b4e JK |
143 | %attr(755,root,root) %{_libdir}/libobs.so.0 |
144 | %attr(755,root,root) %{_libdir}/libobsglad.so.0 | |
a7610887 | 145 | %attr(755,root,root) %{_libdir}/libobs-scripting.so |
dd351b2f | 146 | |
19691b4e | 147 | %dir %{_libdir}/obs-plugins |
1c30f223 | 148 | %attr(755,root,root) %{_libdir}/obs-plugins/decklink-captions.so |
dd351b2f JB |
149 | %attr(755,root,root) %{_libdir}/obs-plugins/decklink-ouput-ui.so |
150 | %attr(755,root,root) %{_libdir}/obs-plugins/frontend-tools.so | |
151 | %attr(755,root,root) %{_libdir}/obs-plugins/image-source.so | |
152 | %attr(755,root,root) %{_libdir}/obs-plugins/linux-alsa.so | |
153 | %attr(755,root,root) %{_libdir}/obs-plugins/linux-capture.so | |
154 | %attr(755,root,root) %{_libdir}/obs-plugins/linux-decklink.so | |
155 | %attr(755,root,root) %{_libdir}/obs-plugins/linux-jack.so | |
156 | %attr(755,root,root) %{_libdir}/obs-plugins/linux-pulseaudio.so | |
157 | %attr(755,root,root) %{_libdir}/obs-plugins/linux-v4l2.so | |
158 | %attr(755,root,root) %{_libdir}/obs-plugins/obs-ffmpeg.so | |
159 | %attr(755,root,root) %{_libdir}/obs-plugins/obs-filters.so | |
160 | %attr(755,root,root) %{_libdir}/obs-plugins/obs-libfdk.so | |
161 | %attr(755,root,root) %{_libdir}/obs-plugins/obs-outputs.so | |
162 | %attr(755,root,root) %{_libdir}/obs-plugins/obs-transitions.so | |
b02850c0 | 163 | %attr(755,root,root) %{_libdir}/obs-plugins/obs-vst.so |
dd351b2f JB |
164 | %attr(755,root,root) %{_libdir}/obs-plugins/obs-x264.so |
165 | %attr(755,root,root) %{_libdir}/obs-plugins/rtmp-services.so | |
166 | %attr(755,root,root) %{_libdir}/obs-plugins/text-freetype2.so | |
167 | %attr(755,root,root) %{_libdir}/obs-plugins/vlc-video.so | |
a7610887 | 168 | %dir %{_libdir}/obs-scripting |
7212aad4 | 169 | %ifnarch x32 |
a7610887 | 170 | %attr(755,root,root) %{_libdir}/obs-scripting/obslua.so |
7212aad4 | 171 | %endif |
a7610887 JK |
172 | %attr(755,root,root) %{_libdir}/obs-scripting/_obspython.so |
173 | %attr(755,root,root) %{_libdir}/obs-scripting/obspython.py | |
dd351b2f JB |
174 | |
175 | %{_datadir}/metainfo/com.obsproject.Studio.appdata.xml | |
176 | %{_desktopdir}/com.obsproject.Studio.desktop | |
f058ee60 KM |
177 | %{_iconsdir}/hicolor/*x*/apps/com.obsproject.Studio.png |
178 | %{_iconsdir}/hicolor/scalable/apps/com.obsproject.Studio.svg | |
19691b4e JK |
179 | |
180 | %dir %{_datadir}/obs | |
181 | %{_datadir}/obs/libobs | |
19691b4e | 182 | %dir %{_datadir}/obs/obs-plugins |
dd351b2f JB |
183 | %dir %{_datadir}/obs/obs-studio |
184 | %{_datadir}/obs/obs-studio/authors | |
185 | %{_datadir}/obs/obs-studio/images | |
186 | %{_datadir}/obs/obs-studio/license | |
187 | %dir %{_datadir}/obs/obs-studio/locale | |
188 | %{_datadir}/obs/obs-studio/themes | |
189 | %{_datadir}/obs/obs-studio/locale.ini | |
190 | ||
191 | %dir %{_datadir}/obs/obs-plugins/decklink-ouput-ui | |
19691b4e JK |
192 | |
193 | %dir %{_datadir}/obs/obs-plugins/frontend-tools | |
dd351b2f | 194 | %dir %{_datadir}/obs/obs-plugins/frontend-tools/locale |
a7610887 JK |
195 | %dir %{_datadir}/obs/obs-plugins/frontend-tools/scripts |
196 | %{_datadir}/obs/obs-plugins/frontend-tools/scripts/*.lua | |
197 | %{_datadir}/obs/obs-plugins/frontend-tools/scripts/*.py | |
198 | %{_datadir}/obs/obs-plugins/frontend-tools/scripts/clock-source | |
19691b4e JK |
199 | |
200 | %dir %{_datadir}/obs/obs-plugins/image-source | |
dd351b2f | 201 | %dir %{_datadir}/obs/obs-plugins/image-source/locale |
19691b4e JK |
202 | |
203 | %dir %{_datadir}/obs/obs-plugins/linux-alsa | |
dd351b2f | 204 | %dir %{_datadir}/obs/obs-plugins/linux-alsa/locale |
19691b4e JK |
205 | |
206 | %dir %{_datadir}/obs/obs-plugins/linux-capture | |
dd351b2f | 207 | %dir %{_datadir}/obs/obs-plugins/linux-capture/locale |
19691b4e JK |
208 | |
209 | %dir %{_datadir}/obs/obs-plugins/linux-decklink | |
dd351b2f | 210 | %dir %{_datadir}/obs/obs-plugins/linux-decklink/locale |
19691b4e JK |
211 | |
212 | %dir %{_datadir}/obs/obs-plugins/linux-jack | |
dd351b2f | 213 | %dir %{_datadir}/obs/obs-plugins/linux-jack/locale |
19691b4e JK |
214 | |
215 | %dir %{_datadir}/obs/obs-plugins/linux-pulseaudio | |
dd351b2f | 216 | %dir %{_datadir}/obs/obs-plugins/linux-pulseaudio/locale |
19691b4e JK |
217 | |
218 | %dir %{_datadir}/obs/obs-plugins/linux-v4l2 | |
dd351b2f | 219 | %dir %{_datadir}/obs/obs-plugins/linux-v4l2/locale |
19691b4e JK |
220 | |
221 | %dir %{_datadir}/obs/obs-plugins/obs-ffmpeg | |
dd351b2f | 222 | %dir %{_datadir}/obs/obs-plugins/obs-ffmpeg/locale |
19691b4e JK |
223 | |
224 | %dir %{_datadir}/obs/obs-plugins/obs-filters | |
19691b4e JK |
225 | %{_datadir}/obs/obs-plugins/obs-filters/*.effect |
226 | %{_datadir}/obs/obs-plugins/obs-filters/LUTs | |
dd351b2f | 227 | %dir %{_datadir}/obs/obs-plugins/obs-filters/locale |
19691b4e | 228 | |
1caed849 | 229 | %dir %{_datadir}/obs/obs-plugins/obs-libfdk |
dd351b2f | 230 | %dir %{_datadir}/obs/obs-plugins/obs-libfdk/locale |
1caed849 | 231 | |
19691b4e | 232 | %dir %{_datadir}/obs/obs-plugins/obs-outputs |
dd351b2f | 233 | %dir %{_datadir}/obs/obs-plugins/obs-outputs/locale |
19691b4e JK |
234 | |
235 | %dir %{_datadir}/obs/obs-plugins/obs-transitions | |
19691b4e | 236 | %{_datadir}/obs/obs-plugins/obs-transitions/*.effect |
19691b4e | 237 | %{_datadir}/obs/obs-plugins/obs-transitions/luma_wipes |
dd351b2f | 238 | %dir %{_datadir}/obs/obs-plugins/obs-transitions/locale |
19691b4e | 239 | |
e6e980d0 JR |
240 | %dir %{_datadir}/obs/obs-plugins/obs-vst |
241 | %dir %{_datadir}/obs/obs-plugins/obs-vst/locale | |
242 | ||
19691b4e | 243 | %dir %{_datadir}/obs/obs-plugins/obs-x264 |
dd351b2f | 244 | %dir %{_datadir}/obs/obs-plugins/obs-x264/locale |
19691b4e JK |
245 | |
246 | %dir %{_datadir}/obs/obs-plugins/rtmp-services | |
19691b4e | 247 | %{_datadir}/obs/obs-plugins/rtmp-services/*.json |
dd351b2f | 248 | %dir %{_datadir}/obs/obs-plugins/rtmp-services/locale |
19691b4e JK |
249 | |
250 | %dir %{_datadir}/obs/obs-plugins/text-freetype2 | |
19691b4e | 251 | %{_datadir}/obs/obs-plugins/text-freetype2/*.effect |
dd351b2f | 252 | %dir %{_datadir}/obs/obs-plugins/text-freetype2/locale |
19691b4e | 253 | |
1caed849 | 254 | %dir %{_datadir}/obs/obs-plugins/vlc-video |
dd351b2f | 255 | %dir %{_datadir}/obs/obs-plugins/vlc-video/locale |
1caed849 | 256 | |
19691b4e JK |
257 | %files devel |
258 | %defattr(644,root,root,755) | |
dd351b2f JB |
259 | %attr(755,root,root) %{_libdir}/libobs.so |
260 | %attr(755,root,root) %{_libdir}/libobs-frontend-api.so | |
261 | %attr(755,root,root) %{_libdir}/libobs-opengl.so | |
262 | %attr(755,root,root) %{_libdir}/libobsglad.so | |
19691b4e | 263 | %{_includedir}/obs |
dd351b2f | 264 | %{_pkgconfigdir}/libobs.pc |
19691b4e | 265 | %{_libdir}/cmake/LibObs |