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