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